PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 05:28:30 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: [Solved] Fixing Permissions on USB with FAT  (Read 424 times)
ms_meme
Hero Member
*****
Offline Offline

Posts: 2696



« on: September 22, 2011, 09: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.
Logged
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9695


----IOFLU----


« Reply #1 on: September 22, 2011, 09: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.
Logged

Old-Polack

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



Lest we forget...
TerryN
PCLinuxOS Tester
Sr. Member
*******
Offline Offline

Posts: 267


Rock the Box!


« Reply #2 on: September 22, 2011, 09: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
Logged

Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI  graphics
PCLinuxOS 2012 (KDE)
|Twitter|
ms_meme
Hero Member
*****
Offline Offline

Posts: 2696



« Reply #3 on: September 22, 2011, 04: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.  Smiley


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


  FAT has no concept of permissions. 

Terry

Me neither.  Tongue
Logged
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9695


----IOFLU----


« Reply #4 on: September 22, 2011, 04: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.  Smiley


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


  FAT has no concept of permissions. 

Terry

Me neither.  Tongue


 Grin Grin Grin Grin


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.  Grin Grin Grin
Logged

Old-Polack

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



Lest we forget...
ms_meme
Hero Member
*****
Offline Offline

Posts: 2696



« Reply #5 on: October 16, 2011, 04:07:12 PM »

I recently changed my USB to a FAT.  I don't understand all of it but accept on faith.  Smiley
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.. Shocked  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.  Grin
Logged
AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4139

Have a nice ... night!


« Reply #6 on: October 16, 2011, 04: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
Logged
ms_meme
Hero Member
*****
Offline Offline

Posts: 2696



« Reply #7 on: October 16, 2011, 04:47:55 PM »

OK, thanks, as.
Logged
Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4638


MLUs Forever!


« Reply #8 on: October 16, 2011, 07:47:53 PM »

Quote
I recently changed my USB to a FAT.  I don't understand all of it but accept on faith.   Smiley
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.  Smiley
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.
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 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 ‎DVB-T 2 USB DTT
gseaman
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 2808



« Reply #9 on: October 16, 2011, 08: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
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM