Changing FAT32 permissions on a USB drive?

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”

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:

palimpsest

You may need to install the dosfstools package first:

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.

sudo apt-get install gparted

Be aware this will erase anything on the drive.

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 :(.

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.

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 :confused:

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:

ls -l /media/<foldername>

and post the output.

Also, send the output from

sudo fdisk -l

Nothing in the folder, or anything hidden.

Put a file or something on the USB stick called Bally, then re-run:

ls -l /media/Bally

also run:

ls -l /media

So I can see what the permissions are set to.

Erm, just noticed this -

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:

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:

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.

  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.

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.

Not sure I agree with that part though… I would have thought these are precisely the people that would benefit from “user” access only :wink:

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 :slight_smile:

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. :slight_smile:

Seems you were right Mark, it didn’t contain a partition. ??? I’ve downloaded GParted, even though I have it on disk :stuck_out_tongue: but I’ve made an MOS partition on it. Hopefully this will work out.

Nope, PS3 still doesn’t find this damn usb drive and it’s not even a year old and has hardly been used :confused: Now the laptop won’t even pick it up… I must be doing something wrong…

With the stick plugged in, what’s the output from

sudo fdisk -l

And what did you mean by a MOS partition ?

"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.

Was the USB stick plugged in when you ran that ?

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

dmesg | tail
lsusb
sudo fdisk -l

Yeah it was, Laptop isn’t picking up the USB stick at all.

[16352.220508] sd 9:0:0:0: [sdb] Write Protect is off
[16352.220518] sd 9:0:0:0: [sdb] Mode Sense: 03 00 00 00
[16352.220525] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[16352.224031] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[16352.224042] sdb: sdb1
[16352.228280] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[16352.228287] sd 9:0:0:0: [sdb] Attached SCSI removable disk
[16831.176282] usb 2-3: USB disconnect, address 8
[16885.920169] usb 2-3: new high speed USB device using ehci_hcd and address 9
[16893.778505] scsi10 : usb-storage 2-3:1.0

Bus 007 Device 002: ID 0a5c:2101 Broadcom Corp. Bluetooth Controller
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 138a:0001 DigitalPersona, Inc Fingeprint Reader
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 009: ID 18a5:0304 Verbatim, Ltd
Bus 002 Device 002: ID 064e:a103 Suyin Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The device highlighted in green is my USB stick o.O

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

This command doesn’t seem to pick it up?

Does it show up in Disk Utility ?

Nope, it doesn’t.

What is the output from:

cat /sys/block/sdb/device/model

and what is the output if you do this:

sudo fdisk /dev/sdb

then hit the p key, then the enter key ?

BTW, you can hit Ctrl+C or type quit and hit enter to escape fdisk

cat: /sys/block/sdb/device/mode1: No such file or directory

Usage:
fdisk [options] change partition table
fdisk [options] -l list partition table(s)
fdisk -s give partition size(s) in blocks

Options:
-b sector size (512, 1024, 2048 or 4096)
-c switch off DOS-compatible mode
-h print help
-u give sizes in sectors instead of cylinders
-v print version
-C specify the number of cylinders
-H specify the number of heads
-S specify the number of sectors per track