LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 10-23-2003, 11:24 AM   #1
raid517
Member
 
Registered: Feb 2002
Posts: 393

Rep: Reputation: 30
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

Last edited by raid517; 10-23-2003 at 11:26 AM.
 
Old 10-23-2003, 01:40 PM   #2
misophist
Member
 
Registered: Aug 2003
Location: here
Distribution: suse 8.2
Posts: 169

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

Last edited by misophist; 10-23-2003 at 01:42 PM.
 
  


Reply


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
how to mount NTFS drives on fedora core 2? laiju Linux - General 3 11-21-2004 04:51 PM
How To Mount NTFS Drives in Linux 9 KnowledgeSeeker Linux - Software 3 09-23-2004 05:37 PM
Can't mount NTFS drives (yeah...I searched first) mandark Debian 4 04-07-2004 12:39 AM
How to mount windows drives (NTFS formatted) to linux? djadhav Linux - Software 5 03-28-2004 12:23 PM
Can't mount ntfs hard drives? justin9 Linux - Newbie 8 07-15-2003 12:02 AM


All times are GMT -5. The time now is 09:39 AM.

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