Here I asked How can I save settings when booting an ISO file from HARD DRIVE.
After trying different combinations around Sadi's solution, the only thing that has worked for me is to place the ext2 file called casper-rw
in a FAT partition, not in the system ext4 partition (I haven't been able to boot if the file is not in the FAT partition); and the only parameter that I need to add to the usual menu entry in grub2's menu that already booted the iso-image is "persistent" (no reference to the FAT partition, but I ignore if 'boot=casper' makes reference to the casper-rw used for persistence). The menu entry is like this:
menuentry 'ISO Booting - Ubuntu-64bit.iso live' {
set isofile="/home/user/Desktop/ISO/Ubuntu-64bit.iso"
loopback loop (hd0,3)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile bootkbd=es console-setup/layoutcode=es persistent noprompt noeject --
initrd (loop)/casper/initrd.lz
}
The problem is that the the whole FAT partition that contains the casper-rw
ext2 file becomes inaccessible; it can't be mounted because it's busy; it is displayed, together with the /cow filesystem as mounted in Nautilus, but I only see /cow as root in mount
's output . I would like to find a solution without repartitioning.
Is that possible?