Auto Mount NTFS Partition/Drives on boot up.

Mark Hannon markhannon at optusnet.com.au
Sat Apr 11 07:25:34 UTC 2009


If you want r/w access to the drive you will need to use ntfs-3g as the
filesystem type.  Something like:

/dev/sda1	/vol/c 	ntfs-3g	ro,uid=2003,gid=2003,umask=7,nls=utf8	0 0
/dev/sda5     	/vol/d 	ntfs-3g rw,uid=2003,gid=2003,umask=7,nls=utf8	0 0

These lines mount my C drive, read-only, with user/group mapped to 2003
and D drive r/w.

Rgds/Mark


On Sat, 2009-04-11 at 08:35 +0200, Nils Kassube wrote:

> Bob Cortez wrote:
> > Here's what I have
> >
> > /dev/sda4	/media/Disk1	Partition
> > /dev/sdb1	/media/Disk2	Hard Drive
> >
> > I can manually mount these drives going to Places|Removable Media and
> > selecting either Disk1 or Disk2.  All I want to do is automate that
> > process so they mount like my two external hard drives.  I'm pretty
> > sure I have to edit the /etc/fstab file, but either I'm doing it
> > wrong or I'm missing a step in the process.
> 
> First you need root privilege to edit fstab. Use a command like this
> 
> gksu gedit /etc/fstab
> 
> in a terminal to edit the file. Then for each partition add a line like
> this:
> 
> UUID=2054A77B54A75278 /media/sda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
> 
> where you replace the UUID string and the mount point (the line
> above is from my NTFS partition) with the ones for your partitions. You
> can use the command
> 
> sudo blkid
> 
> in a terminal to find out the UUIDs for the partitions. Please use the
> command
> 
> man fstab
> 
> to learn more about what the fstab line should look like. In theory you
> could use the device names instead of UUIDs but the kernel doesn't
> guarantee that disks always have the same device name. Therefore it is
> recommended to use UUIDs (or labels) instead.
> 
> 
> Nils
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090411/5a74cd4e/attachment.html>


More information about the ubuntu-users mailing list