Nick Rout wrote:
> 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).
>
Tried that and got the following result:

[EMAIL PROTECTED]:~> id
uid=1000(reg) gid=100(users) groups=16(dialout),33(video),100(users)
[EMAIL PROTECTED]:~> mount -t vfat /mnt/hdb1 /music -o uid=1000
mount: only root can do that
[EMAIL PROTECTED]:~> su -
Password:
athlon:~ # mount -t vfat /mnt/hdb1 /music -o uid=1000
mount: special device /mnt/hdb1 does not exist
athlon:~ #

Maybe I did it wrong? I also tried the other commands the other guys
gave with no result either, I have also browsed those web pages Robert
gave and although I have a bit more of an understanding of some of it, a
good deal of stuff around commands is over my head at this stage.

 In the mean time I have found that by logging in as super user via file
manager I can rename my music files, which seems an easier solution for
me at this point. I  think understanding how all the commands work is
going to take quite a while for me.

regards reg


Reply via email to