Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i my 4 partitions, hda1 is Windows xp ntfs partition, hda2 is Fat32 partition, hda3 is ext3 for my
FC2, and a swap partition at hda4.
i mount my Fat32 partition as /mnt/fat32
i find that when i login an account other than root, i cannot write to the that partition, and the permittion profile of the /mnt/fat32 is rwxr-xr-x, i use chmod to change the permission, but it failed, and i used X-window and right click to change it, it failed also.
how can i write to that fat32 partition when i am not root?
Check in /etc/fstab if the hda2 line has "ro" in it as an option. If yes, it means the partition is mounted read-only and you will not be able to write to it. Change the option to "rw", save and remount or reboot.
You have it set to "defaults", which includes read/write (rw) ability, so that doesn't seem to be the problem.
If you are the only user on your system, you could try setting yourself (your login name) as the owner of /mnt/fat32
su to root and type in terminal:
Code:
chown -R <username> /mnt/fat32
This will give you (not root) ownership of /mnt/fat32 and all dirs and files inside it and you should be able to write to it
Having said that, it's not the ideal situation, because that partition is then writeable by anyone who can access your computer. If you have important data on that partition, maybe it's better to leave root as the owner and just su to root whenever you need write access
thank you for you reply,i tried it but a problem arised, when i type chown -R username /mnt/fat32 in my terminal, it tried to change the file permission of every single file of the fat32 volume, but it failed to
do so and said it is not permitted.
is there a way to change the permission of the folder of /mnt/fat32 only, i tried unmounting it, than chown
/mnt/fat32, but nothing happened.
Originally posted by Tuttle Or edit the line to read:
/dev/hda2 /mnt/fat32 vfat noauto,user,rw 0 0
You can then mount and umount it too. This is probably the best way.
i have a new problem, the line of /dev/hda2 /mnt/fat32 vfat defaults 0 0
is highlighted, and i cannot change something at that line, it seems that it is "locked"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.