From owner-freebsd-current Thu Aug 22 5:59:43 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 2B16F37B401 for ; Thu, 22 Aug 2002 05:59:35 -0700 (PDT) Received: from ph.noda.tus.ac.jp (phws01.ph.noda.tus.ac.jp [133.31.111.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4E7D43EAF for ; Thu, 22 Aug 2002 05:59:30 -0700 (PDT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost ([133.31.111.131]) by ph.noda.tus.ac.jp (8.9.2/8.9.2) with ESMTP id VAA05947; Thu, 22 Aug 2002 21:59:23 +0900 (JST) Date: Thu, 22 Aug 2002 21:59:21 +0900 (JST) Message-Id: <20020822.215921.424244459.kazuhito@ph.noda.tus.ac.jp> To: freebsd-current@FreeBSD.ORG Cc: kazuhito@ph.noda.tus.ac.jp Subject: UFS2 may prevent from sharing partitions with some *BSDs From: Kazuhito HONDA X-Mailer: Mew version 2.2 on XEmacs 21.5-b3 (asparagus) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 In my machine, FreeBSD 5.0-current, NetBSD 1.6-BETA and OpenBSD 3.1 are installed, and they share some partitions, e. g. /home, and had no problem. Now, however, after FreeBSD mount those partitions once, when NetBSD and OpenBSD mount those partitions at boot time, fsck stops with error number 8 and *BSDs fall in single-user mode. `fsck -y' doesn't succeed too. If I run `fsck_ffs -b 32' on NetBSD and OpenBSD, fsck finishes completely. But FreeBSD mounts those partition once, NetBSD and OpenBSD fall in single-user mode again. Though this phenomenon doesn't happen with kernel at 21 June 2002 6:15 UTC, that happens with one at 6:20 UTC. Differences between them may be UFS2 codes. So UFS2 may prevent some *BSDs from mounting shared partitions. This phenomenon is, however, not so critical, because NetBSD and OpenBSD can mount those partitions without fsck checking. If I run `mount -a' and `exit' after NetBSD and OpenBSD fall in single-user mode, those *BSDs start with no problem. No file is lost. Can you let your *BSDs share some partitions? If anyone can't do it, I'll write send-pr. Below are messages of FreeBSD dmesg and mount: 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 5.0-CURRENT #38: Thu Aug 22 09:27:27 JST 2002 root@kaoru:/usr/src/sys/i386/compile/KAORU.5.0.0D Preloaded elf kernel "/boot/kernel/kernel" at 0xc0464000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc04640a8. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 250568746 Hz CPU: AMD-K6tm w/ multimedia extensions (250.57-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x570 Stepping = 0 Features=0x8001bf AMD Features=0x400<> real memory = 268419072 (262128K bytes) avail memory = 255660032 (249668K bytes) Using $PIR table, 8 entries at 0xc00f0d00 npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-safe" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0xec08-0xec0b on acpi0 acpi_cpu0: on acpi0 acpi_pcib0: port 0xcf8-0xcff on acpi0 pci0: on acpi_pcib0 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pci0: at device 3.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 de0: port 0xd800-0xd87f mem 0xde000000-0xde00007f irq 9 at device 9.0 on pci0 de0: 21140A [10-100Mb/s] pass 2.0 de0: address 00:80:c8:54:f5:eb pcm0: port 0xd400-0xd47f irq 10 at device 11.0 on pci0 atapci0: port 0xd000-0xd00f at device 15.0 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 fdc0: port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/7 bytes threshold lpt0: on ppbus0 lpt0: Interrupt-driven port sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 orm0: