public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Aaron Nichols <adnichols@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re-post:How to get jfs root partition to properly fsck on power failure?
Date: Sat, 6 Aug 2005 22:19:43 -0700	[thread overview]
Message-ID: <ac05538405080622194a7f9e18@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2290 bytes --]

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):

/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 
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=Gentoo Linux 2.6.12-r6
root (hd0,1)
kernel /kernel-genkernel-x86-2.6.12-gentoo-r6 root=/dev/ram0 init=/linuxrc 
ramdisk=8192 real_root=/dev/sda6 udev hda=ide-scsi hde=ide-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. 

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

[-- Attachment #2: Type: text/html, Size: 4608 bytes --]

             reply	other threads:[~2005-08-07  5:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-07  5:19 Aaron Nichols [this message]
2005-08-07 15:03 ` [gentoo-user] Re-post:How to get jfs root partition to properly fsck on power failure? Benno Schulenberg
2005-08-08  2:23   ` Aaron Nichols
2005-08-08 16:30     ` A. Khattri
2005-08-08 21:34       ` Aaron Nichols

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ac05538405080622194a7f9e18@mail.gmail.com \
    --to=adnichols@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox