Author Topic: [Solved] Fixing Permissions on USB with FAT  (Read 1013 times)

Offline ms_meme

  • Hero Member
  • *****
  • Posts: 2851
  • Mixed Up but Unmatched
[Solved] Fixing Permissions on USB with FAT
« on: September 22, 2011, 08:31:58 AM »
I recently and accidentally discovered many of my Folder/Files did not have the correct permissions.  They have now been corrected.
(If needed to help solve the problem, I can give more detail about the files that had wrong permissions.)

I have a USB where I save my files.  I usually do a weekly save.
I realized that some the Folders/Files on the USB would have been saved there with the old permissions. So I planned to redo the USB by over riding the old files.

After reentering some files from the the hard drive to the USB, I decided to spot check the permissions and realized that the new permissions were not carrying over. I tried changing them on the USB, but that did not work.

I was told it was probably due to the USB being FAT.

The purpose of the USB is to save the Folders/Files in case I lose or delete something from hard drive.  Or if perhaps I reinstall and need to then transfer them to the new install. (I did do that once before.)

Now I am realizing that if I do that with the Folder/Files that are currently on the USB, the permissions will all be wrong.

So I need help correcting the permissions on the USB.
« Last Edit: September 25, 2011, 03:08:32 AM by ms_meme »
A turtle only makes progress when he sticks his neck out.

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Fixing Permissions on USB with FAT
« Reply #1 on: September 22, 2011, 08:56:36 AM »
I recently and accidentally discovered many of my Folder/Files did not have the correct permissions.  They have now been corrected.
(If needed to help solve the problem, I can give more detail about the files that had wrong permissions.)

I have a USB where I save my files.  I usually do a weekly save.
I realized that some the Folders/Files on the USB would have been saved there with the old permissions. So I planned to redo the USB by over riding the old files.

After reentering some files from the the hard drive to the USB, I decided to spot check the permissions and realized that the new permissions were not carrying over. I tried changing them on the USB, but that did not work.

I was told it was probably due to the USB being FAT.

The purpose of the USB is to save the Folders/Files in case I lose or delete something from hard drive.  Or if perhaps I reinstall and need to then transfer them to the new install. (I did do that once before.)

Now I am realizing that if I do that with the Folder/Files that are currently on the USB, the permissions will all be wrong.

So I need help correcting the permissions on the USB.

The FAT filesystems do not understand Linux permissions at all. If you want to use the USB stick as a backup for Linux files and directories it needs to be formatted with a Linux native filesystem. I would suggest ext3 as a good choice.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 740
Re: Fixing Permissions on USB with FAT
« Reply #2 on: September 22, 2011, 08:59:09 AM »

I was told it was probably due to the USB being FAT.


That is correct.  FAT has no concept of permissions.  So either you need to format the stick as something other than FAT
or use an Archive (something like Ark or tar) rather than copying files directly to the stick.

Terry
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline ms_meme

  • Hero Member
  • *****
  • Posts: 2851
  • Mixed Up but Unmatched
Re: Fixing Permissions on USB with FAT
« Reply #3 on: September 22, 2011, 03:01:19 PM »


The FAT filesystems do not understand Linux permissions at all. If you want to use the USB stick as a backup for Linux files and directories it needs to be formatted with a Linux native filesystem. I would suggest ext3 as a good choice.

Getting ready to reformat with ext3. Will mark solved when I finish.  :)


I was told it was probably due to the USB being FAT.


  FAT has no concept of permissions. 

Terry

Me neither.  :P
A turtle only makes progress when he sticks his neck out.

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Fixing Permissions on USB with FAT
« Reply #4 on: September 22, 2011, 03:33:42 PM »


The FAT filesystems do not understand Linux permissions at all. If you want to use the USB stick as a backup for Linux files and directories it needs to be formatted with a Linux native filesystem. I would suggest ext3 as a good choice.

Getting ready to reformat with ext3. Will mark solved when I finish.  :)


I was told it was probably due to the USB being FAT.


  FAT has no concept of permissions. 

Terry

Me neither.  :P


 ;D ;D ;D ;D


