Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Feb 2001 00:47:47 -0600 (CST)
From:      Mike Meyer <mwm@mired.org>
To:        chat@freebsd.org
Subject:   Support for FreeBSD in an extended slice.
Message-ID:  <14978.16659.207713.3575@guru.mired.org>

next in thread | raw e-mail | index | archive | help
I just had a strange thought, and tested it.

It sure looks like you can use an extended slice for FreeBSD. You need
to use some other tool (I used the linux fdisk under emulation mode)
to create and put a type on the slice, but after that, it works
fine. See the last bit of the message for log information.

People blunder by -questions fairly regularly asking what they need to
do to put FreeBSD in an extended partition. From the looks of things,
about 90% of the work to do that has been done. All that's missing is
fdisk support for extended partitions to create it, and boot
support. Anyone one to comment on how hard those two things would be?

Here's what I did just to play with the idea.  I used the linux fdisk
to create slices on a scratch disk, one in slice 1, an extended slice,
and then a second slice in the extension slice, both FreeBSD
partitions. Then label, newfs and mount them both as per usual.

	<mike

su-2.04# disklabel -w -r /dev/da2s5 auto
su-2.04# disklabel -w -r /dev/da2s1 auto
su-2.04# disklabel da2s1
# /dev/da2s1:
type: SCSI
disk: iomega  
label: 
flags:
bytes/sector: 512
sectors/track: 42
tracks/cylinder: 1
sectors/cylinder: 42
cylinders: 24892
sectors/unit: 1045464
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c:  1045464        0    unused        0     0         # (Cyl.    0 - 24891)
su-2.04# disklabel da2s5
# /dev/da2s5c:
type: SCSI
disk: iomega  
label: 
flags:
bytes/sector: 512
sectors/track: 42
tracks/cylinder: 1
sectors/cylinder: 42
cylinders: 24890
sectors/unit: 1045421
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c:  1045421        0    unused        0     0         # (Cyl.    0 - 24890*)
su-2.04# ./MAKEDEV da2s1c
su-2.04# newfs /dev/da2s1c
Warning: 3112 sector(s) in last cylinder unallocated
/dev/da2s1c:    1045464 sectors in 256 cylinders of 1 tracks, 4096 sectors
        510.5MB in 16 cyl groups (16 c/g, 32.00MB/g, 7936 i/g)
super-block backups (for fsck -b #) at:
 32, 65568, 131104, 196640, 262176, 327712, 393248, 458784, 524320, 589856,
 655392, 720928, 786464, 852000, 917536, 983072
su-2.04# newfs /dev/da2s5c
Warning: 3156 sector(s) in last cylinder unallocated
/dev/da2s5c:    1045420 sectors in 256 cylinders of 1 tracks, 4096 sectors
        510.5MB in 16 cyl groups (16 c/g, 32.00MB/g, 7936 i/g)
super-block backups (for fsck -b #) at:
 32, 65568, 131104, 196640, 262176, 327712, 393248, 458784, 524320, 589856,
 655392, 720928, 786464, 852000, 917536, 983072
su-2.04# cd /mnt
su-2.04# mkdir 1
su-2.04# mkdir 5
su-2.04# mount /dev/da2s1c 1
su-2.04# mount /dev/da2s5c 5
su-2.04# ls
1       5

<and futher playing is deleted>.




--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.


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




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