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

Re: dding floppy30.fs to a hard drive?



begin  electrogrammati illius Generic Player

>Ok, this might sound odd, but is it possible to dd a floppy boot image
>to a hard drive and have it work?  Basically what I want to do is have
>a bunch of hard drives where as soon as you plug them in and turn on
>the box, it goes straight into an openbsd install.  I didn't expect it
>to work, but just dding a floppy30.fs onto the hard drive just gives me
>bad magic.

No it won't, because the biosboot code assumes /boot in fixed locations,
put in there by installboot(8). These correspondend of
 Drive (0x00 = floppy)
 Cylinder
 Head
 Sector
 Number of (continuous) sectors to load

So it will fail, (mostly) because the Drive is not 0x80.

Thorsten
-- 
Yes, I am root on my box, my friends' boxen and my mailgate.
And yes, I do know how to handle it. Yes, I know about kill-
rules, too. So WTF do you still bother filling my syslog?