How about, "You have my permission to reformat your USB stick".

If your reaction is, "I don't need your permission to reformat my own USB stick" you really do understand permissions.  ;D ;D ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline ms_meme

  • Hero Member
  • *****
  • Posts: 2851
  • Mixed Up but Unmatched
Re: [Solved] Fixing Permissions on USB with FAT
« Reply #5 on: October 16, 2011, 03:07:12 PM »
I recently changed my USB to a FAT.  I don't understand all of it but accept on faith.  :)
I did have it set another way which let my Windows also see the things on the Drive.  Of course now it can not. I store my backup on the USB.

Also on my USB is a partition that holds several live OS.  I have KDE, LXDE and XFce.
I am able to reboot and bring up the LXDE and XFce but not KDE.  It has been concluded that I don't have enough memory to bring up KDE.

I posed this question to someone:  What if I got a new computer which had Windows on it.. :o  and I wanted to transfer my stored Folders to Windows.  Or what if I wanted to transfer some of my Folders to a friend's computer running Windows?

As I understand the answer, I can plug in the USB in my (imaginary) new computer with Windows  OR into a friend's computer, reboot and bring up either LXDE of XFce Live OS.  There I would see the different partions of what ever computer I was on...including Windows and do a copy/paste and transfer any Folder/Files from the USB.


I have done this myself with my own computer.  Bring up the live OS, mount whatever partition I want including Windows and make the transfer. (But actually I did the transfer from the partition and not from the saved folders on USB....)

I have taken my USB to two friends each who run Windows.  When we plug in my USB and reboot, nothing happens.  The USB does not boot.  It does not even show as being there in any drive.

I am not sure what my question is, but there must be a question somewhere.  ;D
A turtle only makes progress when he sticks his neck out.

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: [Solved] Fixing Permissions on USB with FAT
« Reply #6 on: October 16, 2011, 03:23:14 PM »

I have taken my USB to two friends each who run Windows.  When we plug in my USB and reboot, nothing happens.  The USB does not boot.  It does not even show as being there in any drive.


On each computer, usually there is a list of drive that will be sequentially evaluated at boot time, trying to find a 'bootable system'.
The list can include:

- Hard disks
- CD/DVD units
- USB devices
- Network
- others removable (i.e. Floppy, Zip drive)

It's up to the computer user to define the appropriate precedence for each device, you may want something like:

1st - CD/DVD
2nd - USB
3rd - Hard disk
4th ....
5th ....

This way:
if a bootable CD/ROM is inserted and it contains a bootable system it will be used to boot,
else if a USB device is plugged in and it contains a bootable system it will be used to boot,
else if a hard disk is present and it contains a bootable system it will be used to boot,
else ....

Some systems allow to temporarily change the boot sequence only for one boot, pressing F12 (or some other key),
and selecting the device to boot from, as opposed to change the sequence permanently in BIOS setup.

AS

Offline ms_meme

  • Hero Member
  • *****
  • Posts: 2851
  • Mixed Up but Unmatched
Re: [Solved] Fixing Permissions on USB with FAT
« Reply #7 on: October 16, 2011, 03:47:55 PM »
OK, thanks, as.
A turtle only makes progress when he sticks his neck out.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11064
  • MLUs Forever!
Re: [Solved] Fixing Permissions on USB with FAT
« Reply #8 on: October 16, 2011, 06:47:53 PM »
Quote
I recently changed my USB to a FAT.  I don't understand all of it but accept on faith.   :)
I did have it set another way which let my Windows also see the things on the Drive.  Of course now it can not. I store my backup on the USB.

I would imagine that should read

Quote
I recently changed my USB to ext.  I don't understand all of it but accept on faith.  :)
I did have it set another way (probably FAT) which let my Windows also see the things on the Drive.  Of course now it can not. I store my backup on the USB.
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3884
Re: [Solved] Fixing Permissions on USB with FAT
« Reply #9 on: October 16, 2011, 07:16:43 PM »
One way to back up to a fat usb flash drive is to compress it with tar first. Tar will save the file permission in the compressed file.

Galen