[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Flash Drive

----- Original Message ----- From: "Jason L Tibbitts III" <tibbs math uh edu>
To: "Discussion list about Kickstart" <kickstart-list redhat com>
Sent: Wednesday, October 12, 2005 6:37 PM
Subject: Re: Flash Drive

"GP" == Gary P <list akwebhosting net> writes:

GP> All the readme and how'tos i found so far on the net dont
GP> work. has anyone gotten a flash stick to bootup and actually
GP> load??

Sure, I did it just by dd'ing diskboot.img to a flash drive I had
lying around.  I found it a little small so I just looked at the
script that generates it (/usr/lib/anaconda-runtime/mk-images.i386)
and made a larger image with room for more kernels.

Here's the basics:

mkdir -p $TOPDESTPATH/images/fobpath
dd if=/dev/zero of=$TOPDESTPATH/images/diskboot.img bs=1M count=6 2>/dev/null
mkdosfs $TOPDESTPATH/images/diskboot.img
$SYSLINUX $TOPDESTPATH/images/diskboot.img
mount -o loop $TOPDESTPATH/images/diskboot.img $TOPDESTPATH/images/fobpath
cp -r $TOPDESTPATH/isolinux/* $TOPDESTPATH/images/fobpath/
grep -v local $TOPDESTPATH/images/fobpath/isolinux.cfg > $TOPDESTPATH/images/fobpath/syslinux.cfg
rm -f $TOPDESTPATH/images/fobpath/isolinux.cfg
umount -f $TOPDESTPATH/images/fobpath
rmdir $TOPDESTPATH/images/fobpath

change the count=6 on the second line to approximate the size of your
flask drive if you want to fill it.  I used 126 for a 128MB drive I
had around.

But honestly, if diskboot.img didn't work for you then I think you
must have some other issue.  The image worked for me on pretty much
every USB-bootable machine I have access to.

You aren't dd'ing the image to a partition on the flash drive, are
you?  It should be something like:

dd if=diskboot.img of=/dev/sda


dd if=diskboot.img of=/dev/sda1

- J<

thanks, well the problem i got stuck at with DD was the fact that it kept formatting it to 1.44MB so thats as far as i went when i went that route i will read over your email closely and give it a try, thanks! Gary
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]