On Wed, 2004-04-28 at 23:26, Jeremy Katz wrote:
On Wed, 2004-04-28 at 13:30 +0200, Giuseppe Castagna wrote:
> What should I specify for bs when copying by dd diskboot.img on my
> pendrive?
>
> I guess
>
> dd if=bootdisk.img of=/dev/sda1 bs=6291456
You need to either a) dd to the disk (ie, /dev/sda) or b) make sure that
the first partition is active in the partition table. And bs isn't
really needed
Thank your for your suggestions. Unfortunately they did not work for me.
I tried the solution (b) with two cases: a unique partition for the pen
or a small boot partition:
[root@myrte ~]# sfdisk -l /dev/sda
Disk /dev/sda: 1015 cylinders, 9 heads, 56 sectors/track
Units = cylinders of 258048 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 1014 1015- 255779+ b Win95 FAT32
/dev/sda2 0 - 0 0 0 Empty
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
[root@myrte ~]# sfdisk -l /dev/sda
Disk /dev/sda: 1015 cylinders, 9 heads, 56 sectors/track
Units = cylinders of 258048 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 31 32- 8063+ b Win95 FAT32
/dev/sda2 32 1014 983 247716 b Win95 FAT32
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
In both cases the machine stops with some garbage on the screen.
I also tried the solution (a) but in that case the machine stops with
the message "Boot failed". Should I try to use a different usb key?
Thanks in advance
---Beppe---