All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bennett Todd <bet@rahul.net>
To: Michael James <Michael.James@csiro.au>
Cc: reiserfs-list@namesys.com
Subject: Re: How to set a reiserfs partition to get an occasional fsck?
Date: Fri, 30 Jan 2004 11:19:30 -0500	[thread overview]
Message-ID: <20040130161930.GA531@rahul.net> (raw)
In-Reply-To: <200401301515.10852.Michael.James@csiro.au>

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

2004-01-29T23:15:10 Michael James:
> PS:	I've just realized I can do it by adding an fsck
> 	  into the linuxrc script of a cooked initrd image.

I'm sure there are many approaches that can be used, but it so
happens that I can specifically comment on that one, having recently
gotten started playing with initrds.

They're so easy, so fun!

If I wanted to make a "fsck boot", here's how _I_ would do it.

	dd if=/dev/zero bs=1024k count=4 of=initrd.fs
	mke2fs initrd.fs
	mount -o loop initrd.fs /mnt
	# copy a full busybox setup onto /mnt
	# copy the statically-linked fsck binary I want to /mnt
	sync
	umount /mnt
	gzip -9 <initrd.fs >initrd.img

That's a rescue disk. If you want it to be completely automated, add
this etc/init.d/rcS, mode 0755:

	#!/bin/sh
	fsck command I want
	reboot

I've got a statically linked busybox (along with a lot of other
components, all statically linked against uClibc) available from
<URL:http://bent.latency.net/bent/>. For rescue disk creation you'll
want to unpack elsewhere and delete docs, and var/lib/bpm (where the
complete package sources are installed).

To boot such an initrd, besides specifying your kernel and initrd,
you want to add "rw" and "root=/dev/ram0" to your boot options.

But I don't think I'd actually respond this way to the problem
you've got. RAM is so cheap, run memtest86 to find out for sure
which bits are marginal, and replace 'em.

-Bennett

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-01-30 16:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-30  4:15 How to set a reiserfs partition to get an occasional fsck? Michael James
2004-01-30 16:19 ` Bennett Todd [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-01-30 16:31 Burnes, James
2004-01-31  4:09 ` Stewart Smith
2004-01-31  7:29 ` Lamont R. Peterson

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=20040130161930.GA531@rahul.net \
    --to=bet@rahul.net \
    --cc=Michael.James@csiro.au \
    --cc=reiserfs-list@namesys.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.