Writing permissions on fat32 [Solved]

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

Writing permissions on fat32 [Solved]

Postby lambengolmor » Wed Aug 22, 2007 19:00

I have some fat32 partitions and the "normal" user cannot write on it... I remember that in gentoo i need to edit manually the /etc/fstab file. I can't find the howto anymore on the gentoo site, so please, anyone knows how to do? thanks and sorry for the stupid question
Last edited by lambengolmor on Thu Aug 23, 2007 9:55, edited 1 time in total.
lambengolmor
Simple Hen
 
Posts: 81
Joined: Wed Mar 28, 2007 16:53

Re: Writing permissions on fat32

Postby Belial » Wed Aug 22, 2007 19:12

the mounting should be able to be done automatically via either KDE or gnome, but if you do want to use the fstab look at

http://www.tuxfiles.org/linuxhelp/fstab.html
http://gentoo-wiki.com/HOWTO_Mount_Wind ... _FAT,_NTFS)
User avatar
Belial
Young Hen
 
Posts: 34
Joined: Sun Aug 19, 2007 22:34

Writing permissions on fat32

Postby lambengolmor » Wed Aug 22, 2007 19:42

I have some fat32 partitions and the "normal" user cannot write on it... I remember that in gentoo i need to edit manually the /etc/fstab file. I can't find the howto anymore on the gentoo site, so please, anyone knows how to do? thanks and sorry for the stupid question
lambengolmor
Simple Hen
 
Posts: 81
Joined: Wed Mar 28, 2007 16:53

Re: Writing permissions on fat32

Postby WarraWarra » Wed Aug 22, 2007 19:47

If you can not find it on the wiki link on top of this page / below then try google as this below is what I found using google and should be able to help you fix it.
Best of luck.

PS> post if you found a working link / info as we can then use that info to update the Sabayon wiki. Thanks.

http://wiki.sabayonlinux.org/index.php?title=Main_Page
http://www.google.com/search?q=etc+fsta ... =firefox-a
http://www.tuxfiles.org/linuxhelp/fstab.html
http://www.linuxforums.org/forum/misc/9 ... fstab.html
User avatar
WarraWarra
Sagely Hen
 
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511

Re: Writing permissions on fat32

Postby Fitzcarraldo » Wed Aug 22, 2007 23:22

I did not have to do anything to SL to be able to access the FAT32 Windows XP partition on my dual boot laptop. All I did was to set up a shortcut (properly called a ‘Desktop Config File’) on my SL Desktop in order to make it easier for me to browse the contents of a folder on the Windows XP partition. For example, to be able to quickly browse the My Documents folder on the Windows XP partition, I set up a Desktop Config File to open the URL:

media:/sda2/Documents and Settings/Fitzcarraldo/My Documents

The FAT32 filesystem does not have any file permissions of its own. By default, for each file and folder in the Windows XP partition SL sets the owner to your SL username and the group to root, and makes them all read/write. However, on one occasion I noticed that some folders in my Windows partition were read-only for some unknown reason. This was easy to fix: I just typed the following into a Terminal windows as root:

Code: Select all
mount /dev/sda2 /mnt/Windows
chmod 777 -R /mnt/Windows


as I had partitioned my HDD so that /dev/sda2 is the partition with the Windows XP C Drive. Actually, when I installed SL it automatically configured the Windows XP C Drive as /media/ACER, so I probably could have typed the following instead:

Code: Select all
chmod 777 -R /media/ACER


The file /mnt/Windows already existed when I installed SL but, if it had not, I could have created it by typing the following into a Terminal window as root:

Code: Select all
mkdir /mnt/Windows


If I had wanted to, I could have chosen another name for the mountpoint instead of “Windows”: “C”, for example.
Note that, to change the owner and group, and make everything read/write, and mount the Windows XP C drive automatically when booting SL, I could have added the following last line to the existing /etc/fstab file:

Code: Select all
#<Filesystem> <Mountpoint>  <Type>    <Option>                           <dump>  <pass>
/dev/sda6     /             ext3      defaults,user_xattr                1       1
/dev/sda3     /boot         ext3      defaults,user_xattr                1       2
/dev/sda5     /home         ext3      defaults,user_xattr                1       2
/dev/sda7     swap          swap      defaults                           0       0
tmpfs         /dev/shm      tmpfs     defaults                           0       0
/dev/sda2     /mnt/Windows  vfat      users,uid=1000,gid=100,umask=0000  0       0


To understand the meaning of the fields in the fstab file, read the following Gentoo Wiki page:
http://gentoo-wiki.com/HOWTO_Mount_Wind ... 2C_NTFS%29
which explains the meaning of umask and tells you how to find your uid and gid.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Writing permissions on fat32

Postby lambengolmor » Thu Aug 23, 2007 9:55

Thanks a lot! Gentoo wiki was perfect!
Thanks also to all the others!
lambengolmor
Simple Hen
 
Posts: 81
Joined: Wed Mar 28, 2007 16:53


Return to Hardware

Who is online

Users browsing this forum: No registered users and 2 guests