Insert the USB stick, use cfdisk to create a partition with boot flag on this device ( cfdisk /dev/sda ).Backup the MBR of harddisk and USB stick, see the link above) (Cautions: Unmount usb stick before you remove it from USB slot to avoid data loss. Read Win Partition Poor Man Installation for the more versatile boot mechanism we gonna utilize here.Linux with GRUB grub boot loader already installed.Only 3 of 10 reviewed sticks are bootable.) (or see this 4/05 review on Ars Technica. Make sure you read the product specification, only some USB flash sticks support this feature. USB keydrive that can boot as USB-HDD device.(Unfortunately, some buggy BIOS just wont boot from my USB stick, such as all versions up to F9 for the Gigabyte GA-8IEXP motherboard). Computer with BIOS capable of booting from USB keydrive (select USB-HDD).Poor Man's USB Based Boot (Boot from USB flash memory stick and then continue boot with Knoppix image stored on a harddisk or a CD or an external USB harddisk ) How To: You should now be booting Knoppix from your USB drive.īooting to an Image on an Alternative Device Add the following lines to the beginning of the file to have Knoppix boot automatically: Kernel /boot/isolinux/linux ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt.gz nomce quiet BOOT_IMAGE=knoppixĪdd the above to /mnt/boot/grub/menu.lst. With a bit of rearranging, we get the following: Grub needs to load the initrd on its own and the arguments go on the kernel line. APPEND tells isolinux the arguments to pass to the kernel. The line starting with DEFAULT tells isolinux which kernel in /boot/isolinux to use. This is the Knoppix partition which is exactly what we want. On booting, the root is set to the boot device. The default configuration on 4.0.2 is:ĪPPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt.gz nomce quiet BOOT_IMAGE=knoppixĬonverting this to a Grub boot is relatively straight forward. These are the different default Knoppix configurations. (Note: On Redhat/Fedora based systems, the grub configuration file is called nf, not menu.lst as on Debian systems, so replace menu.lst with nf below.) Look at /mnt/boot/isolinux/isolinux.cfg. # grub-install -root-directory=/mnt -no-floppy '(hd0)'įinally, create a menu.lst file. # echo '(hd0) /dev/sda' > /mnt/boot/grub/device.map To install the stage1 boot loader to the drive's master boot record (MBR), edit the device.map file to tell grub-install that /dev/sda1 is a bios drive: (Note - You may want to try the grub-install command below before bothering to find those stage* files, since a recent version will do the copy itself.) Assuming your distribution has Grub's loader in /boot/grub: It is easiest to simply copy all of Grub's files. To set up Grub to boot from the USB drive, copy Grub's working files, namely, stage1, stage2 and the appropriate stage1_5 file, to the partition. Mount the partition and copy the contents of the KNOPPIX ISO image (named KNOPPIX.iso below) to it: If you want to be able to access your files from windows (using explore2fs for instance) make sure you do this instead: Warning: Newer versions of mke2fs now create filesystems with inode sizes of 256 by default (instead of 128), which is causing compatibility issues with a lot of ext2/ext3 tools out there. boot/grub/stage1 not read correctly".) Assuming you settle on an ext3 filesystem: (If they differ, grub-install will fail with a confusing message "file. Regardless, make sure the partition type (set when you partition the drive) matches the filesystem you install. You can use an existing VFAT filesystem (to keep compatibility with Windows/DOS). The rest of this discussion assumes that you can address this partition using /dev/sda1. cfdisk) large enough to hold the contents of the ISO image plus about 5%. This tutorial assumes that you are already running GNU/Linux (and has been tested on Debian).Īttach your USB device to your computer and create a partition (using e.g. To boot an unmodified Knoppix from a USB stick or USB hard drive is quite easy although it requires a few steps. You can create your own copy of Knoppix on USB using the tutorial below (and here: Bootable USB Key), or you can buy a USB stick with Knoppix here for $14.95 including shipping to anywhere in the world. Knoppix is a GNU/Linux distribution that boots and runs completely from cd it can also boot and run completely from a USB drive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |