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.
Try searching for "edit fstab" -- I'm sure there'll be some responses.
You can use any command-line editor (nano, pico, vi, vim, mcedit, the list goes on and on), and though each is completely different, they all fulfill the same function
if you do
# mount -a /dev/hda1 /mnt/Windoze -t vfat -o rw,umask=0,users,owner,fscontext=system_u:object_r:mnt_t
then it should add it to the fstab without you having to edit it manually.
You'll need to replace the hda1 above with the correct partition name... #fdisk -l to see a list. You can mount it anywhere as long as the directory already exists. I mount mine in /media/WinXP (I run FC4) so that it shows up in the file browser under Computer:///
The other options may not be entirely necessary depending on your purpose. If you intend to share the drive over a network then you need the fscontext part, and possibly the users,owner.
If you're only using it locally, then -o rw,umask=0 should be enough.
I think you'll find the mount cmd adds to /etc/mtab ie a list of what's currently mounted... To survive a system reboot, it'll have to be added to /etc/fstab via eg vi/vim.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.