SI-04: How To build your own Live CD with mklivecd?
Step 1
Install a 'basic' Mandrake 9.2 (individual package selection, concentrate on one DE) on a separate partition. Or as the only OS on your PC, does not matter. You will need a ~5 GB partition. And a swap partition, you can use your already existing swap. 250 MB should be fine. Create one user with a password, and root of course. If you have a multi-boot box, tell the installer to write lilo to /, not to the mbr. Modify your lilo in your main install to call lilo in your new partition. Or do what you use to do in this case ;-)
Step 2
Boot your fresh MDK. Run immediately menudrake - and choose menustyle - second choice: mandrake menu. Save it. Now you won't get the menu bug and you don't have to install all these updates.
Get the following rpm's from a mdk 9.2 contrib mirror:
- kernel-tmb-2.4.22.21
- busybox
- cloop-utils
http://developer.berlios.de/project/showfi...p?group_id=1149
Install the kernel on the new partition. Urpmi or MCC. Uninstall the old kernel, dito. Reboot and make sure everything is ok. I had no problems. Install the rpms busybox, cloop and mklivecd on your new partition.
Step 3
Remove all stuff using mcc-softwaremanagement, that you don't need. Hints: python, gimp etc. Don't remove the gnome-libs, mdk config tools need them. Check in a terminal how big your used space is:
# df
Hint: clean /usr/share/doc and /usr/share/man and /usr/share/wallpapers (~200 MB)
- Install additional stuff from contrib and plf etc.
- You iso should have a maximum of 700 MB to fit on a cd. Your used space should be < 1,7 GB. The compression rate is ~ 41 %
Make your desktop look nice. Configure everything - your live cd will look and behave almost exactly like your installed system. Don't forget to clean your browser cache, the cookies, your trash can ... stuff in your home dir, or the add. rpm's.
Once again:
# df
Step 5
Open a terminal, su to root :
# mklivecd --help
Here you'll find all options to run the script.
Most simple is:
# mklivecd <name>.iso (where <name> is your choice)
This will create an iso file in your current directory.
This is what I am using:
# mklivecd --verbose --keyboard=de --fstab=rw,auto --splash=no rainbow.iso
Explanation:
- --verbose
You can see, what the script is doing. Very nice!
- --keyboard=de
Default is the US layout, so this is my keyb for the live cd.
- --fstab=rw,auto
Default creates the script a fstab without mounting the partitions on the hd. This option creates a fstab with read-write mounted partitions, Windows and Linux part., exception NTFS (you have to mount it manually to an already set mount point)
- --splash=no
This will create a live cd without the Mandrake bootsplash and the background while booting. I've set it this way to get rid of it. When you have your own bootsplash theme, and you want to use it, dont set this option. Default is with bootsplash.
- rainbow.iso
This is the name of the iso file, that the script creates. Your choice.
How long does it take: on a P4, 2 Ghz with 256 MB RAM and a swap of 250 MB it took me 7 minutes to create a 230 MB iso from a used space of ~600 MB.
Step 6
Burn the iso - to a cd-rw (or cd-r). Or copy it to a different partition where you have your burning application.
Step 7
Boot your cd. And tell us about it.
This post has been edited by Tuxiscool: 01 May 2004 - 04:46 AM

Help
MultiQuote










