|
USB Knoppix 5.3 or 6.0
Part 2: Copying system files to flash memory.
This project is an extension of the
bootable USB Linux installation, with an emphasis on the Knoppix 5.3.1 or 6.0.1 CDs. The Knoppix CDs are
stripped down version of the official DVD releases, and run much faster when installed to
a flash memory device. Part 2 continues installation to create a working bootable USB system.
At this point during the bootable USB Knoppix
installation, the flash drive is formatted and ready to receive
knoppix files from the live disc (or ISO image). The GRUB
bootloader will also be installed.
- Using your ISO editor, copy the entire contents of your Knoppix
ISO image onto the flashdrive. When finished there should be two
folders on the flash drive: "boot" and "KNOPPIX." Also, the root directory
should contain "cdrom.ico" and a few other files from the disc.
- Copy the "grub" folder (from step 2, unziped)
from your hard drive into the flashdrive's "boot"
folder.
- Open a console and enter "sudo grub" on the command line.
- Within grub, enter the command "find /boot/grub/menu.lst" and
note the location of the flashdrive boot directory as
seen by the operating system for example: sd1,0.
grub>
find
/boot/grub/menu.lst
(sd0,0)
(sd1,0)
|
Note: In Linux, drive numbers start at
zero, not one.
- Next, type "root" followed by a space and the
drive within parenthesis, for example: "root (sd1,0)"
and note no error messages.
grub>
root (sd1,0)
Filesystem is fat,
partition type is 0xC
|
Now we have specified the flash drive (sd1), so
GRUB will be installed to the first sector of
that device.
- Finally, type "setup" followed by a space and the
drive within parenthesis, for example: "setup (sd0)"
and note no error messages.
And GRUB is installed to the flash memory device...
Checking if "/boot/grub/stage1"
exists...yes
Checking if "/boot/grub/stage2"
exists...yes
Checking if
"/boot/grub/e2fs_stage1_5" exists...yes
Running "embed
/boot/grub/e2fs_stage1_5 (sd1)"... 16
sectors are embedded...succeeded
Running "install /boot/grub/stage1
(sd1) (sd1)1+16 p (sd1,0)/boot/grub/stage2
/boot/grub/menu.list"... succeeded
Running "install /boot/grub/stage1 d
(sd1,0) /boot/grub/stage2 p
/boot/grub/menu.lst"... succeeded
Done.
|
- Type "quit" to exit GRUB, then close the console
window.
- If using a Knoppix CD or DVD, remove it from the computer.
- Reboot the computer into your newly installed "Knoppix on a flash drive".
Next, see the customization and
troubleshooting pages to fine-tune your USB Knoppix installation.
|