How to AutoMount a Second Drive

Asked by Oliver Casasola

Hello all,

I have 2 hard drives on my computer; my master HD is 250GBs and the slave is 500GBs, SATA both HD. When I installed Hardy Heron LTS 8.04, I have disconnected the slave HD 500GBs when I installed the full system with apps, updates and everything that I need on the system based on my primary HD; when I finished setting up my computer on the master HD, then I plugged back again the slave hard drive and it shows on the Places -> Devices; also I can red all my docs, music and stuff that I have save on the second drive (slave 500GBs).

How I can mount the second drive automatically when the computer is booting and have the second drive as part of the main system?

I have tryied to do the following steps on this website, but didn't work properly for me:
http://www.psychocats.net/ubuntu/mountlinux

My fstab looks like this
======================
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdff4dff4

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 29164 234259798+ 83 Linux
/dev/sda2 29165 30401 9936202+ 5 Extended
/dev/sda5 29165 30401 9936171 82 Linux swap / Solaris

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe04fe04f

   Device Boot Start End Blocks Id System
/dev/sdb1 1 60800 488375968+ 7 HPFS/NTFS
======================

I would like to "automount" or load automatically as a part of the main system on my computer, like "C" and "D". at this moment I can access and read & write on the second drive without any inconvenience. Also when I open the second hard drive looks like is a removal media on the desktop and of course I can "unmount" the HD (500GBs).

Thank you for your support, best regards.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
nhasian (nhasian) said :
#1

looks like your 2nd hard disk is NTFS. so add the line to your /etc/fstab:

/dev/sdb1 /media/NTFS ntfs defaults,umask=007,gid=46 0 1

also create the mountpoint from a terminal with:

sudo mkdir /media/NTFS

now reboot and you should be all set.

Can you help with this problem?

Provide an answer of your own, or ask Oliver Casasola for more information if necessary.

To post a message you must log in.