Solved

FreeBSD won't Boot after moving computer

Posted on 2009-05-14
5
352 Views
Last Modified: 2013-11-22
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
Comment
Question by:RelsKhan
  • 3
  • 2
5 Comments
 

Author Comment

by:RelsKhan
ID: 24384170
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
 
LVL 61

Accepted Solution

by:
gheist earned 250 total points
ID: 24392577
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
 
LVL 61

Expert Comment

by:gheist
ID: 24393401
Err 16 EBUSY - might be timeout for cable disconnected while moving. Re-check that before writing off disk.
0
 

Author Closing Comment

by:RelsKhan
ID: 31581421
It was a bad hard drive - I just didn't want to admit! Thanks ;)
0
 
LVL 61

Expert Comment

by:gheist
ID: 24403274
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now