Solved

FreeBSD won't Boot after moving computer

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

810 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