From owner-freebsd-stable Thu Jul 4 3:32:48 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FC4037B400 for ; Thu, 4 Jul 2002 03:32:41 -0700 (PDT) Received: from grunt5.ihug.co.nz (grunt5.ihug.co.nz [203.109.254.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA1A643E3B for ; Thu, 4 Jul 2002 03:32:39 -0700 (PDT) (envelope-from kluckie@ihug.co.nz) Received: from 203-173-241-156.adsl.ihug.co.nz (ihug.co.nz) [203.173.241.156] by grunt5.ihug.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 17Q3ue-0007kA-00; Thu, 04 Jul 2002 22:32:36 +1200 Message-ID: <3D242443.3000506@ihug.co.nz> Date: Thu, 04 Jul 2002 22:32:35 +1200 From: Matthew Luckie User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020608 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: 3.0 -> 4.6 upgrade: truncating raw partition Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 7.2 chip1: port 0x440-0x44f at device 7.3 on pci0 pci0: at 16.0 irq 10 fxp0: 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: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: