Philly
Group: Members
Posts: 16
Joined: Oct. 2003 |
|
Posted: Nov. 06 2003,16:08 |
|
There Are some pre-requisits. Hardware : Processor :266 allows for ISO generation speeds in 10-20 minutes. Ram: More than 96mb, Probly could do it easily with 256mb Hard drive: 2gigs or more; really handy to have a multi boot HD with either another OS with a cd burning app right on it, or the ability to transfer via network to a system with cd burnin stuff. CD burner.
Software: A DSL source CD & A Knoppix CD OR A DSL cd remastered with MKisofs. Dpkg for DSL,
Documentation : http://www.knoppix.net/docs/index.php/KnoppixRemasteringHowto This guide also assumes some DSL/linux knowledge.
Ok here's How I do it, use the above link to knoppix for some reference. HERE's What works for Me 1) Boot onto A dsl cd, DO NOT HD-INSTALL Open a term, switch to root
mount your partition, I like to mount things rather than in /mnt/hdX# I make folders right on the root like "/pa"
In /pa "mkdir /source /cd" in both of these /pa/source , /pa/cd "mkdir KNOPPIX" cd /cdrom/KNOPPIX there should be like 3 files, one is "KNOPPIX" cp everything else : "cp boot* /pa/cd/KNOPPIX; cp mkfloppy.bat /pa/cd/KNOPPIX" "cp -Rp /KNOPPIX/* /pa/source/KNOPPIX" -This copies the DSL files to the HD thus skipping the Cloop problem somepeople encounter. Then I like to either copy the dpkg-tar into /pa/source/KNOPPIX/, Just to have it for use while your At this point you could either "chroot /pa/source/KNOPPIX " then : "mount -t proc /proc proc"
OR umount the HD, reboot onto a fullsize KNOPPIX, and THEN "chroot /pa/source/KNOPPIX " and : "mount -t proc /proc proc"
From the KNOPPIX guide above once you update that dpkg, (while chrooted) You can follow all it's steps to add, and minus packages. and I think if you DL stuff that needs to be "maked" it makes to the Chroot. Heck stick with that guide through their cleanup suggestions, orelse DSL gets FAT fast.. ANd maybe jon can suggest ways to re-remove dpkg once we're done. and don't forget before you un chroot (ctrl -d) to "umount /proc"
Where DSL gets tricky is the making of the image, so I'll set-out some specialized commands. First thing, you need to make an ISO, this is where building a dsl with mkisofs is DANG HANDY! if you have mkisofs, skip to 2), and skip 2b, 3b 1) umount the hd, reboot dsl and insert that KNOPPIX cd. In a terminal in that Knoppix mount your hd partition to a folder, /pa for our uses, you won't need to create /pa/source or /pa/cd.
2) mkisofs -R -U -V "KNOPPIX.net filesystem" -P "KNOPPIX www.knoppix.net" -hide-rr-moved -cache-inodes -no-bak -pad /pa/source/KNOPPIX > /pa/KNITTEN (or I like to use some odd all caps filename)
2b) SKIP IF YOU HAVE MKISO, and HAVEN'T LOADED KNOPPIX Umount the HD reboot switch cd's to you DSL cd. At terminal mount your hd back to PA
3) MUST BE BOOTED TO DSL and have your development partition mounted for this, the integral "clooping" to work. "/usr/bin/create_compressed_fs /pa/KNITTEN 65536 > /pa/cd/KNOPPIX/KNOPPIX "
3b) Again, skip if you started with MKISO umount the hd, reboot dsl and insert that KNOPPIX cd. mount your hd partition to /pa
4) "cd /pa/cd/master " Here's the Clincher : mkisofs -pad -l -r -J -v -V "KNOPPIX" -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -hide-rr-moved -o /pa/knoppix.iso /pa/cd/master
BOOM That dumps an Iso to /pa Probly need to reboot to an OS with a cdburner, and burn that ISO.
On a machine, using a DSL with mkisofs this could be done, within an hour, on a 2.4ghz system, with plenty of hd space, and a gig of ram, I can prep an ISO to burn ready in like 30 minutes, not counting apt-get, and package handling. shoot thats the meat and taters, critique plz!
|