Summary: Notes by jhs@ from Jan. 2012, forcing my libretto witha 10G single 4.11 partition to a quadruple fdisk partition. (& trashing the disc in the middle of the procedure, no big deal as I had backups). Libretto My 10G Disk dmesg/4.11-RELEASE/70ct ad0: 9590MB [19485/16/63] at ata0-master BIOSPIO Removed & mounted on another diagnostic host. Old config with just 4.11, + 40M to avoid suspend trashing anything. { fdisk ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=1222 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=1222 heads=255 sectors/track=63 (16065 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 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 19559169 (9550 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: sysid 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB)) start 19559232, size 81648 (39 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 15/ sector 63 The data for partition 3 is: The data for partition 4 is: fdisk -p # /dev/da0 g c1222 h255 s63 p 1 0xa5 63 19559169 a 1 p 2 0x06 19559232 81648 disklabel ad0s1 # /dev/da0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 262144 0 4.2BSD 2048 16384 94 b: 100064 262144 swap c: 19559169 0 unused 0 0 e: 204800 362208 4.2BSD 2048 16384 97 f: 204800 567008 4.2BSD 2048 16384 97 g: 1433600 771808 4.2BSD 2048 16384 89 h: 17353761 2205408 4.2BSD 2048 16384 89 dmesg on host=laph: da0: 9590MB (19640880 512 byte sectors: 255H 63S/T 1222C) GEOM: da0s1: geometry does not match label (16h,63s != 255h,63s). } The New Planned Config F1: FreeBSD-4.11 Start 63, Size 4482072 a root 600 M d usr 1000 M e var 200 M f tmp 500 M 2300 M F2: FreeBSD-8.2 Start 4482135, Size 3590433 a root 600 M d usr 1000 M e var 200 M 1800 M F3: FreeBSD-9.0 Start 8072568, Size 3590433 a root 600 M d usr 1000 M e var 200 M 1800 M F4: Space Start 11663001, Size 7977879 dc: 19640880 63 - 4482072 - 3590433 - 3590433 - p 7977879 a usr1 b swap 260 M g swap 40 M <-- suspend area, seperate in case core dumps might be lost here sysctl kern.geom.debugflags=16 fdisk -i -B /dev/da0 # numbers from above fdisk -p /dev/da0 # /dev/da0 g c1222 h255 s63 p 1 0xa5 63 4482072 a 1 p 2 0xa5 4482135 3590433 p 3 0xa5 8072568 3590433 p 4 0xa5 11663001 7977879 bsdlabel -w -B /dev/da0s1 auto; bsdlabel -w -B /dev/da0s2 auto; bsdlabel -w -B /dev/da0s3 auto; bsdlabel -w -B /dev/da0s4 auto bsdlabel -e /dev/da0s1 --- before edit -- # size offset fstype [fsize bsize bps/cpg] a: 4482056 16 unused 0 0 c: 4482072 0 unused 0 0 --- after edit -- # /dev/da0s1: a: 1200000 16 4.2BSD 0 0 0 c: 4482072 0 unused 0 0 d: 2000000 1200016 4.2BSD 0 0 0 e: 400000 3200016 4.2BSD 0 0 0 f: 882056 3600016 4.2BSD 0 0 0 bsdlabel -e /dev/da0s2 # /dev/da0s2: # size offset fstype [fsize bsize bps/cpg] a: 1200000 16 4.2BSD 0 0 c: 3590433 0 unused 0 0 d: 2000000 1200016 4.2BSD 0 0 e: 390417 3200016 4.2BSD 0 0 bsdlabel -e /dev/da0s3 # size offset fstype [fsize bsize bps/cpg] a: 1200000 16 4.2BSD 0 0 c: 3590433 0 unused 0 0 d: 2000000 1200016 4.2BSD 0 0 e: 390417 3200016 4.2BSD 0 0 bsdlabel -e /dev/da0s4 --- before edit -- a: 7977863 16 unused 0 0 c: 7977879 0 unused 0 0 --- after edit -- # /dev/da0s4: # size offset fstype [fsize bsize bps/cpg] a: 7377863 16 4.2BSD 0 0 0 b: 520000 7377879 swap c: 7977879 0 unused 0 0 d: 80000 7897879 swap newfs /dev/da0s1a; newfs /dev/da0s1d; newfs /dev/da0s1e; newfs /dev/da0s1f newfs /dev/da0s2a; newfs /dev/da0s2d; newfs /dev/da0s2e; newfs /dev/da0s3a newfs /dev/da0s3d; newfs /dev/da0s3e; newfs /dev/da0s4a Let all mount via my devd.conf setenv DESTDIR /usb/libr/s2/root cd /usb/libr/s2/root ln -s ../usr ln -s ../var cd /usr/src cd etc make distrib-dirs cd .. make install #RUNNING cd /sys make clean cd i386 cd conf config GENERIC cd ../compile/GENERIC make cleandepend && make depend make setenv DESTDIR /usb/libr/s2/root make install #RUNNING cd /sys/modules make make install #RUNNING cd /usr/src/etc make install # just does mail Boot fails sysctl kern.geom.debugflags=16 fdisk -B /dev/da0 fdisk still doesnt offer a choice of F1-4 Why ? the loader starts, So how does it get that far ? but ls command show nothing. Guess 4.11 cant support UFS2 ? Or maybe cos I have valies of zero for fsize & bsize, compare with: host=lapa 4.11 disklabel ad0 type: ESDI disk: ad0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 128 sectors/cylinder: 8064 cylinders: 992 sectors/unit: 8007489 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] a: 204800 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 25*) b: 532576 204800 swap # (Cyl. 25*- 91*) c: 8007489 0 unused 0 0 # (Cyl. 0 - 992*) e: 40960 737376 4.2BSD 1024 8192 16 # (Cyl. 91*- 96*) f: 6758400 778336 4.2BSD 1024 8192 16 # (Cyl. 96*- 934*) g: 470753 7536736 4.2BSD 1024 8192 16 # (Cyl. 934*- 992*) host=laps 8.2 disklabel ad0s3 # /dev/ad0s3: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 0 4.2BSD 0 0 0 c: 40949685 0 unused 0 0 d: 9394176 2097152 4.2BSD 0 0 0 e: 2097152 11491328 4.2BSD 0 0 0 f: 27361205 13588480 4.2BSD 0 0 0 First try for UFS1 (cd /usb/libr/s1 && tar cf - . ) | ( cd /usr1/tmp/s1 && tar xf - ) umount /usb/libr/s1/root umount /usb/libr/s1/usr umount /usb/libr/s1/var umount /usb/libr/s1/tmp newfs -O 1 /dev/da0s1a; newfs -O 1 /dev/da0s1d newfs -O 1 /dev/da0s1e; newfs -O 1 /dev/da0s1f mount -t ufs /dev/da0s1a /usb/libr/s1/root mount -t ufs /dev/da0s1d /usb/libr/s1/usr mount -t ufs /dev/da0s1e /usb/libr/s1/var mount -t ufs /dev/da0s1f /usb/libr/s1/tmp (cd /usr1/tmp/s1 && tar cf - . ) | ( cd /usb/libr/s1 && tar xf - ) umount /usb/libr/s1/root ; umount /usb/libr/s1/usr ; umount /usb/libr/s1/var ; umount /usb/libr/s1/tmp Still doesnt boot so try adding fsize bsize bps/cpg disklabel -e /dev/da0s1 after: a: 1200000 16 4.2BSD 1024 8192 16 c: 4482072 0 unused 0 0 d: 2000000 1200016 4.2BSD 1024 8192 16 e: 400000 3200016 4.2BSD 1024 8192 16 f: 882056 3600016 4.2BSD 1024 8192 16 newfs -O 1 /dev/da0s1a; newfs -O 1 /dev/da0s1d newfs -O 1 /dev/da0s1e; newfs -O 1 /dev/da0s1f mount -t ufs /dev/da0s1a /usb/libr/s1/root mount -t ufs /dev/da0s1d /usb/libr/s1/usr mount -t ufs /dev/da0s1e /usb/libr/s1/var mount -t ufs /dev/da0s1f /usb/libr/s1/tmp (cd /usr1/tmp/s1 && tar cf - . ) | ( cd /usb/libr/s1 && tar xf - ) Boot still fails. Decide to lay down a new fdisk after booting from 4.11 floppies but take a note of current fdisk first for interest. fdisk -p /dev/da0 # /dev/da0 g c1222 h255 s63 p 1 0xa5 63 4482072 a 1 p 2 0xa5 4482135 3590433 p 3 0xa5 8072568 3590433 p 4 0xa5 11663001 7977879 laps~ fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=1222 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=1222 heads=255 sectors/track=63 (16065 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 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 4482072 (2188 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 278/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 4482135, size 3590433 (1753 Meg), flag 0 beg: cyl 279/ head 0/ sector 1; end: cyl 502/ head 125/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 8072568, size 3590433 (1753 Meg), flag 0 beg: cyl 502/ head 126/ sector 1; end: cyl 725/ head 251/ sector 63 The data for partition 4 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 11663001, size 7977879 (3895 Meg), flag 0 beg: cyl 725/ head 252/ sector 1; end: cyl 198/ head 149/ sector 63 Installing from 4.11 floppy didnt work 1st time, cos libretto by default doesnt recoognise pccard after a while, & by then although I had deleted all 4 fdsik partitions, when rebooting it still didnt see them, so I did it again, using 'W' in fdisk menu (not shown but works) & again in disklabel after 'A' for Auto, Then rebooted, & fimnaly Libretto offered a choice of 4 slices to boot from Then back to 8.2 host: fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=1222 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=1222 heads=255 sectors/track=63 (16065 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 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 4466007 (2180 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 277/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 4466070, size 4482135 (2188 Meg), flag 0 beg: cyl 278/ head 0/ sector 1; end: cyl 556/ head 254/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 8948205, size 4482135 (2188 Meg), flag 0 beg: cyl 557/ head 0/ sector 1; end: cyl 835/ head 254/ sector 63 The data for partition 4 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 13430340, size 6201090 (3027 Meg), flag 0 beg: cyl 836/ head 0/ sector 1; end: cyl 1023/ head 254/ sector 63 fdisk -p da0 # /dev/da0 g c1222 h255 s63 p 1 0xa5 63 4466007 a 1 p 2 0xa5 4466070 4482135 p 3 0xa5 8948205 4482135 p 4 0xa5 13430340 6201090 disklabel da0s1;disklabel da0s2;disklabel da0s3;disklabel da0s4 # /dev/da0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 4466007 0 unused 0 0 # /dev/da0s2: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 4482135 0 unused 0 0 # /dev/da0s3: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 4482135 0 unused 0 0 # /dev/da0s4: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 6201090 0 unused 0 0 sysctl kern.geom.debugflags=16 bsdlabel -B da0s1 partition a: partition extends past end of unit bsdlabel -e da0s1 I set to a: 1200000 16 4.2BSD 1024 8192 16 c: 4466007 0 unused 0 0 d: 2000000 1200016 4.2BSD 1024 8192 16 e: 400000 3200016 4.2BSD 1024 8192 16 f: 865991 3600016 4.2BSD 1024 8192 16 newfs -O 1 /dev/da0s1a; newfs -O 1 /dev/da0s1d newfs -O 1 /dev/da0s1e; newfs -O 1 /dev/da0s1f mount -t ufs /dev/da0s1a /usb/libr/s1/root mount -t ufs /dev/da0s1d /usb/libr/s1/usr mount -t ufs /dev/da0s1e /usb/libr/s1/var mount -t ufs /dev/da0s1f /usb/libr/s1/tmp (cd /usr1/tmp/s1 && tar cf - . ) | ( cd /usb/libr/s1 && tar xf - ) umount /usb/libr/s1/root ; umount /usb/libr/s1/usr ; umount /usb/libr/s1/var ; umount /usb/libr/s1/tmp Boots 4.11 OK :-) disklabel ad0s4 # /dev/ad0s4: type: ESDI disk: ad0s4 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 386 sectors/unit: 6201090 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: 6201090 0 unused 0 0 # (Cyl. 0 - 385) lapl# disklabel -B ad0s4; disklabel -B ad0s3; disklabel -B ad0s2; disklabel -e ad0s4 # size offset fstype [fsize bsize bps/cpg] a: 5601074 16 4.2BSD 1024 8192 16 # (Cyl. 0*- 348*) b: 520000 5601090 swap # (Cyl. 348*- 381*) c: 6201090 0 unused 0 0 # (Cyl. 0 - 385) d: 80000 6121090 swap # (Cyl. 381*- 385*) cd /dev ./MAKEDEV all newfs /dev/ad0s4a reboot cd /dev ./MAKEDEV ad0s2a; ./MAKEDEV ad0s3a; ./MAKEDEV ad0s4a swapon /dev/ad0s4b swapon /dev/ad0s4d mount /usr1 newfs /dev/ad0s4a mount /usr1 disklabel ad0s2 # size offset fstype [fsize bsize bps/cpg] c: 4482135 0 unused 0 0 # (Cyl. 0 - 278) disklabel -e ad0s2 a: 1200000 16 4.2BSD 1024 8192 16 # (Cyl. 0*- 74*) c: 4482135 0 unused 0 0 # (Cyl. 0 - 278) d: 2200000 1200016 4.2BSD 1024 8192 16 # (Cyl. 74*- 211*) e: 1082119 3400016 4.2BSD 1024 8192 16 # (Cyl. 211*- 278*) newfs /dev/ad0s2a newfs /dev/ad0s2d newfs /dev/ad0s2e disklabel -B ad0s2 mount /s2 mount /s2/usr mount /s2/var disklabel ad0s3 # size offset fstype [fsize bsize bps/cpg] c: 4482135 0 unused 0 0 # (Cyl. 0 - 278) disklabel -e ad0s3 a: 1200000 16 4.2BSD 1024 8192 16 # (Cyl. 0*- 74*) c: 4482135 0 unused 0 0 # (Cyl. 0 - 278) d: 2200000 1200016 4.2BSD 1024 8192 16 # (Cyl. 74*- 211*) e: 1082119 3400016 4.2BSD 1024 8192 16 # (Cyl. 211*- 278*) newfs /dev/ad0s3a newfs /dev/ad0s3d newfs /dev/ad0s3e disklabel -B ad0s3 ... cp all of s1 (4.11) to s3 (spare) via tar & rdist6 ... cd /s3/dev ./MAKEDEV all ; ./MAKEDEV ad0s2a ; ./MAKEDEV ad0s3a ; ./MAKEDEV ad0s4a