Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

FreeBSD won't Boot after moving computer

Posted on 2009-05-14
5
366 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 62

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 62

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 62

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
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…

860 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