Author Topic: Changing FAT32 permissions on a USB drive?  (Read 16796 times)

0 Members and 1 Guest are viewing this topic.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Changing FAT32 permissions on a USB drive?
« on: May 28, 2011, 03:14:59 pm »
Ever since I formatted my USB drive with Ubuntu, I've not been able to get my PS3 to pick up on the drive. I had tried everything everyone had suggested which was to create a folder called "PICTURE" for photos, "MUSIC" for music, and etc... I was also told to check the permissions for my drive incase the laptop was "hogging" it all to itself. I've tried changing the permission by going into the drive. right-clicking "properties" and then going to permission. I see that Ubuntu has only set permissions for the laptop and doesn't allow anyone else, such as different "users" or "others" to access files, and have read/write permissions. I went to change the permissions to read/write in the drop-down box, and within a 1/10th of a sec it changed back to "none"... is this because Linux doesn't support NTFS/FAT permission changing? I need to change the permissions, because I have stuff I want to transfer from my PS3 to my laptop, A.S.A.P preferably. I've downloaded the following packages from Synaptic

"ntfs-3g"
"ntfs-config"
"libntfs-3g79"
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18235
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #1 on: May 28, 2011, 03:34:38 pm »
FAT/FAT32/NTFS doesn't support user permissions as such... so I'm guessing it's a formatting issue.

Use the "Disk Utility" in Ubuntu to re-format the USB stick as a FAT32 disk...

Depending on the Ubuntu version you'll find it at System>Administration>Disk Utility
or open a terminal, and enter:
Code: [Select]
palimpsest

You *may* need to install the dosfstools package first:
Code: [Select]
sudo apt-get install dosfstools
This is the package that supports formatting to FAT/FAT32 etc.



Or install Gparted, and format it as FAT32 it in that.
Code: [Select]
sudo apt-get install gparted

Be aware this will erase anything on the drive.
« Last Edit: May 28, 2011, 03:42:41 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #2 on: May 28, 2011, 05:24:22 pm »
I should've said earlier, I have already formatted it as FAT32, using the Disk Utility. I just need to change the permissions so I can get my PS3 to able to read and write on it and I can't do that atm, because Ubuntu won't let me change the permissions :(.
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18235
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #3 on: May 28, 2011, 05:39:13 pm »
But that's my whole point... which permissions ? .. FAT32 doesn't support user and group permissions, which is why you can't change them.

If it's correctly formatted as FAT32, it should *just work*, and file permissions shouldn't be an issue.
« Last Edit: May 28, 2011, 05:48:57 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #4 on: May 28, 2011, 06:20:15 pm »
Right, I've just installed the "dosfstools" package using terminal through the sudo command, I then formatted my USB drive via the Disk Utility to "FAT". Plugged it into my PS3 and still nothing :/
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18235
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #5 on: May 28, 2011, 07:52:31 pm »
Try formatting it in gparted... I've never had any problems before, but I don't own a PS3.

Any USB sticks formatted as FAT32 in Ubuntu have always worked in the Xbox or Windows, or the cars mp3 palyer etc.

If you go into /media and finfd the folder that contains what's on the USB stick, can you then do:

Code: [Select]
ls -l /media/<foldername>

and post the output.

Also, send the output from
Code: [Select]
sudo fdisk -l
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #6 on: May 28, 2011, 08:13:53 pm »
Try formatting it in gparted... I've never had any problems before, but I don't own a PS3.

Any USB sticks formatted as FAT32 in Ubuntu have always worked in the Xbox or Windows, or the cars mp3 palyer etc.

If you go into /media and finfd the folder that contains what's on the USB stick.

Nothing in the folder, or anything hidden.


Code: [Select]
ls -l /media/<foldername>

and post the output.[

bally@Home:~$ ls -l /media/Bally
total 0

Code: [Select]
sudo fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x222eb0b9

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1698    13631488   27  Unknown
/dev/sda2   *        1698       16245   116854784    7  HPFS/NTFS
/dev/sda3           16245       29939   109994141   83  Linux
/dev/sda4           29939       30402     3715072   12  Compaq diagnostics

Disk /dev/sdb: 7987 MB, 7987003392 bytes
246 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 15252 * 512 = 7809024 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System


If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18235
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #7 on: May 28, 2011, 10:13:27 pm »
Put a file or something on the USB stick called Bally, then re-run:
Code: [Select]
ls -l /media/Bally
also run:
Code: [Select]
ls -l /media

So I can see what the permissions are set to.

Erm, just noticed this -

Quote
Disk /dev/sdb: 7987 MB, 7987003392 bytes
246 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 15252 * 512 = 7809024 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System

If that's ALL that is returned, it doesn't look like the USB stick contains a *partition*  :o

Open "Disk Utility", select the USB stick (on the left), now what do these fields say:

Usage:
Partition Type:
Partition Flags:
Type:
Label:
Device:
Partition Label:
Capacity:
Available:
Mount Point:

Or even better, install gparted:
Code: [Select]
sudo apt-get install gparted

Open Gparted, select the USB stick (top right), take a screenshot, upload it somewhere, and send me a link.



If the USB stick contained a valid FAT32 partition, the last part of fdisk -l should read:

Quote
   Device   Boot      Start       End      Blocks       Id   System
/dev/sdb1   *           1        1022     7825423    c  FAT32 LBA

So like I said it doesn't look like your USB stick contains a valid partition.

You'd probably be better off, removing everything from it in gparted, and then *creating* a FAT32 partition that takes up the whole drive.
« Last Edit: May 28, 2011, 10:29:16 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Zenettii

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 0
  • Gender: Male
  • Arch Linux
    • View Profile
    • Zenettii - Blog
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #8 on: May 29, 2011, 10:16:51 am »
1) Plug in the usb stick
2) in command line type "dmesg | tail"  (This will show the last 10 lines of logging captured in dmesg)
3) See the lines which show your USB drive being connected it'll be given a dev name such as " [sdb] or [sdc]" for example
4) using that device name type "sudo fdisk /dev/sdb"

