[CentOS] USB install annoyances

Thu Jan 12 04:30:09 UTC 2012
Darr247 <darr247 at gmail.com>

On Tuesday, January 10, 2012 17:53 [UTC -5],
Darr247 spake thusly:

> I did not see that synopsis in your original post (and I'm not sure I
> could figure out what commands you used by that).
> The only 2 replies to this thread I saw in digest 84 issue 9 were to
> John Doe.
> 
> Anyway, this is what I have in my notes, though I see you've marked
> this as solved...
> 
> mostly assuming sdb as the USB device.
> 
> From blank USB stick to bootable install:
> 
> yum install livecd-tools syslinux
> dd if=/dev/zero of=/dev/sdb bs=512 count=1000
> parted /dev/sdb mklabel msdos
> parted /dev/sdb mkpartfs p ext2 0% 100%
> tune2fs -m0 /dev/sdb1

Oh, and sometimes the tune2fs command isn't needed.
If I recall, it's needed only if the stick has never been formatted.


> parted /dev/sdb toggle 1 boot
> umount /dev/sdb1
> livecd-iso-to-disk <path to>/DVD.iso /dev/sdb1
> 
> mkdir /mnt/iso
> mount -o loop <path to>/DVD.iso /mnt/iso
> mkdir media<usb stick>/images
> cp /mnt/iso/images/install.img media<usb stick>images
> cp <path to>/DVD.iso /media/<usb stick>/
> 
> TEST:
> qemu -m 512 /dev/sdb
> 
> 
> I guess I should add
> yum install qemu
> to my notes, as I don't think that's installed by default.
> 
> But using livecd-iso-to-disk makes it NOT ask for the image file
> location during the install. Try it.  
> 
> Personally, I think they should've named it bootable-iso-tools, but
> everyone's probably used to the livecd-tools name by now.