I'm doing an unattended installation of Ubuntu-14.04-server with a USB drive on different type of servers (HP Proliant ML110, ML310, ML350).
In some cases, the USB drive is incorrectly mounted on /media
instead of /cdrom
, making the installation process stop with the following message:
[ Detect and mount CD-ROM ]
Your installation CD-ROM couldn't be mounted. This probably means that the CD-ROM was not in the drive. If so you can insert it an try again.
I managed to identify some cases where this error occurs:
- on the ML110 and ML310: when the hard drive is empty
- on the ML350 Gen9: even if the hard drive is partitioned.
I think it comes from the debian-installer
that, at an early stage of the installation, tries to mount a partition from the first drive on /media
. And then mounts the USB drive in /cdrom
.
In the above cases, the hard drive is detected later during the installation process, making the USB drive the first drive and therefore mounting it on /media
and not on /cdrom
.
For the persons for which a manual intervention is not a problem, I found a workaround that I will describe in an answer below. But for an unattended installation, this is not a solution.
Can we force the installer to mount the USB drive on a specific mont-point?
Best Answer
For the persons for which a manual intervention is not a problem, here is the simple procedure.
tty2
ortty3
by pressingalt+F2
oralt+F3
and pressenter
Un-mount the USB drive from
/media
:umount /media/
Identify the USB drive
sdX
in the device list (sda
,sdb
,sdc
, …)ls -l /sys/block/sd* | grep usb
Mount the USB drive to
/cdrom
mount /dev/sdX /cdrom
Go back to the main terminal
tty1
by pressingalt+F1
and pressyes
to retry mounting the "CD-ROM".As mentioned in the question, this is a workaround which is not a solution for an unattended installation.