*edit: Alternative to dmesg, try "cat /etc/mtab" and the chances are, the bottom line contains details of your most recently connected device, telling you its on /dev/sdb or similar.

At the fdisk prompt......
1)Type 'p' to print the list of current partitions on the drive (if there is any)
2) type 'd' to delete the partitions on drive (if there is more than one, it will prompt which to delete)
3) type 'n' to create a new partition, using primary option. Use default sizes detected by fdisk to use entire space
4) type 't' to change type of partition, use type 'b' when prompted for your partition type.
5)type 'w' to commit changes and 'q' to quit the program

Format drive
1) Unmount your drive 'sudo umount /media/DIRECTORY'   where directory is the name of the mount point for your usb key.
2) type 'mkfs.vfat' /dev/sdb1  (remember to change 'sdb' with the relevant device found in dmesg)

Your drive is now partitioned with a single partition that is formatted into vfat.
From this point forward, you probably want to look at creating a new directory in /media to use for your vfat pendrive, and make sure you setup relevant details in /etc/fstab as I heard that some people find that vfat drives are mounted and the system struggles to appreciate that vfat has no permissions and is case-insenitive (anything microsoft based is generally emotionally insensitive tbh)

If you're struggling to do something, its worth learning to do it by command line, rather than trying to fix it in a pretty GUI. This way you get to learn how things work, and why things are not going as you expected.
I don't believe Linux needs to be used by your average facebooker, or your mum who just looks up cooking recipes/email. Very rare your mother needs a true multiuser low level OS. Linux is for the greater minds among us, who enjoy learning how things work, rather than just assuming the big red button reads your mind and does everything for you.
Regards
Zenettii

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18235
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #9 on: May 29, 2011, 02:28:16 pm »
Though I agree learning how to do things in the CLI shouldn't be feared and can be extremely informative, I also realise it isn't for everyone.

I don't believe Linux needs to be used by your average facebooker, or your mum who just looks up cooking recipes/email. Very rare your mother needs a true multiuser low level OS. Linux is for the greater minds among us, who enjoy learning how things work, rather than just assuming the big red button reads your mind and does everything for you.[/i][/size]

Not sure I agree with that part though... I would have thought these are precisely the people that would benefit from "user" access only ;)

IMHO Linux is for *everyone*... one of the benefits of "many distro's" is that there is/can be, tweaked distro for every user type... not to mention the fact that Linux can be a great "single purpose" or embedded platform ie. routers, set top boxes etc. and that most Linux distros can be configured to make them MUCH more secure for the average "surfer".

I get annoyed by Windows evangelists who constantly try to imply that Linux is ONLY for geeks, and requires a CompSci degree to use... though netbooks and Android seem to have gone some way to dispel that... these days Linux is just as much for the point and clickers as CLI jockeys/power users... that's the beauty of it :)

All I'm trying to say is *I* consider Linux to be a better OS for the "masses" than Windows, AND a better OS for people who enjoy delving into its depths. :)
« Last Edit: May 29, 2011, 02:57:00 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #10 on: June 02, 2011, 02:05:43 pm »
Seems you were right Mark, it didn't contain a partition.  ???  I've downloaded GParted, even though I have it on disk :P but I've made an MOS partition on it. Hopefully this will work out.
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #11 on: June 04, 2011, 12:00:32 am »
Nope, PS3 still doesn't find this damn usb drive and it's not even a year old and has hardly been used :/ Now the laptop won't even pick it up.. I must be doing something wrong...
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18235
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #12 on: June 04, 2011, 12:06:23 am »
With the stick plugged in, what's the output from
Code: [Select]
sudo fdisk -l

And what did you mean by a MOS partition ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #13 on: June 05, 2011, 06:37:41 pm »
"Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x222eb0b9

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1698    13631488   27  Unknown
/dev/sda2   *        1698       16245   116854784    7  HPFS/NTFS
/dev/sda3           16245       29939   109994141   83  Linux
/dev/sda4           29939       30402     3715072   12  Compaq diagnostics"

Results ^^


And by MOS, that was the option I could pick by the way devices would pick up the device... It said something about it being the most modern option which devices would recognise but even now, the laptop doesn't even pick up the USB stick.
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18235
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Changing FAT32 permissions on a USB drive?
« Reply #14 on: June 05, 2011, 07:05:10 pm »
Was the USB stick plugged in when you ran that ?

Plug in the USB stick, and send the output from these 3 commands:

Code: [Select]
dmesg | tail

Code: [Select]
lsusb

Code: [Select]
sudo fdisk -l
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal