After a lot of experimentation I got it to work. I thought I would post what I did, because I suspect that it would work for other situations where ISOLINUX is used.
How to add GPARTED to a CD and boot it with BCDW
GParted gparted-livecd-0.3.1-1.iso and BCDW 2.0a1 used
- Download the GParted live CD and open with ISOBuster (or a similar tool).
- Extract the contents of the Live CD. You will get a file called GPARTED. and a directory called ISOLINUX.
- Make sure the name of the large (30MB) file "GPARTED" is all lowercase.
- Rename the directory ISOLINUX to GPARTED. The actual name isn't significant, but this is what will be used in the example below.
- Make sure the name of all the files in the GPARTED folder are renamed to lowercase.
- Set up the GPARTED files in the directory structure of the boot CD as follows. The location of the GPARTED directory isn't totally significant, but moving it down a level meets my goal of reducing the number of root-level files and directories on my boot CD.
CODE
(root)
gparted [file]
IMAGES
GPARTED
boot.cat
boot.msg
initrd.gz
isolinux.bin
isolinux.cfg
linux
splash.lss
gparted [file]
IMAGES
GPARTED
boot.cat
boot.msg
initrd.gz
isolinux.bin
isolinux.cfg
linux
splash.lss
(Note that this isn't all that you need on the CD - this is just where to put the GPARTED files.)
- Use the following line in the bcdw.ini file to boot GPARTED. This should all be on one line:
CODE
\IMAGES\GPARTED\ISOLINUX.BIN;GParted Partition Utility;;IMAGES/GPARTED/linux APPEND noapic initrd=IMAGES/GPARTED/initrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=65000 source=/dev/cdrom/0
Where does this line come from?
- The first parameter is the path to the ISOLINUX.BIN file, using DOS-style backslashes.
- After the semicolon is a description. After the third semicolon, the command picks up again.
- The second parameter is the path to the "linux" file, using Linux-style forward slashes.
- If you look at the file isolinux.cfg, the next portion of the BCDW line is the contents of the first line in isolinux.cfg that starts with APPEND, with the initrd= line changed to reflect the path on the CD.
- The last parameter is source=/dev/cdrom/0, which helped it boot but which I don't have any info on.
CODE
No GParted LiveCD found!!!
Kernel panic - not syncing: Attempted to kill init!
Kernel panic - not syncing: Attempted to kill init!
it means that the linux boot system (or whatever it's called) can't find the "gparted" file. In my case this was solved by making sure that the "gparted" file is at the root of the CD and that the filename is in all lowercase.