Robert Fisher wrote:
On Friday 15 June 2007 5:50 pm, Reg wrote:
Nick Rout wrote:
Well it is clearly mounted read/write (rw) so it is more likely a
permissions thing. Who owns the files? Try ls -l /music and see who
owns the files.
if I enter that command I get:

[EMAIL PROTECTED]:~> ls -l /music
total 96
dr-xr-xr-x 149 root root 32768 2007-06-14 17:27 My Music

If you are the only one using the computer then I would, as root, type....

chmod -R 777 /music/My Music/

(To be root, type "su -" then press enter then enter root password)

I am not sure that this will work. The permissions will be determined by the mount options on vfat. vfat inherently has no permissions, and they are layered on top by the vfat driver to make it compatible with unix concepts.

Go to the page that robert referred you to earlier, it tells you how to set the permissions when mounting a vfat partition. The secret is to set uid and gid. uid is user id, you can see yours by using the id command. like:

$ id
uid=1000(nick) gid=100(users) groups=4(adm),10(wheel),18(audio),19(cdrom),27(video),35(games),80(cdrw),85(usb),100(users),250(portage),444(vmware),445(qemu)

so if I want to mount a vfat partition to be owned by myself I would use

mount -t vfat /mnt/hdb1 /music -o uid=1000

Then user with uid 1000 will own all the files under /music. Problem solved.

Look at this in conjunction with robert's page.

(Actually these days -t vfat is generally redundant as the system will automatically work out the filesystem).

Reply via email to