PDA

View Full Version : Accessing a file on live CD post boot.



AndrewStone
02-21-2012, 10:05 AM
I am trying to make a easily customizable linux live cd. The user should be able to replace one file in the .ISO file's root folder. I need to be able to read the file after the cd has booted. It may not be embeded in the ramdisk.

Can i pass the file to the kernel via some parameter?
Do i need to mount the cd, what if it booted via usb?
How would i go about doing this?

klaus2008
02-21-2012, 11:52 PM
I think that you could create a shell script knoppix.sh in the KNOPPIX directory. This script would be executed after system configuration has finished. If your file has to be read at an earlier time you should modify the init script inside minirt.gz.

utu
02-22-2012, 10:11 PM
Greetings, AndrewStone.

If I understand your question, there are a couple of ways to provide for file access after LiveUSB boot.
One is to partition the USB into one or more additional sectors before you create the LiveUSB,
Another is to not use all the LiveUSB partition for the LiveUSB and persistence, save a little.
this saved amount shows up in /mnt-system, if I recall correctly.

Cheers