LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to permenantly mount NTFS drives in Linux? (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-permenantly-mount-ntfs-drives-in-linux-107591/)

raid517 10-23-2003 10:24 AM

How to permenantly mount NTFS drives in Linux?
 
Hi I have 3 NTFS drives; hda2, hde1 and hdf1 respectively. I can easily mount them by doing mount /dev/hdxyz, as is standard practice in Linux. However I want these disks to be made permenanntly avaiable on my system - That is to say when i clicck on an icon for them they arre automatically mounted and I can use them at my leisure.

How can Ii achieve this? It is oone last detail I have been leaving in my Gentoo install, until everything else is done. But i would vey much like to get it resolve.

Can anyone possibly help on this?

My fstab file llooks as follows:

Code:

# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.13 2003/07/17 19:55:18 azarah Exp $
#
# noatime turns off 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/discs/disc1/part2        /boot                ext3                noauto,noatime                1 1
/dev/discs/disc1/part4        /                ext3                noatime                        0 0
/dev/discs/disc1/part3        none                swap                sw                        0 0
/dev/cdroms/cdrom0        /mnt/cdrom        iso9660                noauto,ro                0 0

# 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

I know some people will say that the format of the layout of my disks is wrong and that it shouldn't be /dev//discs/disc1/part_abc and that it should instead be /dev/hda1 /hda2 /hde1 /hde2 and so on but all I can say is I have messed with this before and it caused serious problems that in the end I was unable to fix. I had to install gentoo again, which given this takes about 3 days, is no fun at all.

In any case there is references in /dev to /dev/discs/disc/disk0/part2 (Which is an NTFS storage drive) and /dev/discs/disc1/part 1 through 4 (this is /dev/hde1 my ntfs/Windows partition, /dev/hde2 my /boot partition /dev/hde3 my linux swap partition and /dev/hde4 which is my ext3 / paqrtition) and also to /dev//discs/discs/disc2/part1 which is another 120GB NTFS storage partition. There are also 2 DVD-R drives (this is a video editing station, hence all the drive space etc) both of which are listted in /dev as /dev/cdroms/cdrom0 and /cdrom1.

The question is, how should my fstab file look if I want all of these drives automatically mounted as soon as I boot into my Gentoo install?

Any input anyone can offer on this would be deeply appreciated.

Q

misophist 10-23-2003 12:40 PM

Your fstab looks strange to me. A gentoo forum may be what you need. Meanwhile, in SuSE and Debian, the word 'noauto' means don't mount this partition automatically. 'Auto', of course, means automount. Try it. It may work. (In the fs column 'auto' means autodetect)

I have removeable disks so my fstab is odd too. Here's an excerpt:

/dev/hda1 /windows/C auto noauto,user,exec 0 0
/dev/hda2 /mnt auto noauto,user,exec 0 0
/dev/hda5 /windows/D auto noauto,user,exec 0 0
/dev/hda6 /windows/E auto noauto,user,exec 0 0


For those of you who are angry because windows is on the a drive, it was first. SuSE is b drive, Debian is c, and I'm trying to put FreeBSD on d drive.


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