Author Topic: How to Automount NTFS filesystem on Ubuntu  (Read 507 times)

Offline Ubuntu

  • Newbie
  • *
  • Posts: 5
  • Authority: +0/-0
    • View Profile
How to Automount NTFS filesystem on Ubuntu
« on: July 16, 2010, 04:50:00 AM »
I discovered this morning that the partition where I stored my Virtual Disks does not get mounted automatically. That invariably causes the VirtualBox Machine not to work. It gives error message that the Virtual Disks are nowhere to be found.
I knew I could easily mount the partition by clicking PLACES and the clicking the VOLUME representing the partition. I have also learnt to mount through the terminal. I know that the comand to manually mount a NTFS filesystem from command line is;

sudo mount -t ntfs /dev/sda3 /media/sda3

Of course /dev/sda3 refers to the NTFS filesystem you want to mount, so it may be something else on your own installation.

After spending hours using search engines to look for a solution that will enable em automount the drive whenever I boot my machine, I eventually got one.

To automount a filesystem, partition or device you will need to edit your /etc/fstab file and add the entry;

/dev/sda3 /media/sda3 ntfs users,defaults,umask=000 0 0

When I restarted, I discovered that the partition still did not mount automatically. I was wondering what I did wrong! Then I read one of the articles all over again and I learnt that I needed to run another command from the terminal to get my desktop to run scandisk at the next startup. Here is the command.

sudo ntfsfix /dev/sda3

Well, that did it. Now whenever I boot, the partition simply get mounted and I can easily fire up Oracle VirtualBox to access my boxed WindowXP. No more errors.