So I wanted to install Mythbuntu on my old Dell C640, I downloaded the CD and started the PC. Things went cool until the installation reached 25%. At that point ubiquity decided that the CD was corrupt and the installation could not continue.

So I tested the CD on both the old computer and a newer one. The newer computer didn’t find any error, but the C640 said the cd was completely broken (19 broken files, but one of them was the squashfs image).

Now what? Boot from USB? Didn’t seem to be an option, since there is no option in the boot menu. After a lot of time I found the following working solution:

  • Boot the laptop from the CD (remember only the installation failed)
  • Have a copy of the CD on an USB Disk
  • Mount the USB Disk (mount /dev/sdb1 /tmp/usb)
  • Mount the squashfs filesystem image that is located on the USB Disk (mount -o loop /tmp/usb/casper/filesystem.squashfs /tmp/squashfs)
  • And now the big trick: bind the new location (/tmp/squashfs) on the location that is created by the installation CD (/rofs). The command to do that is: mount –bind /tmp/squashfs /rofs.
  • Start ubiquity.