Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Aug 1998 12:18:57 -0700 (PDT)
From:      Julian Elischer <julian@whistle.com>
To:        John Baldwin <jbaldwin@freedomnet.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Help!  I fried my disk label...
Message-ID:  <Pine.BSF.3.95.980817121007.8775A-100000@current1.whistle.com>
In-Reply-To: <Pine.BSD/.3.91.980815202200.11137A-100000@freedomnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
the bootloader can only handle the FIRST BSD slice in the slice table.
so you need to reverse the order in the table
(you can leave them the same order on the disk)

Since your new (ex NT) partition comes before 
the BSD partition in the MBR table, it is being seen first..

you have several options....

1/ make a root partition in that slice and transfer everything
 that leaves you with a free partition in the other slice to use for
something else..

2/ re-order the partitions in the table
(use freebsd's 'fdisk' program.. to type in a new configuration with the 
partitions moved around.. the order in the table does not need to
reflect the order on disk)

3/ merge the two partitions 
and just fiddle all the numbers so that the partitions 
all end up lying on the same locations..

(you'll need to do this from the fixit, )

all these are reversible if you have the numbers
available, so first print out allthe disklabel(8) and fdisk(8)
output.

julian


On Sat, 15 Aug 1998, John Baldwin wrote:

> Hi all,
> 
> I hope this is the right place to ask this, but at the moment I can't get 
> out much.  Here is my situation:  On my second hard drive (wd1) I have 
> two partitions: one for NT and one for FreeBSD.  Today, I added a new 
> hard drive to my system, and as a result, I am now converting the NT 
> partition to another BSD partition.  So, I booted BSD and pulled up 
> /stand/sysinstall.  I used Configure|Fdisk to delete the NT partition and 
> create a BSD one in its place.  Then I ran the disk label editor.  Since 
> the label editor had my current mountpoints as question marks and not 
> their current status, I thought that I should fix those. Well, when 
> I committed the changes, it panic'd and rebooted when it tried to run 
> disklabel on the then-mounted root partition (wd1s2a).  Well, when I 
> tried to boot BSD again, it said that it couldn't read the root 
> partition.  I booted the system with a 2.2.2 floppy and used the fixit 
> option with the 2nd CD.  I have successfully mounted my old root 
> partition in the shell and fsck'ed.  I have also fsck'd my old /usr and 
> /var partitions and everything is Ok.  I did lose two files on my root 
> partition (they were unreferenced) but both kernel and kernel.GENERIC are 
> still ok on the root partition.  I'm running 2.2.7-stable from about 
> August 10th, btw.  What can I do to get the bootloader to recognize my 
> old root partition on wd1s2a so that I can boot?  Please mail me directly 
> at this address since I'm not reading the questions list.  Thanks for any 
> and all help.
> 
> 
> John Baldwin
> jbaldwin@richmond.freedomnet.com
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


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?Pine.BSF.3.95.980817121007.8775A-100000>