Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2000 10:28:14 +0100
From:      Ernst de Haan <ernst@jollem.com>
To:        Ruslan Ermilov <ru@ucb.crimea.ua>, andrew@ugh.net.au
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Boot record repair program?
Message-ID:  <38A3D62E.FABEFC93@jollem.com>
References:  <38A2778A.4F76CB8B@znerd.demon.nl> <20000210104119.B29395@relay.ucb.crimea.ua> <38A28D6F.DE8BADDF@znerd.demon.nl> <20000210131854.A68362@relay.ucb.crimea.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------1110C115FF8367EFD2C9F691
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Thank you very very very much, Ruslan and Andrew!!!

Yes, my FreeBSD partition is back on-line! This gpart is really great. It
guessed my first partition rght the very first time, I immediately wrote
the partition, and I was able to boot it again! Wow.

Ernst


Ruslan Ermilov wrote:
> 
> On Thu, Feb 10, 2000 at 11:05:35AM +0100, Ernst de Haan wrote:
> > It was in `compatible' mode, cuz Winblows didn't start up if me 2nd disk
> > was in `dangerously dedicated mode'.
> >
> > Any help would be greatly appreciated. I'm going to install a new harddisk
> > now and install FreeBSD on that one and then try to copy all data from the
> > old disk to the new. Problem is, I don't know where the partitions start
> > :(
> >
> > I used to have my partitions like this (for what I recall):
> >
> > 1st FreeBSD  (about 3 GB)
> > 2nd Linux (about 3 GB?)
> > 3rd Linux swap (about 120 MB)
> >
> > But this is what FIPS gives me under DOS (i compressed the table):
> >
> > --------------------
> > Which Drive (1=0x80/2=0x81/)? 2
> >
> > Partition table:
> >
> >  |boot|    Start |      |     End    | Start  |Number of|
> > #|able|Hd Cyl Sec|System|Hd  Cyl  Sec| Sector |Sectors  |  MB
> > -+----+----------+------+------------+--------+---------+----
> > 1|yes | 1 768  63|   FFh|254 1917  63|16711935| 16753663|8180
> > 2| no | 0 894  63|   FFh|254 1807  63|16753663| 16747519|8177
> > 3| no | 0 768  63|   FFh|  0 1792  63|16711935| 16711935|8160
> > 4| no | 0 768  63|   FFh|  0 1792  63|16711935| 16711935|8160
> >
> > Checking root sector ...
> > Error: Invalid root sector signature: FF AA
> >
> > This is weird as I dont recall havig _4_ partitions (but it could be I
> > created different partitions for / and /usr (?) ) and the size of the
> > partitions are way out of bounds for my Quantum Fireball 6.4A (6.4 GB)
> >
> >
> FreeBSD fdisk(8) has a number of options to cope with MBR (including
> partition table); it can install new boot code (/boot/mbr by default),
> initialize the disk in "dedicated" mode, set active partition, etc.
> Refer to the fdisk(8) manpage for details.
> 
> But if partition table is clobberred... it should be restored somehow,
> and this is a not-so-easy, though still possible, task.  Basically,
> you would need to scan through the disk and find the BSD disklabel,
> and then manually re-create partition table, but this is beyond this
> discussion, and I think ports/sysutils/gpart is more intelligent on
> this one:
> 
> : A port of a tool which tries to guess the primary partition table of a PC-type
> : hard disk in case the primary partition table in sector 0 is damaged, incorrect
> : or deleted. The guessed table can be written to a file or device.
> :
> : Supported (guessable) filesystem or partition types: DOS/Windows FAT, Linux
> : ext2 and swap, OS/2 HPFS, Windows NTFS, FreeBSD and Solaris/x86 disklabels,
> : Minix FS, Reiser FS
> :
> : Author: Michail Brzitwa <mb@ichabod.han.de>
> : WWW: http://home.pages.de/~michab/gpart/
> :
> : - Andrew Stevenson
> : <andrew@ugh.net.au>
> 
> HTH,
> --
> Ruslan Ermilov          Sysadmin and DBA of the
> ru@ucb.crimea.ua        United Commercial Bank,
> ru@FreeBSD.org          FreeBSD committer,
> +380.652.247.647        Simferopol, Ukraine
> 
> http://www.FreeBSD.org  The Power To Serve
> http://www.oracle.com   Enabling The Information Age
--------------1110C115FF8367EFD2C9F691
Content-Type: text/x-vcard; charset=us-ascii;
 name="ernst.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Ernst de Haan
Content-Disposition: attachment;
 filename="ernst.vcf"

begin:vcard 
n:de Haan;Ernst
tel;fax:+31 (0)26 3645634
tel;work:+31 (0)26 3623895
x-mozilla-html:FALSE
url:http://www.znerd.demon.nl/
org:Jollem
adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands
version:2.1
email;internet:ernst@jollem.com
title:Java Architect
fn:Ernst de Haan
end:vcard

--------------1110C115FF8367EFD2C9F691--



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?38A3D62E.FABEFC93>