Automatically mount a ntfs hard disk at login in Ubuntu 8.04

Ubuntu 8.04 automatically detects connected hard drives (such as a second drive with an NTFS partition). NTFS hard drives are not mounted automatically by default in Ubuntu 8.04. Instead they need to be mounted manually e.g. via clicking onto them in Nautilus. Sometimes it is desirable that such a NTFS drive will be automatically mounted at login (e.g. when you want to run a script that uses these drives at startup). This can be done via:

1) Make a mounting point for that drive

sudo mkdir /media/Backup_HD

Note: Replace "Backup_HD" with whatever name you like.

2) Edit /etc/fstab:

sudo gedit /etc/fstab

3) Add the following text in fstab:

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

Note: Replace "/media/Backup_HD" with the name you choose in the 1st step. Furthermore, replace "/dev/sdb1" with the actual value for the hard disk you want to mount automatically.

Note: If you don't know what value you should use instead of "/dev/sdb1" you can get a glue from:


sudo fdisk -l

Comments

  1. Interesting topic about "Automatically mount a ntfs hard disk at login in Ubuntu 8.04" and i completely agree with your 3 points.

    Hard disk recovery

    ReplyDelete
  2. I was trying to mount NTFS drive.And I have done it quite easily with the help of these steps


    Data Recovery Delhi

    ReplyDelete
  3. Thanks for the feedback. Good to know that this post was helpful.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to make screenshots and screencasts easily in Mac OS X?

Use Western Digital WDH1NC10000E My Book World Edition 1TB NAS network drive as backup destination for time machine on Mac OS X 10.5