Red HatThis forum is for the discussion of Red Hat Linux.
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 use 2 OS in my computer , and I have a Shared Drive to both OS. When I am in Linux, I need to mount every time. Someone had told me to add "some entry " in my fstab file. But what means "some entry"?
This is full command to mount my partition. : mount -t vfat /dev/hda7 /root/SharedDir. So what would be "some entry" ? Help me.
Another question. If I am not a root user, can I mount?
# Duron 950 uilleann Gentoo /etc/fstab file
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.12 2003/03/11 02:50:53 azarah Exp $
#
# noatime turns of atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda3 /boot ext3 noauto,noatime 1 1
/dev/hda6 / reiserfs noatime 0 0
/dev/hda5 none swap sw 0 0
/dev/hdb4 /pub ext3 defaults 1 2
/dev/hda9 /home reiserfs defaults 1 2
/dev/hda10 /snd reiserfs defaults 1 2
/dev/hda1 /mnt/win98 vfat defaults 0 0
/dev/hda2 /mnt/win2k ntfs defaults 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/hda7 /mnt/redhat reiserfs defaults 1 1
#/dev/hda8 /mnt/mandrake ext3 defaults 1 2
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
Last edited by fancypiper; 11-16-2003 at 07:54 PM.
Do read the links fancypiper gave you. But this is the line I would use. But this is LInux and there are choices, and it always helps to know what they are, and why you are doing what you are doing. Using defaults for options may work, but I don't think it did when I set up may fstab.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.