Ubuntu – How to auto mount the external hard drive


On login, ubuntu 10.10 would not mount external hard drives automatically, While ubuntu 10.04 mount them on login.
I've tried Storage Device Manager but it give error when external hard is not plugged.

any idea or suggestion?

Best Answer

I'm in a similar situation, except that my system worked just fine with 10.04. I have an external mybook hard drive that I use for backup using nfs4 and grsync. At the end of fstab I have these mount commands:

/media/mybook/laptop_backup /export/laptop_backup none bind 0 0
/media/mybook/laptop_D610 /export/laptop_D610 none bind 0 0
/media/mybook/laptop_www /export/laptop_www none bind 0 0

In 10.04, boot completed with these directories mounted and accessible over the network. When I upgraded to 10.10, the boot pauses with an error message regarding each one giving me the option to press S to skip or some other letter to manually fix the problem. Since I don't know how to fix it, I just skip (once for each directory) and boot completes. Manually executing sudo mount -a succeeds in mounting the directories. I guess the timing changed from 10.04 to 10.10 or something.

Note that there is no mount command for the mybook external USB 1 TB hard drive in /etc/fstab. So I guess the drive automounted in 10.04 and that's not happening in 10.10. I tried adding:

 /dev/sdd1 /media/mybook type ext3

But that failed in the same way that mounting the directories did.

Adding the nobootwait option fixed it. Oddly, it looks like nobootwait apparently causes the system to wait until the mount is completed, even though the man page says the opposite. Here's the commands from /etc/fstab:

/dev/sdd1 /media/mybook ext3 nobootwait 
/media/mybook/laptop_backup /export/laptop_backup none bind 0 0 
/media/mybook/laptop_D610 /export/laptop_D610 none bind 0 0 
/media/mybook/laptop_www /export/laptop_www none bind 0 0 –