Wednesday, August 5, 2009

Useful tip: Run LiveCD and eject CD - Knoppix.net

Useful tip: Run LiveCD and eject CD - Knoppix.net: "Now we can copy to HD / RAM while running from CD, which basically also allows changing the applications that run from the CD! Changing is just limited by the number of cloop devices, which is sad :-/ due to a bug (?) in cloop ...

Code:

# copy to HD
mount /mnt/hda6
rsync -avP /cdrom/KNOPPIX /mnt/hda6/

# load from HD
losetup /dev/cloop1 /mnt/hda6/KNOPPIX/KNOPPIX
mount /dev/cloop1 /KNOPPIX

# remove CD
umount -l /cdrom
eject /dev/cdrom

# fill in /cdrom again (optional)
# either through --move or --bind
mount --bind /mnt/hda6 /cdrom



Thats it.

Possibilities are of course again unlimited. This could create an ISO on the fly from the CD and then insert it, copy to NTFS partitions and whatever you have not even thought of.

I'm still working on a solution to put out the CD cleanly without risking cloop to not be able to read some blocks ... (when you can't change to another backing device)

Possibly you could just copy (e.g. videoplayer) whats necessary to ramdisk and then run from there ...

cu

Fabian"

No comments:

Post a Comment