Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Oct 1999 18:53:56 -0700 (PDT)
From:      Alfred Perlstein <bright@wintelcom.net>
To:        chad@rez.com
Cc:        stable@FreeBSD.ORG
Subject:   Re: disk partitions
Message-ID:  <Pine.BSF.4.05.9910051847310.6368-100000@fw.wintelcom.net>
In-Reply-To: <199910052325.QAA01404@chad.anasazi.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 5 Oct 1999, Chad R. Larson wrote:

> Is there some rule that says there can only be one FreeBSD partition
> on a disk drive?
> 
> Here's the story.  This machine on which I type is a 166 MHz
> Pentium, with 32 MB of RAM and an Adaptec on-the-motherboard SCSI
> controller.  Its single hard drive is a 4GB Segate.  The boot dmesg
> output is attached if you want further details.  It's running
> FreeBSD 2.2-STABLE, CVSup'd and built in July.
> 
> It has been set up to dual-boot NT workstation and FreeBSD.  But the
> dual booting proved to be too much hassle, so I obtained a second
> machine, loaded Win95 on it and left this one in BSD.  Lately, I've
> been getting short on disk space in the BSD world (doesn't
> everyone?) and decided to poach some of the NT space.
> 
> The disk had been set with FDISK partitions like this:
> 
>     1 500MB  type 6 dos  (FAT, NT C: drive)
>     2 1.5GB  type 5 dos  (NTFS, NT D: drive)
>     3 2.0GB  type 165  FreeBSD
>     4 unused
> 
> I ran "fdisk -2 -u sd0", and changed the partition type from 5 to
> 165.  When I attempted to reboot, BootEazy offered me
> 
>     F1 dos
>     F2 BSD
>     F3 BSD
> 
> but F3 refuses to boot.  When I hit F3, or allow the timeout to take
> that as a default, the cursor moves down one line and to the left
> margin and then the machine hangs.  I can CTL-ALT-DEL back around to
> the BootEazy prompt.  F2 also does not boot (I didn't expect it to,
> but wondered if the partitions got reordered somehow in BootEazy's
> mind).  F1 =does= boot NT.
> 
> If I boot the 2.2.8-RELEASE live filesystem CD, and drop into fixit
> mode, I can set the type on partition 2 to 0, and I can boot again.
> Partition 2 disappears from the BootEazy menu.
> 

the 2.2.x loader can't handle a BSD partition before the bootable
root partition, there is a tricky fix you can do though.

*** warning this may hose everything and make your dog go bald ***
*** it also may not work, this idea is just from examining the ***
*** code a while back                                          ***

use fdisk, and swap the partition parameters, I'm assuming your
partition table looks something like this:

partition 1 - NT
  sectors 0 - 100,000
partition 2 - FreeBSD
  sectors 100,000 - 200,000

what you want to do is swap the partition informations around so it 
looks like this:

partition 1 - FreeBSD
  sectors 100,000 - 200,000
partition 2 - NT (to be changed to freebsd)
  sectors 0 - 100,000

the idea is to reorder the partition table so that the bootable
FreeBSD partition come up first.

> If we get past this, then I'll be asking why disklabel doesn't seem
> willing to work against sd0s2c.
 
because you want to run disklabel on sd0s2 (forget the 'c')

good luck,
-Alfred Perlstein - [bright@rush.net|alfred@freebsd.org]
Wintelcom systems administrator and programmer
   - http://www.wintelcom.net/ [bright@wintelcom.net]





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" 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.4.05.9910051847310.6368-100000>