I'm trying to install Debian 10 using this official ISO file:
http://cdimage.debian.org/cdimage/release/current/amd64/iso-cd/debian-10.9.0-amd64-netinst.iso
I modified this ISO file to automated with preseed.cfg
, pack it using xorriso
then write this ISO file into a disk called /dev/sdb
using the following command:
wget -O mini.iso http://url_to_download_the_modified_debian_iso_with_preseed.iso
mv *.iso mini.iso
dd if=mini.iso of=/dev/sdb
Note that /dev/sdb
is a second disk partition not a flash drive
Then when I boot this ISO using the /dev/sdb
as the root drive, it can boot but
presented the following dialog about 'No common CD-ROM drive was detected':
So, I can go ahead manually specifying the installation medium at the input dialog box to be /dev/sdb
, then when I click continue the installation continues, here is the screenshot how I specify /dev/sdb
in the input box and the installation continues without problem:
Since I want this to be automated, is there a way to mount this /dev/sdb
automatically when the installation start before it scan the Disk? I couldn't find any preseed commands to skip this dialog box automatically.
I tried few of the following and add it in the preseed.cfg
but doesn't work at all (I notice that the 3rd method, the script only run after I click continue after specifying the CD-ROM path to /dev/sdb
in the dialog box)
1) d-i partman/early_command string mount /dev/sdb /cdrom
2) d-i cdrom-detect/cdrom_device string /dev/sdb
3)
d-i preseed/early_command string \
umount /cdrom; \
mkdir -p /cdrom; \
mount -t vfat /dev/sdb /cdrom
Note that, if I use this ISO file to install in Virtualbox with a predefined preseed.cfg
, it runs fine automatically until I got the working Debian OS (no CD-ROM dialog box) but in a linode server, it's a problem because it doesn't have CD-ROM enabled in their BIOS. So, the recommended way to install this ISO in linode is to boot from hard disk where I put the ISO directly to /dev/sdb