spookybathtub
February 1st, 2019, 07:30 PM
I'm trying to make a multiboot USB stick using grub2 that can install Ubuntu server from an ISO, among other things. The Ubuntu installer starts and asks me about languages, but then I get this error. Switching to the console shows the following messages:
Searching for Ubuntu installation media...
Devices: '/dev/sr0 /dev/sdc1'
CD-ROM mount failed: device=/dev/sr0 fstype=iso9660
CD-ROM mount failed: device=/dev/sdc1 fstype=iso9660
CD-ROM mount succeeded: device=/dev/sdc1 fstype=vfat
The CD in /dev/sdc1 is not an Ubuntu CD!
I've never messed with grub before, so I probably made an error here, but this is my grub entry:
#menuentry "Ubuntu 18.04.1 Server amd64" {
# set isofile="(hd0,1)/boot/ubuntu-18.04.1-server-amd64.iso"
# loopback loop $isofile
# linux (loop)/install/vmlinuz iso-scan/filename=${isofile}
# initrd (loop)/install/initrd.gz
#}
sdc1 is the USB stick which is FAT format. I need to make it mount the ISO instead.
If I inspect the ISO on another system, it does not appear to be iso9660, is this a problem?
file /tmp/ubuntu-18.04.1-server-amd64.iso
/tmp/ubuntu-18.04.1-server-amd64.iso: DOS/MBR boot sector; partition 2 : ID=0xef, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 334968, 4672 sectors
Searching for Ubuntu installation media...
Devices: '/dev/sr0 /dev/sdc1'
CD-ROM mount failed: device=/dev/sr0 fstype=iso9660
CD-ROM mount failed: device=/dev/sdc1 fstype=iso9660
CD-ROM mount succeeded: device=/dev/sdc1 fstype=vfat
The CD in /dev/sdc1 is not an Ubuntu CD!
I've never messed with grub before, so I probably made an error here, but this is my grub entry:
#menuentry "Ubuntu 18.04.1 Server amd64" {
# set isofile="(hd0,1)/boot/ubuntu-18.04.1-server-amd64.iso"
# loopback loop $isofile
# linux (loop)/install/vmlinuz iso-scan/filename=${isofile}
# initrd (loop)/install/initrd.gz
#}
sdc1 is the USB stick which is FAT format. I need to make it mount the ISO instead.
If I inspect the ISO on another system, it does not appear to be iso9660, is this a problem?
file /tmp/ubuntu-18.04.1-server-amd64.iso
/tmp/ubuntu-18.04.1-server-amd64.iso: DOS/MBR boot sector; partition 2 : ID=0xef, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 334968, 4672 sectors