PDA

View Full Version : switching persistent disk images on the fly?



rwcitek
05-29-2005, 08:37 PM
I there a way to switch to a different persistent disk image (PDI) without having to do multiple reboots?

I have several PDIs on my USB stick. To change from one to the other, I currently do the following:
1) reboot with boot: knoppix -b
2) mount the USB stick
3) move the knoppix.img files around (e.g. mv knoppix.img knoppix.A.img ; mv knoppix.B.img knoppix.img)
4) unmount the USB stick
5) continue booting by exiting out of "emergency mode"
To switch again, I repeat the above process. What would be nice would be to do the same without having to reboot. For example, something like this:
1) drop into an emergency runlevel (e.g. init 1)
2) mount the USB stick, if necessary
3) unmount the current knoppix.img file
4) move the knoppix.img files around (e.g. mv knoppix.img knoppix.A.img ; mv knoppix.B.img knoppix.img)
5) mount the new knoppix.img file
6) return to runlevel 5 (e.g. init 5)
Not only would this be faster, but it could also be scripted.

Regards,
- Robert
http://www.cwelug.org/