Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Error occurred when booting from caine10.0.iso #237

Open
Margular opened this issue Dec 15, 2018 · 1 comment
Open

Error occurred when booting from caine10.0.iso #237

Margular opened this issue Dec 15, 2018 · 1 comment

Comments

@Margular
Copy link

Margular commented Dec 15, 2018

You can get the iso here: https://www.caine-live.net/page5/page5.html

I use makeUSB.sh to get my usb multibootable, and copy the iso to isos/ directory, then copy ubuntu-18.04.1-desktop-amd64.iso to isos/ as well for compare.

And for the purpose to make caine bootable, I mkdir in mbusb.d/caine.d, then copy the config of ubuntu in this dir: cp ../ubuntu.d/desktop-generic.cfg ./caine.cfg, and then modify to:

for isofile in $isopath/caine*.iso; do
if [ -e "$isofile" ]; then
regexp --set=isoname "$isopath/(.*)" "$isofile"
submenu "$isoname (loopback.cfg) ->" "$isofile" {
iso_path="$2"
export iso_path
search --set=root --file "$iso_path"
loopback loop "$iso_path"
root=(loop)
configfile /boot/grub/loopback.cfg
loopback --delete loop
}
fi
done

but it will cause some error occurred like this:

error screenshot here

Actually, ubuntu works! but caine is based on ubuntu, I don't know why caine can not work

@aguslr
Copy link
Owner

aguslr commented Feb 18, 2019

Hi @Margular! Sorry for taking so long to reply.

Notice how, inside the ISO file, /boot/grub/loopback.cfg has the boot parameter file=/cdrom/preseed/custom.seed which expects the CD to be mounted at /cdrom. Even if we modify this parameter so it looks in /preseed/custom.feed instead, we have the script /scripts/casper-premount trying to mount the CD, therefore the booting process fails.

It looks like they copied the loopback.cfg and grub.cfg files from Ubuntu but disabled (or didn't enable) the appropriate configuration to boot from a ISO file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants