Setting up a Windows partition to automatically mount on boot in Ubuntu

Quick one here, something I find myself doing every time I install Ubuntu on a dual boot machine.

1. Create your mount point, sudo mkdir/media/windows
2. Add a line to /etc/fstab, the one below is for a Windows HDD, with the main partition being sda2 (you can work this out by graphically mounting the partition through nautilus and then running df -h)

/dev/sda2 /media/windows ntfs-3g user,fmask=0111,dmask=0000 0 0

Save /etc/fstab then you can run mount /dev/sda2 to mount the drive. It should mount automatically at /media/windows from now on.


Add yours →

  1. Myself included. You can also do this graphically using NTFS Configuration Tool, but it’s very dodgy in Ubuntu 10.10. Couldn’t get it working on anyone’s Maverick installation at my Linux class.

  2. Thanks, just what I was looking for! ;D

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.