This is my situation: before a gentoo install, a 2gb harddisk was ok, it came with disklabel and some solaris partitions, I believe. I did a gentoo installation from netboot, creating my own set of partitions, and it went fine. I did the first reboot, and the hard drive refused to boot, claiming 'Bad magic number'. So, I booted via netboot again and tried to fdisk. fdisk immediatly says that the disk does not have a valid sun disklabel. Then, I've read the disklabel info from an equal disk I have, that is working ok, and supplied that information to fdisk.

What is weird now is that, when I hit 'p' to see the partition table, I can still see the partition scheme I had during the installation. But I am unable to write the disklabel to the disk, fdisk exits with these errors: