Auto mount ntfs drive when login your ubuntu

This post was written by admin on April 13, 2009
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

snapshot29

4.At the end of the fstab file add following:

/dev/sda6      /media/mpoint ntfs-3g    default  0   0

snapshot32

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

snapshot31

Related posts:

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

    Tags:

    Reader Comments

    Thanks!!

    [Reply]

    #1 
    Written By Keano!! on July 25th, 2009 @ 12:35 pm

    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]

    #2 
    Written By Lenin D'Cruz on August 28th, 2009 @ 10:21 am

    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]

    #3 
    Written By Jake on July 9th, 2010 @ 11:59 am

    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]

    #4 
    Written By Mark on August 13th, 2010 @ 7:05 am

    Thanks for COmments

    [Reply]

    #5 
    Written By james on September 2nd, 2010 @ 12:36 am

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address