Ubuntu – Can Ubuntu automatically mount a second, internal hard drive?


Possible Duplicate:
Automatically mount NTFS drive when I login

I have a second, internal hard drive for the purpose of backup. I use Back in Time to backup every hour onto this second drive. The problem is that, unlike Windows, Ubuntu fails to see the second drive on boot up. I have to manually mount it which is a pain for me and a real pain for my non technical wife. Is there any simple way to automate this process? In fact, why does Ubuntu not see it and mount it automatically, like Windows?

Best Answer

You can add the mount to /etc/fstab file as well. The syntax

# <file system> <mount point>   <type>  <options>       <dump>  <pass>

so it would be something like

  /dev/sdb1   /backup      ext4    defaults 0  1

assuming the device name is sdb1 and mount point is /backup.

I would recommend to backup existing /etc/fstab file so that you can revert if something goes wrong.

To edit /etc/fstab in Graphical mode (in case you dont know emacs and (g)vi(m) which is more text based, use

gksudo gedit  /etc/fstab