NETwork Security Consortium

PENTOO
RESOURCES
CONTACTS
FORUM



 

 

USB Stick booting
Friday 3 February 2006 by Grimmlin

To write this iso image to a usbstick is simple. Let’s see:

Create a bootable, 256 Megs or more, Linux partition on your USB pen drive ie /dev/sda1 with fdisk like the following sentence
Watch out, it will suppress all data

# fdisk /dev/sda
d
n
1
Choose the size you want...
a
w

Format is Ext3 filesystem.
# mkfs.ext3 /dev/sda1

Put the file mbr.bin on the whole filesystem:
# cat extra/mbr.in > /dev/sda
(This file resides in the iso/cd in etxra/)

Mount it on /mnt/usbstick:
# mount /dev/sda1 /mnt/usbstick

Copy the /isolinux and livecd.squashfs files on /mnt/usbstick.

Use extlinux to write the bootloader on the stick : extlinux /mnt/usbstick/isolinux

You’re done. Now unmount it, reboot and enjoy.




Warning: touch() [function.touch]: Utime failed: Read-only file system in /var/www/www.netsc.ch/htdocs/ecrire/inc/genie.php on line 81