Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot modify files on DOS partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tcma
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 208

PostPosted: Tue Jun 29, 2004 8:27 pm    Post subject: cannot modify files on DOS partition Reply with quote

I mount a DOS partition as rw.
Login as root still not able to modify files on it.
Why?

# mount -t msdos -rw -o dmask=0777,fmask=0777 /dev/hda8 /mnt/dosg

chmod a+w /mnt/dosg/linux/notebook.txt
chmod: changing permissions of `/mnt/dosg/linux/notebook.txt' (requested: 0777, actual: 0755): Operation not permitted
Back to top
View user's profile Send private message
kiezpro
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2004
Posts: 126
Location: Yes

PostPosted: Tue Jun 29, 2004 9:14 pm    Post subject: Reply with quote

FAT file systems don't support user and group permissions, so you can't set permissions for anyone else than the owner, and I assume you don't even have an execute bit (but I'm not sure about that one).
Back to top
View user's profile Send private message
vonhelmet
l33t
l33t


Joined: 06 Apr 2004
Posts: 770
Location: Somewhere in a school

PostPosted: Tue Jun 29, 2004 9:44 pm    Post subject: Re: cannot modify files on DOS partition Reply with quote

tcma wrote:
I mount a DOS partition as rw.
Login as root still not able to modify files on it.
Why?

# mount -t msdos -rw -o dmask=0777,fmask=0777 /dev/hda8 /mnt/dosg

chmod a+w /mnt/dosg/linux/notebook.txt
chmod: changing permissions of `/mnt/dosg/linux/notebook.txt' (requested: 0777, actual: 0755): Operation not permitted


I'm not sure, but I think there is an option in the kernel to compile in FAT write support... maybe you only have read support compiled in?

Try setting a umask too.
_________________
My blog
nvtuner software - enhance your AGP Geforce 6800 or 6200!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum