Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Sep 2002 15:08:55 +0200
From:      Hanspeter Roth <hanspeter_roth@hotmail.com>
To:        freebsd-questions@freebsd.org
Subject:   recovering ufs after fat games
Message-ID:  <20020914150855.A408@gicco.cablecom.ch>

next in thread | raw e-mail | index | archive | help
Hello,

I have a disk with 2491 cylinders. Windows C partition is at the
front and FreeBsd is starting at cylinder 2081.
After installing FreeBsd with it's boot manager this is no problem.

Recently I've destroyed the Windows C partition and have reinstalled
Windows. And of course Bill knows that after installing Windows
users don't need to access FreeBsd anymore.

With the fixit CD I can still mount the root of Freebsd. I'm using
/dev/ad0s4 instead of ad0s4a but at least mounting seems to work.
Then I chroot to the old Freebsd root and mount old /usr call
`boot0cfg -Bv /dev/ad0'.

Thereafter FreeBsd appears in slot 4 of the boot menu. But trying to
select it just beeps and refuses to boot. It seems that my boot0cfg
command didn't achieve the whole job.

Then I installed a dummy FreeBsd on partition (slice?) 3. This makes
also FreeBsd on the old partition bootable again.
Installing a dummy FreeBsd must have done something which my
previous boot0cfg command didn't.

Installing a dummy FreeBsd is just a little tedious.
Is there a more direct means to make the old FreeBsd bootable again?

Fdisk prints

******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=2491 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=2491 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 12,(DOS or Windows 95 with 32 bit FAT, LBA)
    start 63, size 2056257 (1004 Meg), flag 0
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 127/ head 254/ sector 63
The data for partition 2 is:
sysid 3,(XENIX /usr filesystem)
    start 2056320, size 7566615 (3694 Meg), flag 0
        beg: cyl 128/ head 0/ sector 1;
        end: cyl 598/ head 254/ sector 63
The data for partition 3 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 9622935, size 2040255 (996 Meg), flag 0
        beg: cyl 599/ head 0/ sector 1;
        end: cyl 725/ head 254/ sector 63
The data for partition 4 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 33431265, size 6586650 (3216 Meg), flag 80 (active)
        beg: cyl 1023/ head 255/ sector 63;
        end: cyl 1023/ head 254/ sector 63

(Partition 2 is just a fake partition.)

-Hanspeter

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020914150855.A408>