Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jul 2001 21:32:48 +0200
From:      Thierry Herbelot <thierry@herbelot.com>
To:        Wilko Bulte <wkb@freebie.xs4all.nl>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: dual booting -stable & -current
Message-ID:  <3B588760.E5875DBB@herbelot.com>
References:  <20010720183229.A9022@freebie.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Wilko Bulte wrote:
> 
> I'm probably completely dim today so please bear with me :/
> Thing is I want to setup a dual-boot box, running -stable & -current.
> This box, a P2/266 has a 30G IDE disk.
> 
> What I did is create
>         ad0s1 -> 256MB -> holds root for -stable
>         ad0s2 -> 256MB -> was supposed to hold root for -current
>         ad0s3 -> roughly 14G holds tmp,var,usr,usr/obj for -stable
>         ad0s4 -> ditto for -current
> 
> My recollection is that as long as you keep the root partitions <2 (or 8) GB
> it should be bootable. Hence this somewhat strange slicing.
> 
> Thing is, 4.3R refuses to install it's root on ad0s2 (4.3 because I want
> to go current from there).
> 
> I'm probably missing something obvious here?

here's what I have on my (just -Stable for the moment) workstation :
multi# fdisk ad4
******* Working on device /dev/ad4 *******
parameters extracted from in-core disklabel are:
cylinders=35390 heads=16 sectors/track=63 (1008 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 165,(FreeBSD/NetBSD/386BSD)
    start 63, size 2457441 (1199 Meg), flag 0
The data for partition 2 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 4095504, size 31577616 (15418 Meg), flag 0
he data for partition 3 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 2457504, size 1638000 (799 Meg), flag 80 (active)
The data for partition 4 is:
<UNUSED>
// main bootable partition 
multi# disklabel -r ad4s1  
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   102400        0    4.2BSD     1024  8192    16 on /
  b:   860160   102400      swap                      shared swap
  c:  2457441        0    unused        0     0        
  e:    40960   962560    4.2BSD     1024  8192    16 on /var
  f:  1453921  1003520    4.2BSD     1024  8192    16 on /usr
// alternate bootable partition (will be -Current)
multi# disklabel -r ad4s3
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   102400        0    4.2BSD     1024  8192    16 on alternate / 
  c:  1638000        0    unused        0     0      
  e:    40960   102400    4.2BSD     1024  8192    16 alt. /var 
  f:  1494640   143360    4.2BSD     1024  8192    16 alt. /usr
multi# disklabel -r ad4s2
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 31577616        0    unused        0     0       
  e: 31577616        0    4.2BSD        0     0     0 shared expanse

you may want to use a similar setup (with larger bootable partitions :
my setup was initially one only 2G partition, but I cut it this way,
with a shared swap to be able to dual-boot)

PS : I also had problems with a 40G disk on my oldish P-II/266 : it
would not boot from the large disk (I just added a spare 8G which I boot
from)

-- 
Thierry Herbelot

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




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