repair a FreeBSD install

Jerry McAllister jerrymc at msu.edu
Mon Jun 4 01:48:16 UTC 2007


On Sun, Jun 03, 2007 at 02:56:08PM -0600, Chad Perrin wrote:

> On Sun, Jun 03, 2007 at 11:19:39PM +0300, Manolis Kiagias wrote:
> > You can use the grub bootloader to load freebsd (assuming that nothing
> > is damaged in the freebsd slice itself, and I believe it is intact in
> > your case)
> > It's been some time since I've done this myself (I am no longer dual
> > booting FreeBSD on this machine), but I'll try to be as accurate as
> > possible.
> > Start your system, when it gets to the grub loader press "c" to get to
> > the grub command line.
> > Do you know what your freebsd slice is? Even if you don't, you can get
> > this info from fdisk -l from debian. Or you could try searching in the
> > command line.
> > Type something like:
> > 
> > root (hd0,2,a)
> 
> GRUB doesn't recognize the partition type for some reason.  There's
> pretty clearly something wrong with the partition, I think.

Do you mean partition or slice?

The slice needs to be marked as bootable.  You can check this 
from the fixit boot using fdisk - 'fdisk ad0'  or  'fdisk da0'
presuming this is disk 0 and depending on IDE or SCSI.   
Then, if that looks OK, use bsdlabel on that slice (something 
like  'bsdlabel ad0s3' or 'bsdlabel da0s3' depending on IDE or SCSI and
presuming FreeBSD is on slice 3) from the fixit to see what you can 
learn from it.   Just doing bsdlabel with no other command flag will
print out information.

////jerry

> 
> -- 
> CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
> McCloctnick the Lucid: "The first rule of magic is simple. Don't waste your
> time waving your hands and hopping when a rock or a club will do."
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list