Auto Mount NTFS Partition/Drives on boot up.
Nils Kassube
kassube at gmx.net
Sat Apr 11 06:35:27 UTC 2009
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
More information about the ubuntu-users
mailing list