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

Re: custom usb install image



On Sat, Apr 21, 2007 at 06:16:25PM -0500, nicholas wrote:
> 
>  mount -oloop boot.img /mnt
>  fdisk /dev/sda # create one 300MB bootable FAT16 partition
>  mkfs.vfat /dev/sda1
>  mkdir /target
>  mount /dev/sda1 /target
>  (cd /mnt && tar -cpf - .)|(cd /target && tar xpf -)
{ so this copies everything from the image file to the stick }

however, what happens if you just use cp ?

>  cp debian-40r0-amd64-businesscard.iso /target
>  umount /target /mnt
>  install-mbr /dev/sda

> 
> When I reboot with that image on sda, it blinks the cursor three or four
> times, then goes to GRUB, which found on the next boot device. If instead
> I just do "zcat boot.img.gz >/dev/sda" it works as advertised.
> 
> In this case the syslinux.cfg is unchanged from the Debian installer 
> version.

I don't understand.

I wonder if the mbr isn't finding syslinux on the first partition.  

When you just zcat boot.img.gz, does everyting end up in sda or sda1?
If sda, try the long stuff first but wipe out the partition table and go
direct to sda instead of sda1.

Maybe, as you first suggested, you can have two partitions on the stick;
one for the installer and another for an iso.

Good luck,

Doug.



Reply to: