[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 410
  • Last Modified:

FreeBSD won't Boot after moving computer

My FreeBSD box won't boot after having it unplugged for several months and moving from one house to another.

The hardware passes all the motherboards tests and boots just fine to any CD boot disks - so i don't think it's a hardware issue.

The error is something like no boot kernel on hard drive. (I can get the exact error if needed).

I suspect that somehow there was a software corruption on the hard drive.

Is there a way to repair if I haven't created any emergency disks or backups? Or do I need to reformat and start fresh?
0
RelsKhan
Asked:
RelsKhan
  • 3
  • 2
1 Solution
 
RelsKhanAuthor Commented:
Ok here's the exact error message:

error 16 lba 787007
INVALID FORMAT

FreeBSD/i386 boot
Default: 0:ad(0,a)/boot/Kernel/Kernel
boot: _
0
 
gheistCommented:
It is physical disk damage.

dd if=/dev/da0 of=/dev/null bs=32768 - does it read all the way?
smartctl -a /dev/sda (from Ubuntu livecd - does it have bad sectors)

After that you need new disk and assistance from here to copy (undamaged) data over.
0
 
gheistCommented:
Err 16 EBUSY - might be timeout for cable disconnected while moving. Re-check that before writing off disk.
0
 
RelsKhanAuthor Commented:
It was a bad hard drive - I just didn't want to admit! Thanks ;)
0
 
gheistCommented:
dd if=/dev/da0 bs=4096 conv=noerror,notruncate of=/dev/da6

Magic to copy data from broke disk.
after theat - dsck, bootchain reinitialisation from boot cd...
Good luck.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now