Richard Smith rsmith@bitworks.com writes:
Richard Smith wrote:
For a pure test case it is possible to just dd the ELF image onto the start of the disk. If you don't need partitions. That is the way Ron is currently
using the code.
Thanks I'll give that a try. I also see just where fdisk put the 1st partition.
Ok... I'm booting now. Erik your hunch was correct. /dev/hda1 must have been outside the 8k section. I'm not really sure how to read fdisk's info and translate it into a physical offset on the disk but going directly to /dev/hda worked.
In the normal case just change the units to sectors. The 'u' command. A single sector is 512 bytes or 1/2 KiloByte.
Although Ron's dd command gave me an "Invalid argument /dev/hde" it appears to have written the data on to the disk as I can boot and the partitition table is still intact.
Good.
Eric