1

I used to add external usb hdds as automounts in /etc/fstab, but sometimes I remove them (or they fail) rebooting the server fails since they won't mount.

Is there a way to automount system hdds if they exist, but don't hold up the boot process if they're not there?

It is absolutely imperative that the machine be able to reboot properly because I can't physically access it easily.

wting
  • 384

3 Answers3

1

There is an option to skip fstab. Install autofs and configure your external disks to be mounted when you need them.

orzechow
  • 109
McNisse
  • 1,863
1

TrailRider's link provided a starting point, but using the fstab options auto, nofail, defaults will achieve the wanted behavior.

wting
  • 384
-1

try to mount your external drive by uuid

something like this in your etc/fstab :

UUID=7CB8A6BAB8A671F6 /media/USBdisk ext3 defaults 0 0

plug your external USB drive and type'sudo blkid' on console to know your UUID.

Don't forget to 'sudo mkdir /media/USBdisk && chown my_pseudo:my_pseudo /media/USBdisk' before reboot.

bart
  • 1