Re: [gentoo-user] Re-post:How to get jfs root partition to properly fsck on power failure?

2005-08-08 Thread A. Khattri
On Sun, 7 Aug 2005, Aaron Nichols wrote:

 I was going to try the non-genkernel approach and see if that worked any
 differently, as the grub configuration is quite different. I have examples
 of other distributions which work fine using jfs in this situation, but
 those do not use udev and none require the same options that genkernel seems
 to.

I dont know if genkernel has much to do with it - OTOH, a lot of us dont
use genkernel because of people always reporting problems with it...


-- 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re-post:How to get jfs root partition to properly fsck on power failure?

2005-08-08 Thread Aaron Nichols
On 8/8/05, A. Khattri [EMAIL PROTECTED] wrote:
On Sun, 7 Aug 2005, Aaron Nichols wrote: I was going to try the non-genkernel approach and see if that worked any differently, as the grub configuration is quite different. I have examples
 of other distributions which work fine using jfs in this situation, but those do not use udev and none require the same options that genkernel seems to.I dont know if genkernel has much to do with it - OTOH, a lot of us dont
use genkernel because of people always reporting problems with it...
Thanks, apparently you can add yet another reason not to use it. I
recompiled the kernel without using genkernel, used the grub.conf
stanza below, and now this works fine. 

title=Gentoo Linux 2.6.12-r6
root (hd0,1)
kernel /kernel-2.6.12-gentoo-r6 root=/dev/sda6 udev hda=ide-scsi hde=ide-scsi ro

Very frustrating. 

Thanks for helping. 

Aaron
 


Re: [gentoo-user] Re-post:How to get jfs root partition to properly fsck on power failure?

2005-08-07 Thread Benno Schulenberg
Aaron Nichols wrote:
 The way I'm able to recover this is to boot to the live CD,
 fsck.jfs/dev/sda6 and then reboot

Do you have an /sbin/fsck.jfs on your root partition?  Because here 
it doesn't exist.  Hmm, you did emerge jfsutils?

(Yes, you said that the remaining filesystems fsck fine, but 
journalled file systems do not really need to be fully checked, 
they just need to replay a few journal entries, and fine.)

The problem I had here with reiserfs upon an irregular shutdown, 
was that the root partition mounted okay, replaying several journal 
entries, but the boot scripts refused to mount the home partition, 
seemingly because it was uncleanly unmounted.  I've sidestepped 
this by changing the localmount script, to simply explicitly mount 
the home partition, and now all is fine after a lockup (experiments 
with a driver): journals get replayed and it boots on.

Maybe the scripts are doing something similar wrong for you, but 
for the root partition, refusing to mount it because it is unclean 
and it gets confused by the journal?

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re-post:How to get jfs root partition to properly fsck on power failure?

2005-08-07 Thread Aaron Nichols
On 8/7/05, Benno Schulenberg [EMAIL PROTECTED] wrote:
Aaron Nichols wrote: The way I'm able to recover this is to boot to the live CD, fsck.jfs/dev/sda6 and then rebootDo you have an /sbin/fsck.jfs on your root partition?Because hereit doesn't exist.Hmm, you did emerge jfsutils?


Boy, I wish it were that easy!

(~) which fsck.jfs
/sbin/fsck.jfs

The problem I had here with reiserfs upon an irregular shutdown,was that the root partition mounted okay, replaying several journal
entries, but the boot scripts refused to mount the home partition,seemingly because it was uncleanly unmounted.I've sidesteppedthis by changing the localmount script, to simply explicitly mountthe home partition, and now all is fine after a lockup (experiments
with a driver): journals get replayed and it boots on.Maybe the scripts are doing something similar wrong for you, butfor the root partition, refusing to mount it because it is uncleanand it gets confused by the journal?


Perhaps, though I'm not sure how to determine that this is the cause,
nor how I would fix it. I have this problem on 3 different Gentoo hosts
I run (the only 3 Gentoo hosts I have) so it's not an isolated problem
on one machine. Granted, all were setup by me using the guides on
gentoo's site, so if I made a mistake I probably did it 3 times. 

I was going to try the non-genkernel approach and see if that worked
any differently, as the grub configuration is quite different. I have
examples of other distributions which work fine using jfs in this
situation, but those do not use udev and none require the same options
that genkernel seems to. 

Anyways, thanks for the info - if there are any other bits of useful info let me know. I'll continue to fiddle.

Aaron