Hi, i have built the Debian Live binary.img using lh_build and as per the Wiki
I 'dd' it to /dev/sdb. All is well and the compact flash boots, however it soon
starts chucking up a load of errors of file seeks outside of the physical
dimensions of the disk in /var/log/messages:
Aug 9 08:11:55 debian40server kernel: attempt to access beyond end of
deviceAug 9 08:11:55 debian40server kernel: sdb1: rw=0, want=263536,
limit=212991
>From my somewhat limited understanding I believe this is because as i simply
>dd the image to the flash the partition table would have been overwritten
>which in turn would be incorrect for my compact flash as it would have
>different block sizes. I am going out on a limb and will no doubt get shot
>down in flames, so please excuse me ignorance if the above is wrong (i suspect
>it is!).
So then i tried to bypass this and:
I mount the debian live image with:
mount -o loop,offset=512 binary.img /mnt/deblive/
Load the bootsector of syslinux:
dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdb bs=512 count=1Make a 128MB fat16
parition (made with parted) on sdb1, set it bootable
I then mount /dev/sdb1 and copy all files recursively:
mnt /dev/sdb1 /mnt/cf
cp -r /mnt/deblive/* /mnt/cf/
umount /dev/sdb1
Is there any way that the device can be given to the lh_build scripts or in
configuration to use a physical device ad write to it direct rather than
creating the image file?
Please excuse me if its in the FAQ i have looked but my head isnt quite
thinking straight after playing with this all day.
Many thanks in advance,
Chris
_________________________________________________________________
Make a mini you on Windows Live Messenger!
http://clk.atdmt.com/UKM/go/107571437/direct/01/
_______________________________________________
debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel