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. Gmount-iso,small GUI tool to mount CD/DVD image iso
  4. Enable Auto Login in ubuntu
  5. How to get line number count and auto-indent in VIM

    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

    Add a Comment

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