From owner-freebsd-current Sun Dec 1 5:34:45 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DD9437B401 for ; Sun, 1 Dec 2002 05:34:30 -0800 (PST) Received: from anor.ics.muni.cz (anor.ics.muni.cz [147.251.4.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98EF143ED1 for ; Sun, 1 Dec 2002 05:34:28 -0800 (PST) (envelope-from hopet@ics.muni.cz) Received: from dior.ics.muni.cz (dior.ics.muni.cz [147.251.6.10]) by anor.ics.muni.cz (8.12.1/8.12.1) with ESMTP id gB1DYGRF020753 for ; Sun, 1 Dec 2002 14:34:16 +0100 Received: from kloboucek (root@localhost) (authenticated as hopet with LOGIN) by dior.ics.muni.cz (8.10.1/8.10.0.Beta12) with ESMTP id gB1DYFl09168 for ; Sun, 1 Dec 2002 14:34:15 +0100 (MET) From: "Petr Holub" To: Subject: 5.0-DP2 installation problems or be disklabel and GEOM revisited Date: Sun, 1 Dec 2002 14:32:48 +0100 Message-ID: <000701c2993e$23e90110$2603fb93@kloboucek> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 Importance: Normal X-Muni-Virus-Test: Clean Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I've tried to install 5.0-DP2 and encountered some nasty problems with disklabel afterward. I've quite a lot of log/debug material so I don't attach everything since it would be very large mail. Attached logs are below my signature. I can provide more info if neede to find out what's up. Here is what happened: 1) I've 60 GB disk with 3 primary partitions and 2 on extended block. 1st partition contained Win2k, 2nd partition contained 4.6.2 and I wanted to install 5.0-DP2 on third one which contained linux; I had grub installed on 2nd partition which was marked as active 2) after booting 5.0-DP2 into sysinstall I changed Id of 3rd partition to 165 and moved to disklabel; disklabel refused to work on this partition so I moved back to sysinstall fdisk deleted 3rd partition created it again and disklabel worked (I've met this before even with 4.x release - there seems to be some incompatibility between sysinstall fdisk and linux fdisk which was originally used to create 3rd partition); then I installed 5.0-DP2 3) after the reboot I got "invalid partition table" message by BIOS; when booted from CD I found both 2nd and 3rd partition had active flags; so I removed active flag from third one 4) 4.6.2 booted though there was no grub (?!?) 5) I tried to reinstall grub. Ooops - strange thnigs appeared (see log1 bellow my signature). That's strange because of two reasons: fist is "file not found" message and second is that according to grub /boot/loader points to 3rd partition with 5.0-DP2! 6) using /stand/sysinstall in 4.6.2 I managed to install standard FreeBSD BootMgr in MBR so I'm able to boot all three systems 7) then I did following: 7a) rebooted to 5.0 mount /dev/ad0s2a /mnt [something else...] sync && sync umount /mnt 7b) rebooted to 4.6.2 /dev/ad0s2a: BAD SUPER BLOCK: VALUES IN SUPERBLOCK DISAGREE WITH THOSE IN FIRST ALTERNATE /dev/ad0s2a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. /dev/ad0s2a: CANNOT WRITE: BLK 2016 /dev/ad0s2a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. /dev/ad0s2a: Automatic file system check failed . . . help! fsck -b 32 /dev/ad0s2a [output cut out intentionally] FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? [yn] (my answer -> y) 2444 files, 121492 used, 374619 free (1611 frags, 46626 blocks, 0.3% fragmentation) UPDATE STANDARD SUPERBLOCK? [yn] (my answer -> y) ***** FILE SYSTEM WAS MODIFIED ***** 7c) rebooted to 4.6.2 again - no problems during boot but I can see dmesg of 5.0-DP2 from 4.6.2 as well as tho one of 4.6.2 (see log 2) 8) what's even more nasty is that 5.0-DP2 ate some disklabel information from 4.6.2 partition (log 3) while 5.0-DP2 partition seems to be OK (log 4). (log 3) and (log 4) are done using 4.6.2 while (log 5) and (log 6) are done using 5.0-DP2 (look at the offset differences!). 5.0-DP2 furthermore complains while doing "disklabel -r": Warning, partition c doesn't start at 0! Warning, partition c doesn't cover the whole unit! Warning, An incorrect partition c may cause problems for standard system utiliti es Some notes on the disk: it's IBM 60GXP IC35L060AVER07-0. 1) BIOS opinion on the disk: C/H/S: 29347/16/255, 61493MB, LBA, 32Bit On, Block Mode 16Sec, PIO 4, UDMA 5 2) Linux opinion (RedHat 6.2 with booted from install CD with all default kernel and fdisk): hda: 120103200 sectors (61493 MB) w/1916KiB Cache, CHS=7476/255/63 3) 4.6.2 according to dmesg: ad0: 58644MB [119150/16/63] at ata0-master UDMA100 4) 4.6.2 according to fdisk: cylinders=7476 heads=255 sectors/track=63 (16065 blks/cyl) 5) 5.0-DP2 according to dmesg: ad0: 58644MB [119150/16/63] at ata0-master UDMA100 6) 5.0-DP2 according to fdisk: cylinders=119150 heads=16 sectors/track=63 (1008 blks/cyl) Does anybody have an idea what's up? I'm really afraid of two systems cross-writing on their paritions :-((( It reminds me of Harry Potter and Dissapearing Disklabel though I'm not using USF2 (at least not intentionally) :-(. BTW: Is it possible to use Kirk McKusick's patch on 5.0-DP2? In my opinion there is some problem with GEOM (and disklabel might just get it worse)... Thanks, Petr ================================================================ Petr Holub CESNET z.s.p.o. Supercomputing Center Brno Zikova 4 Institute of Compt. Science 160 00 Praha 6, CZ Masaryk University Czech Republic Botanicka 68a, 60200 Brno, CZ e-mail: Petr.Holub@cesnet.cz phone: +420-5-41512213 e-mail: hopet@ics.muni.cz ================================================================ (log 1) ================================================================ bash-2.05a# ls -li /kernel /kernel.prev /boot/grub/stage1 /boot/loader 117149 -r--r--r-- 1 root wheel 512 Nov 29 22:16 /boot/grub/stage1 117125 -r-xr-xr-x 1 root wheel 155648 Aug 14 21:20 /boot/loader 12 -r-xr-xr-x 1 root wheel 3039473 Sep 3 19:51 /kernel 84 -r-xr-xr-x 1 root wheel 3039250 Jun 24 11:11 /kernel.prev grub> find /kernel Error 15: File not found grub> find /kernel.prev Error 15: File not found grub> find /boot/loader (hd0,2,a) grub> find /boot/grub/stage1 Error 15: File not found ================================================================ ================================================================ (log 2) ================================================================ Preloaded elf kernel "kernel" at 0xc040c000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 10 entries at 0xc00f7df0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 5 tx0: port 0xd400-0xd4ff mem 0xdfffd000-0xdfffdfff irq 10 at device 6.0 on pci0 miibus0: on tx0 acphy0: on miibus0 acphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto tx0: address 00:e0:29:8e:75:19, type SMC9432TX_1 pci0: (vendor=0x11de, dev=0x6120) at 7.0 irq 10 bktr0: mem 0xdedfc000-0xdedfcfff irq 11 at device 8.0 on pci0 iicbb0: on bti2c0 iicbus0: on iicbb0 master-only iicbus1: on iicbb0 master-only smbus0: on bti2c0 bktr0: Detected a DPL34-1@-@0 at 0x84 bktr0: AVer Media TV/FM, Philips FR1216 PAL FM tuner, dpl3518a dolby. pci0: (vendor=0x109e, dev=0x0878) at 8.1 irq 11 pcm0: port 0xd000-0xd01f irq 5 at device 9.0 on pci0 isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0xff00-0xff0f at device 17.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xc400-0xc41f irq 11 at device 17.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xc800-0xc81f irq 11 at device 17.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ugen0: Genesys Logic USB Host To Host Bridge, rev 1.00/1.80, addr 2 uhci2: port 0xcc00-0xcc1f irq 11 at device 17.4 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered orm0: