How do I Automount an Hard dRive in my Computer in Ubuntu?

Ralf Mardorf silver.bullet at zoho.com
Fri Nov 27 19:07:37 UTC 2015


On Fri, 27 Nov 2015 12:48:06 -0600, Simon Quigley wrote:
>You should use /etc/mtab to see what you should put as your /etc/fstab
>entry.

You should read a howto to understand what you're doing.
My fstab for good reasons does something different to an averaged
command line mount:

$ sudo umount /dev/sda11
$ sudo mount /dev/sda11 /mnt/music
$ grep /dev/sda11 /etc/mtab 
/dev/sda11 /mnt/music ext3 rw,relatime,data=ordered 0 0
$ sudo umount /dev/sda11
$ sudo mount -a
$ grep /dev/sda11 /etc/mtab 
/dev/sda11 /mnt/music ext3 rw,noatime,data=ordered 0 0

IOW you should read and learn what e.g. "relatime" vs "noatime" are for.
What are the defaults?
What is "0 0" for?

Btw. the /etc/fstab entry is this one:

$ grep /dev/sda11 /etc/fstab | grep -v "#"
/dev/sda11	/mnt/music  ext3 defaults,noatime         0 2

So how about the fsck? Is it unimportant?

Regards,
Ralf





More information about the ubuntu-users mailing list