Re: LiveUSB project with a new look

2009-11-15 Thread Girish Venkatachalam
Dear folks,

I got a personal mail that my USB images do not fit into 1GB and 2G sticks.

Obviously I got this wrong.

10^3 != 2^10

I have images of
2*1024^3 whereas USB sticks are short by roughly 80 MB.

I found a very interesting way of tackling this issue. Hence this mail.

Once again qemu comes to rescue.

I created a qemu filestore of the correct size.

$ qemu-img create usb-lite.bin.new 100

Then I booted both images with qemu like this

# qemu -hda usb-lite.bin -hdb usb-lite.bin.new

And from inside qemu I newfs(8)ed the new disk like this.

# fdisk -iy wd1
# disklabel -E wd1
# newfs wd1

Then I transferred the entire contents with tar.

# mount /dev/wd1a /mnt
# cd /mnt
# mount /dev/wd0a /
# tar zcXpf - / | tar zxpf -

(I should have used dump(8), restore(8) but they don't work under qemu)

Once this finishes, install the bootloaders.

# pwd
/mnt

# cp usr/mdec/b* .

# ./usr/mdec/installboot -v boot biosboot wd1
# shutdown -hp now

Cool eh?

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com



LiveUSB project with a new look

2009-11-15 Thread Girish Venkatachalam
Dear folks,

I added a non X version and dressed up the page  a bit.

http://liveusb-openbsd.sf.net

All versions have mplayer. ;)

Now there are 3 variants. A minimal version without X, a Lite version
with Windowmaker and few packages and a full version
with firefox browser.

Thanks.

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com