SDL on usb stick
Kevin Cozens
kevin-4dS5u2o1hCn3fQ9qLvQP4Q at public.gmane.org
Wed Apr 4 23:57:05 UTC 2007
Jose wrote:
> I have a 1GB usb stick, I tried loading it with DamnSmallLinux 3.3 on
> it, but after running syslinux ver 32 and 30 and creating a 250
> partition just allow some extra room, and left the rest unpartition, I
> am unable to make to run
[snip]
> Has anybody tried this before, thanks in advance for any comments
I have done this. I found most of the information I had found on the net
didn't seem to work very well (if at all). The information I found usually
involved the use of syslinux. I finally came up with my own set of steps that
seem to work reliably.
The following notes are what I typed up for myself a while back about how I
make a USB key bootable.
Making a USB key bootable
The information below provides an overview of the steps you need to follow in
order to create a bootable ext2 based file system partition on a USB key.
The information below is based on the assumptions that your USB key is
/dev/sda and that it can be mounted to /media/usbdisk.
Run 'fdisk /dev/sda' and create at least one partition and mark it as
bootable. The following steps will assume the bootable partition is the first
one (ie. /dev/sda1).
Now that you have a bootable partition, run the following commands:
mke2fs /dev/sda1
mount /dev/sda1 /media/usbdisk
grub-install --no-floppy --root-directory=/media/usbdisk /dev/sda
cd /media/usbdisk/boot/grub
rm fat_stage1_5 ffs_stage_1_5 iso9660_stage_1_5 jfs_stage_1_5 minix_stage_1_5
rm reiserfs_stage_1_5 ufs2_stage_1_5 vstatfs_stage_1_5 xfs_stage_1_5
cd -
At this point, the only remaining stage1_5 file in /media/usbdisk/boot/grub
should be the one named 'e2fs_stage1_5'.
The remaining information is for use when remastering a CD-ROM image for use
on a USB key.
Delete (or don't copy) the stage1, stage2, and *stage1_5 files from the
/boot/grub directory of the ISO being remastered for a USB key prior to
copying the ISO files over to the USB key.
In the grub directory, create a symlink called menu.1st which points to
grub.conf. Add bootusb1 or bootusb2 to the kernel command line of the
grub.conf file in /boot/grub.
P.S. Thanks for asking about this. I meant to add this information as a page
on my web site.
--
Cheers!
Kevin.
http://www.ve3syb.ca/ |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus:
| Try to assimilate the world!"
#include <disclaimer/favourite> | -Pinkutus & the Borg
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list