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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have a fat32 partition mounted in /etc/fstab as:
/dev/sda6 /mnt/fat auto defaults,umask =000 0 0
I don't really know what these commands do (any good sources?), but they don't do what I need them to. I would like read/write/execute privileges to this entire partition, for all accounts on this computer. Does anyone know a good way to do this?
Also, how can I reload /etc/fstab after making changes, without resarting the computer?
Thanks for helping the noobs get over their noobness.
the first column, "/dev/sda6", is the device you're dealing with; the second, "/mnt/fat" is the place where the device gets mounted, third column ("auto") is the filesystem (which is now automatically detected if possible; you could use "vfat" in this case too); the next column are the mounting options which in this case are:
defaults = the "default" settings, read man fstab for more information about this
umask = tells the usermask that is used; use "umask=0222" if you like everyone to be able to have permissions on the device (instead of the "umask=000" that's there at the moment)
about the last two zeroes you can read from man fstab, but in this case you don't need to know more specificly (reading by yourself is a good practise), just know that you'll put zero in both columns. so, to get normal users an access, the line would look like:
/dev/sda6 /mnt/fat auto defaults,umask=0222 0 0
or if you like to add more options, like this:
/dev/sda6 /mnt/fat auto users,auto,rw,umask=0222 0 0
(users=let normal users umount the drive; auto=mount it automatically at bootup; rw=read-write access)
to "reload" /etc/fstab you can run
which mounts all the devices specified in /etc/fstab
Thanks for the detailed explanation, but I still can't write to /dev/sda6 after I use either of the entries you have supplied and run 'mount -a'. I also tried restarting, just in case, but no luck. Is there anything else I can do?
If there is anything I need to figure out first, it is how to write files without running everything from root. But, this is turning out to be very hard when using vfat (I need to use the files in winxp also). I corrected the space in 'umask =0222', but this did not help. One of my accounts on this computer is uid=500, so I tried adding that. No help (at this point, I also figured out that 'mount -a' did not update the /etc/fstab settings, but that I had to restart). Lastly, took off the 'umask=0222' and was left with:
/dev/sda6 /mnt/fat auto users,auto,rw,uid=500,gid=500 0 0
This line allows uid=500 write permissions, but only on new files. So I have to do 'chmod a+w *' for all directories that I want to use on this account. Not really ideal, since the rest of the accounts are left out still, and this is alot of typing.
Does anyone have any suggestive readings where I can get to the bottom of this, once and for all? All I really want to be able to do is:
A) Mount a filesystem that can be shared by both linux and windows
B) allow all my accounts read/write/execute access to it.
Well, I tried just about every option on this post and the linked posts, and none gave me write access. I know this means I'm doing something wrong, but I need to move on. So, the only option that worked for me was:
/dev/sda6 /mnt/fat auto defaults,dmask=000,fmask=000 0 0
which gives rwx access to all users. Not the most secure, I know. But, it works for now.
By the way, I tried dmask=007 and fmask=007 and My regular user account couldn't get access..does anyone know why?
Anywho, thanks for the links, and thanks to all for trying. The three-day-quest to write to my fat drive is over.