From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E1ddl-0001R8-2A for garchives@archives.gentoo.org; Sun, 07 Aug 2005 05:24:05 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j775NAkM012749; Sun, 7 Aug 2005 05:23:10 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.200]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j775Jcv3013927 for ; Sun, 7 Aug 2005 05:19:39 GMT Received: by zproxy.gmail.com with SMTP id x7so573436nzc for ; Sat, 06 Aug 2005 22:19:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=SISkL4Iv8tXnlc9DcaNXNmLZXcyuofeNhLDAfOEXrqvz9ThdsZOoSfs75MWsPymwJl3V9fBUJRi7iOxbxEoPDLbSaDDqdywzyV2a17FCpc+FsVqj/ya1dzDaQLUkofK82KsGnT39Vm0Et/dd+jwyd839MlWYGe93vEte0MsWWps= Received: by 10.37.15.66 with SMTP id s66mr1321022nzi; Sat, 06 Aug 2005 22:19:43 -0700 (PDT) Received: by 10.37.15.48 with HTTP; Sat, 6 Aug 2005 22:19:43 -0700 (PDT) Message-ID: Date: Sat, 6 Aug 2005 22:19:43 -0700 From: Aaron Nichols To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re-post:How to get jfs root partition to properly fsck on power failure? Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_217_4573302.1123391983476" X-Archives-Salt: 67f7a6cd-25ea-49cd-9ed1-a1d16ebf2dfb X-Archives-Hash: a295c1633b3a4bcc444c9befd7a86559 ------=_Part_217_4573302.1123391983476 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hey all, I know somebody here has got to have info that may be of help. If= =20 I'm totally missing something obvious here feel free to beat me to a pulp -= =20 but anything is better than silence :) Since I didn't get any responses las= t=20 time I'll try one more time.=20 Original message: Hello Everyone, I feel like the answer here should be obvious, but either my google skills= =20 have deteriorated badly, I'm missing the obvious, or I've just run into a= =20 strange problem (which I doubt).=20 I have a Gentoo install with the following filesystem layout (from fstab): /dev/sda2 /boot ext3 noatime 1 2 /dev/sda6 / jfs noatime 1 1 /dev/sda3 none swap sw 0 0 /dev/sda5 /var jfs noatime 0 2 /dev/sda7 /home jfs noatime 0 2 Things work fine under normal circumstances, however if the machine is=20 powered off uncleanly (power button, power failure, etc) it refuses to boot= .=20 The problem seems to stem from the fact that the root partition does not ge= t=20 checked prior to mounting. I have the following grub stanza which boots the= =20 system. It includes the "ro" option which is supposed to tell the kernel to= =20 mount the root partition read-only at first to perform a fsck.=20 title=3DGentoo Linux 2.6.12-r6 root (hd0,1) kernel /kernel-genkernel-x86-2.6.12-gentoo-r6 root=3D/dev/ram0 init=3D/linu= xrc=20 ramdisk=3D8192 real_root=3D/dev/sda6 udev hda=3Dide-scsi hde=3Dide-scsi ro initrd /initramfs-genkernel-x86-2.6.12-gentoo-r6 When booting this it basicly starts udev, then tries to mount filesystems= =20 and says /dev/sda6 is not a valid partition and drops me into busybox.=20 The way I'm able to recover this is to boot to the live CD, fsck.jfs/dev/sda6 and then reboot and the remaining filesystems fsck fine and the system boots. However, one thing I notice is that once / is unmounted=20 unexpectedly, it cannot be mounted prior to an fsck (get errors from mount)= .=20 This seems like a bit of a chicken & egg situation. I can't believe this is a unique problem I've stumbled upon - does anyone= =20 have either an obvious answer to this question or some examples of a workin= g=20 gentoo install using jfs as the root partition (please, no responses of=20 "yeah, works fine for me" if you can resist). I'll happily provide more info as desired - but thought I'd start here.=20 =20 Aaron ------=_Part_217_4573302.1123391983476 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hey all, I know somebody here has got to have info that may be of help. If I'm totally missing something obvious here feel free to beat me to a pulp - but anything is better than silence :) Since I didn't get any responses last time I'll try one more time.

Original message:

Hello Everyone,
   I feel like the answer here should be obvious, but either my google skills have deteriorated badly, I'm missing the obvious, or I've just run into a strange problem (which I doubt).

I have a Gentoo install with the following filesystem layout (from fstab):<= br>
/dev/sda2  &n= bsp;            /boot           ext3            = ;noatime           &= nbsp;     1 2
/dev/sda6  &n= bsp;            /            &n= bsp;  jfs             noatime           &n= bsp;     1 1
/dev/sda3  &n= bsp;            none            = ;swap           &nbs= p;sw            = ;          0 0
/dev/sda5  &n= bsp;            /var            = ;jfs            = ; noatime           &n= bsp;     0 2
/dev/sda7  &n= bsp;            /home           jfs             noatime           &n= bsp;     0 2

Things work fine under normal circumstances, however if the machine is powered off uncleanly (power button, power failure, etc) it refuses to boot. The problem seems to stem from the fact that the root partition does not get checked prior to mounting. I have the following grub stanza which boots the system. It includes the "ro" option which = is supposed to tell the kernel to mount the root partition read-only at first to perform a fsck.

title=3DGentoo Linux 2.6.12-r6
root (hd0,1)
kernel /kernel-genkernel-x86-2.6.12-gentoo-r6 root=3D/dev/ram0 init=3D/linuxrc ramdisk=3D8192 real_root=3D/dev/sda6 udev hda=3Dide-scsi hde=3Dide-scsi ro
initrd /initramfs-genkernel-x86-2.6.12-gentoo-r6

When booting this it basicly starts udev, then tries to mount filesystems and says /dev/sda6 is not a valid partition and drops me into busybox.=20

The way I'm able to recover this is to boot to the live CD, fsck.jfs /dev/sda6 and then reboot and the remaining filesystems fsck fine and the system boots. However, one thing I notice is that once / is unmounted unexpectedly, it cannot be mounted prior to an fsck (get errors from mount). This seems like a bit of a chicken & egg situation.

I can't believe this is a unique problem I've stumbled upon - does anyone have either an obvious answer to this question or some examples of a working gentoo install using jfs as the root partition (please, no responses of "yeah, works fine for me" if you can resist).

I'll happily provide more info as desired - but thought I'd start here.
Aaron
------=_Part_217_4573302.1123391983476-- -- gentoo-user@gentoo.org mailing list