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. Make Ubuntu asks password when mounting ntfs drives
  4. PySdm – Simple GUI tool Auto-Mounting hard disks at startup
  5. How to Restore Grub2 boot loader onto portable hard drive

    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

    Thanks a bunch. Took me about 2 minutes to make the changes and test it. I tried “defaults,rw” for options and used just “ntfs” for the type. Works perfect on my Maverick installation. I had forgotten to specify a mount point at install-time… I like this option een better because now a shortcut shows up on my desktop.

    [Reply]

    #6 
    Written By George on October 11th, 2010 @ 8:36 pm

    Thanks a ton for this. My external drives were only sometimes mounting on startup. This was quick and painless and fixed my issue.

    [Reply]

    #7 
    Written By Will on October 30th, 2010 @ 11:56 am

    Thank You! Best tutorial on web,for this job.

    [Reply]

    #8 
    Written By Mirko on November 4th, 2010 @ 1:47 pm

    Add a Comment

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