NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Knoppix to HD (Score:1)
KNOPPIX will install itself to a HD - this isn't what I'm talking about because I couldn't boot KNOPPIX in the first place to do the install! Instead, I had to install KNOPPIX from outside of KNOPPIX. When KNOPPIX installs itself, it extracts the contents of its compressed file system to an ext2 filesystem. I just copied the compressed filesystem image itself over, leaving it read-only.
I found this page on installing Knoppix to a flash harddrive [linuxdevices.com] and said "close enough!". The instructions are good. However, I still had some trouble, which is why I'm posting. Hopefully this will further clarify. This should apply equally to any KNOPPIX-derived live boot CD (such as the one the above link is to). Here are the five essential ingrediants to a Knoppix install: LILO (or some other bootloader), boot.img, the kernel, miniroot, and the huge KNOPPIX file. In different (later) versions of KNOPPIX, the exactly arrangement of these parts (which contains which others) varies but the parts always exist. I think. Later KNOPPIXes changed the early boot procedure and dropped boot.img I think.
boot.img contains the data from a 1.44 meg 3.5" floppy disk. This can be written to disk and used as a startup disk for systems that don't know how to boot from CD. More commonly, though, this is the CD boot file. The El Torito bootable CD specifications requires the CD to pick a 1.44 meg file of the same format as a floppy disk and use that to boot from (strictly speaking, it doesn't have to be 1.44 meg, but other sizes aren't handled well by various venders). On Knoppix 3.2, this contains SYSLINUX, the bootloader (in place of LILO) and the kernel. The floppy is of the UMSDOS format (MS-DOS extended with Unix permissions and long file names), and SYSLINUX is the DOS-mode Linux boot loader. This boot image also contains miniroot.gz, the next stage. When SYSLINUX boots the Linux kernel, vmlinuz, it passes it several parameters one of which is initrd=/boot/miniroot.gz or something close. This specifies that miniroot.gz should be used as an initial ram disk to run from. KNOPPIX 3.2 has this in the boot.img as part of the boot image; later versions of KNOPPIX can't fit vmlinuz and miniroot.gz both in 1.44 megs so miniroot.tgz is moved off the boot image. miniroot.gz is a compressed ext2 filesystem. If this file is part of the boot floppy, it may be extracted from the boot floppy, uncompressed, and mounted with loopback like gunzip miniroot.gz;mount -o loop miniroot
When the system is finally loaded, this ram disk initialized by miniroot is still in place and it specifies the basic directory structure (all of those symlinks you see when you ls -l
KNOPPIX/KNOPPIX is a ISO9660 file system where individual files are individually compressed according to an optional ISO standard that mkisofs knows to create. As I write this, there is no other way to read this image than with cloop, but fear not, the source to this module may be downloaded and compiled, and some kind soul has explained how [goldfisch.at]. You shouldn't need to do this if you're just copying the KNOPPIX file over to your HD.
Back to LILO. With a customized linuxrc, you need almost none of the extra= parameters. There, that was easy!
You'll want to use the instructions I linked to initially as your primary instructions for actually doing the KNOPPIX HD install - I haven't given the actual commands or specified what gets copied where or explained how to configure LILO. This was just some background on what the parts are, how to really get at them, and how they interact. Good luck!
-scott
Reply to This
Re:Knoppix to HD (Score:1)
Re:Knoppix to HD (Score:1)
Re:Knoppix to HD (Score:1)