Automount ntfs hard drives at startup

Asked by Paulo M.

Hello!
I'm running ubunto 8.04 Hardy Heron in a PC with 3 hdd. One (160GB) where is installed ubuntu, one another (320GB) where is installed XP Pro and the last one (500GB) where I keep my files stored.
Because I'm using thunderbird in both OS sharing the same local folders and my bit-torrent clients share the downloads' folder too, I need ubuntu to mount those two drives at startup with no need to open "Computer" (or going at "media") and clicking on their icons to get them mounted, and this way I avoid those applications to getting errors when they're opened before making those drives be mounted.
Can you please show what lines should I add in fstab to get them mount at startup?

Here is my "sudo fdisk -l" report:

Disk /dev/sda: 320.0 GB, 320072933376 bytes
16 heads, 63 sectors/track, 620181 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0xefa685e0

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 620178 312569680+ 7 HPFS/NTFS

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

   Device Boot Start End Blocks Id System
/dev/sdb1 1 60801 488384001 7 HPFS/NTFS

Disk /dev/sdc: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x75887588

   Device Boot Start End Blocks Id System
/dev/sdc1 1 19178 154047253+ 83 Linux
/dev/sdc2 19179 19929 6032407+ 5 Extended
/dev/sdc5 19179 19929 6032376 82 Linux swap / Solaris

and cat /etc/fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdc1
UUID=7373cd8f-7768-44ee-bb85-516d7655ecd1 / ext3 relatime,errors=remount-ro 0 1
# /dev/sdc5
UUID=da79cb63-3ba4-45ab-98e4-2c2d32e5510a none swap sw 0 0
/dev/scd2 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd1 /media/cdrom2 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

Thanks in advance!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Paulo M.
Solved:
Last query:
Last reply:
Revision history for this message
Elfy (elfy) said :
#1

You need to make folders to mount in first

sudo mkdir /media/nameofdisc

Do that 2 times once for each of the 2 partitions you need to mount - change nameofdisc to whatever you want, obviously you need to have 2 differrent names

Then edit fstab, if you don't want to use nano use whichever graphical editor you use

sudo nano /etc/fstab

add these 2 lines

/dev/sda1 /media/nameoffolder1 ntfs defaults,locale=en_US.UTF-8 0 1
/dev/sdb1 /media/nameoffolder2 ntfs defaults,locale=en_US.UTF-8 0 1

close and save - using nano - Ctrl+O then enter to save file, Ctrl+X to exit

sudo mount -a

check that they have mounted with command

mount

Revision history for this message
Paulo M. (pauloagmartins) said :
#2

Thank you very much... but one more little question:
Actually, ubuntu recognizes those 2 hdd as "XP" and "Half" (those were their names in windows)...
As those applications (thunderbird and bit torrent clients) need to recognize these two hdd, "nameofdisk" 1 and 2 and "nameoffolder" 1 and 2 must have that same names (XP and Half), that's rigth? (the names that appear in applications path)

Thanks again!

Revision history for this message
Elfy (elfy) said :
#3

I'd assume so - but not sure as never needed to do it myself

Revision history for this message
Paulo M. (pauloagmartins) said :
#4

Thanks' again...
I'll give it a try, and if something would go wrong, I'll be back here for more... if you don't mind, of course!

All my best!

Revision history for this message
Elfy (elfy) said :
#5

No never mind - although I'm more a frequenter of the forums.