When I started my PC today as usual, it complains that it can’t find my boot disk. (I have a 200G as boot disk and another 80G disk). I did a reboot, and now it complains “invalid partition”
“Fine”, I think, it must be the connector. Then I openned the box, cleaned it, up, re-connect the disk, and boot again.
Still “Invalid Partition”. Well, the MBR may be damaged. I booted my repair live CD. The partition is OK. And I can boot my FreeBSD from the live CD menu “boot from hardisk”.
Check the FreeBSD Handbook. Well, it looks the MBR is OK, but the boot sector is damaged. So I read bsdlabel(8), and then did a
“bsdlabel -B ad0s1″
Still no good. This is wired. Anyway, the FreeBSD 6.2 is coming out, so I cvsuped my source, and rebuild the world. And wish this cold help… And ofcause, it doesn’t.
Why the liveCD could boot my FreeBSD, but the BIOS can’t? Is the physical boot sector damaged?
Tried it several times, and I noticed on the first screen, beside the note “hit DEL to enter setup”, there is another “hit F8 for boot menu”. Hmmm, what’s this boot menu? I hitted F8, and got a list of bootable devices: 2 hard disks, the CD rom, LAN, etc. And if I choose the 200G disk, it boots!
Well, it must be in the BIOS setup: In the Boot menu, there are several sub-menus, one to choose boot from CDROM, hard disk, floppy, etc, and another to choose the hard disk order. And in this menu, I found my 80G disk is in front of the 200G disk! It must be when the system can’t find the 200G disk at the first time, it removed it and move the 80G to the first, and then when the 200G comes back, the system added it after the 80G.
Got, if I know this before, I could fix it in 5 minutes, but now, 5 hours passed!
What I’ve learned:
- Always do backup. So we won’t scared ourselves too much
- The system is becomint more and more clever. Get use to it
Post a Comment
You could use <code type="name"> to get your code colorized