0

I have a Intel NUC with Ubuntu 16.04. There are two external USB disks, one with external power, one powered by USB port. Both are mounted via UUID in fstab. Now I bought a new disk the same model of the USB powered I already have, the disk is this: https://www.amazon.it/gp/aw/d/B00KWHJY7Q/ref=ya_aw_od_pi?ie=UTF8&psc=1 I plugged it and it's automatically mounted on /media/usb0. I unmounted it, launched parted and deleted the existing partition. Then I created a new primary partition on the full space and created a ext2 file system on it. Discovered the UUID with blkid and added the line in fstab. The mount point exist and it is owned by the user just like the two mount points for the existing disks. If I reboot the computer it won't start, it stops with a blinking cursor, bigger than the normal cursor of the shell, like X is trying to run, but somehow couldn't. I tried to unplug the disk and Ubuntu starts. Then if I plug the disk and run mount -a as root the disk mounts correctly. It just won't let Ubuntu to boot. Any idea of what I am doing wrong?

2 Answers2

0

The mount-point in your fstab-line must be an existing folder.

When you plug-in the device to the running system, this folder will be created, in your case it is the folder /media/usb0. This folder will disappear after unplugging the device. If you mount with fstab using this folder, you have to create that folder first.

sudo mkdir /media/usb0

will create the folder. You could use any location and any name for the folder which you use as mount-point, this is up to you, the mount-point in your fstab-line must point to this folder and the folder must exist, otherwise the mount-attempt will fail.

mook765
  • 15,925
  • "The mount point exist and it is owned by the user just like the two mount points for the existing disks"

    – effemmeffe Sep 16 '16 at 07:40
  • fmf@kodi:~$ cat /etc/fstab | grep kodi – effemmeffe Sep 16 '16 at 07:42
  • UUID=1527e979-b0c7-4561-af1f-d1f77a6f8db3 /media/kodi ext2 defaults,nofail 0 0 – effemmeffe Sep 16 '16 at 07:45
  • fmf@kodi:~$ ll /media/ | grep kodi – effemmeffe Sep 16 '16 at 07:46
  • drwxrwxr-x 2 fmf fmf 4096 Sep 15 22:23 kodi/ – effemmeffe Sep 16 '16 at 07:46
  • Indeed, it doesn't look that you are doing anything wrong. Probably something wrong with the new drive. – mook765 Sep 16 '16 at 13:39
  • How can I be sure of that? The disk mounts correctly once the system is running, I also tried to copy a large amount of files on it and everything went well... – effemmeffe Sep 16 '16 at 14:57
  • You said you have another drive which is the same model and with this drive it works as expected. So why shouldn't it work with the new drive in the same way. New drive even leads to boot failure when connected. The only way to be sure is to replace the drive and see if works correctly then. Look here similar case, external drive rejects to mount with fstab, but no boot-failure. – mook765 Sep 16 '16 at 15:26
0

Are you plugging this drive into a USB 3.0 port?

There's a good chance that your USB port is not supplying enough power for the drive. Try using a different USB port for the 'failing' drive and see if that works. If not, then get a POWERED USB hub (1), plug the hub into the computer, and the drive into the hub. See if that solves your problem.

(1) A POWERED USB hub has an AC adapter to supply power to the USB ports.

Let us know. Cheers, Al

heynnema
  • 70,711
  • I thought I ruled out this by removing all the other disks and trying all the USB ports in the NUC, both the 3.0 than the 2.0. Then I was able to use a powered hub and the problem is still there. – effemmeffe Sep 22 '16 at 08:35