Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 11-16-2003, 07:39 PM   #1
Registered: Oct 2003
Posts: 32

Rep: Reputation: 15
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?
Old 11-16-2003, 07:51 PM   #2
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
# Managing drives
LNAG - Accessing my drives
Rute - Device Mounting

A sample /etc/fstab file:
# 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.
Old 11-16-2003, 07:59 PM   #3
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 460

Rep: Reputation: 42
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
Old 11-16-2003, 08:11 PM   #4
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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......

Last edited by fancypiper; 11-16-2003 at 08:14 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH take FOREVER doralsoral Linux - Software 1 10-19-2005 04:17 PM
diamonds are forever... what's up with Ruby??? zee_man78 Linux - Software 0 10-13-2005 04:48 PM
Encrypted HD, forever? microsoft/linux General 7 06-17-2005 07:56 PM
how to disable dpms forever??? bloody_penguin Linux - General 0 11-29-2004 08:45 AM
Possible to lock out interrupts forever? skywalker27182 Linux - Newbie 3 02-04-2004 08:12 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration