Solved

FreeBSD won't Boot after moving computer

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

743 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

11 Experts available now in Live!

Get 1:1 Help Now