Auto mount ntfs drive when login your ubuntu
Posted Under: General
My ubuntu 8.10 was installed from winXP, and it doesn’t automatically mount ntfs drive,so I mount manually when a ntfs drive with something I need
Someone may have the same problem,and I will show you how to deal with it.
1.Open a terminal window and type
Code:
sudo fdisk -l
you need to remember location of the drive you want to auto-mount,and in my case it is /dev/sda6
2.Create a file as the mount point by typing
Code:
sudo mkdir /media/mpoint
3.Type following code in terminal window
Code:
sudo gedit /etc/fstab
you will be presented with the fstab file,it lists where to mount the drive

4.At the end of the fstab file add following:
/dev/sda6 /media/mpoint ntfs-3g default 0 0

then save and close it.
Now you can test by typing:
Code:
sudo mount -a
Tips:
you can change the drive name by typing following code,and the drive must be unmount first
Code:
sudo apt-get install ntfsprogs
sudo ntfslabel /dev/sda6 jmk
restart,and you will see disk “jmk” on the desktop

Related posts:
- How to mount a partition(ntfs,fat32,.iso,and so on) in ubuntu
- Mount ISO images without burning them in Ubuntu
- Enable Auto Login in ubuntu
- Gmount-iso,small GUI tool to mount CD/DVD image iso
- Speed up Firefox by moving cache into RAM in Ubuntu

Reader Comments
Thanks!!
[Reply]
Worked perfect!! Although will not be easy to understand for the noob, this noob understood it after just a week of Ubuntu use.
Thanks a ton!!
[Reply]
BEFORE “sudo gedit /etc/fstab”
You should create a backup!
$ sudo cp /etc/fstab fstab.bak
If you made a mistake editting, you can then use this backup by renaming it again.
[Reply]
Thanks for that explanation, that sure looks a lot easier than any other instruction set I have seen. I will try it and see what happens!
Thanx!
mark
[Reply]
Thanks for COmments
[Reply]