Date: Thu, 04 Jul 2002 22:32:35 +1200 From: Matthew Luckie <kluckie@ihug.co.nz> To: freebsd-stable@freebsd.org Subject: 3.0 -> 4.6 upgrade: truncating raw partition Message-ID: <3D242443.3000506@ihug.co.nz>
next in thread | raw e-mail | index | archive | help
Hi I have upgraded a machine running FreeBSD 3.0-R to 4.6-S. When I try to mount /usr (the last partition in the first and only slice on the disk), I get the following: ad0s1: slice extends beyond end of disk: truncating from 12692736 to 12692295 sectors ad0: raw partition size != slice size ad0: start 0, end 12692294, size 12692295 ad0c: start 0, end 12692735, size 12692736 ad0: truncating raw partition ad0: rejecting partition in BSD label: it isn't entirely within the slice ad0: start 0, end 12692294, size 12692295 ad0f: start 408256, end 12692735, size 12284480 ################################################################## I can take this disk to another 3.0-R machine and successfully mount the /usr file system. I largely followed the steps in src/UPDATING, including building a 4.6 mknod and disklabel on the 3.0 machine and updated the /dev slices with sh MAKEDEV ad0 sh MAKEDEV ad0s1 I also installed new boot blocks with disklabel -B -b /boot/boot1 -s /boot/boot2 /dev/wd0s1 Why does the kernel think that the sectors/unit on the in-core copy of the disklabel is incorrect? I'm trying to "mount /dev/ad0s1f /mnt" The disk copy and the kernel copy are shown below, as is a 4.6 dmesg ################################################################## # disklabel -r ad0 # /dev/ad0c: type: ESDI disk: wd0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 790 sectors/unit: 12692736 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: 65536 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 4*) b: 281280 65536 swap # (Cyl. 4*- 21*) c: 12692736 0 unused 0 0 # (Cyl. 0 - 790*) e: 61440 346816 4.2BSD 1024 8192 16 # (Cyl. 21*- 25*) f: 12284480 408256 4.2BSD 1024 8192 16 # (Cyl. 25*- 790*) ############################################################### # disklabel ad0 # /dev/ad0c: type: ESDI disk: wd0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 790 sectors/unit: 12692295 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: 65536 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 4*) b: 281280 65536 swap # (Cyl. 4*- 21*) c: 12692295 0 unused 0 0 # (Cyl. 0 - 790*) e: 61440 346816 4.2BSD 1024 8192 16 # (Cyl. 21*- 25*) ######################################################### Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.6-STABLE #1: Thu Jun 27 17:10:52 NZST 2002 root@lycra:/files/freebsd_src/sys/compile/AMP Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 400911483 Hz CPU: Pentium II/Pentium II Xeon/Celeron (400.91-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR> real memory = 67108864 (65536K bytes) avail memory = 62783488 (61312K bytes) Preloaded elf kernel "kernel" at 0xc027d000. Pentium Pro MTRR support enabled md0: Malloc disk npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel PIIX4 ATA33 controller> port 0xffa0-0xffaf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 chip1: <Intel 82371AB Power management controller> port 0x440-0x44f at device 7.3 on pci0 pci0: <Trident model 9660 VGA-compatible display device> at 16.0 irq 10 fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xef40-0xef5f mem 0xfe600000-0xfe6fffff,0xfddff000-0xfddfffff irq 11 at device 19.0 on pci0 fxp0: Ethernet address 00:a0:c9:e5:0f:d2 inphy0: <i82555 10/100 media interface> on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ad0: 6197MB <IBM-DTTA-350640> [13431/15/63] at ata0-master UDMA33 Mounting root from ufs:/dev/ad0s1a -- Matthew Luckie kluckie@ihug.co.nz 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?3D242443.3000506>