LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   How to mount forever (https://www.linuxquestions.org/questions/red-hat-31/how-to-mount-forever-116820/)

Thaith 11-16-2003 06:39 PM

How to mount forever
 
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?

fancypiper 11-16-2003 06:51 PM

# Managing drives
LNAG - Accessing my drives
Rute - Device Mounting

A sample /etc/fstab file:
Code:

# 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


fsbooks 11-16-2003 06:59 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.

/dev/hda7 /root/SharedDir. vfat user,umask=0000

fancypiper 11-16-2003 07:11 PM

IIRC, the umask allows full read write by anyone, so be cautious as any user could remove all files either deliberately or accidentally.

Be very specific on exactly what you are wanting with your questions because it is really hard to read minds......


All times are GMT -5. The time now is 07:07 PM.