FreeBSD won't load /boot/loader

Hello.
I have a FreeBSD 7 32bit machine which wouldn't wake up from a sleep, so I hard-reset it. It then was coming up with:

Code:
Invalid partition
No /boot/loader

FreeBSD/i386 boot
Default: 0:ad(0,a)/boot/kernel/kernel
boot:
No /boot/kernel/kernel

FreeBSD/i386 boot
Default: 0:ad(0,a)/boot/kernel/kernel
boot:

I loaded the Fixit environment from a FreeBSD8 X64 disk and deleted the screwed up disk label, and used the auto label function to recreate some.
Now when I try to boot it has removed the Invalid Partition part but the rest of the error still comes up.

If I try an upgrade to FreeBSD 8 do you think it will fix this without killing any data? Otherwise does anyone know another methed to fix it?
My live CD doesnt seem to have /usr/ports/sysutils on it so cannot run scan_ffs :(

Any advice is much appreciated.
 
This can easily mean that your FS is broken (/boot/loader and /boot/kernel/kernel can not be loaded).
If you upgrade/reinstall it will fix this and everything is kept on partitions that you do not allow to format. For example if you have a separate partition for /home then you can reuse that.

What I would do is:
  1. boot from the FreeBSD 7 install CD
  2. get a root console somehow
  3. mount the / partition of the original system
  4. extract base and the generic kernel from the CD to the HDD (you can find very helpful sh scripts in each subdir)
  5. reboot from the HDD and see what happens (:
Warning: the method above may cause loss of data...
 
Back
Top