All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Reiser <reiser@namesys.com>
To: Ryan Cumming <bodnar42@phalynx.dhs.org>
Cc: Stewart Allen <stewart@neuron.com>, linux-kernel@vger.kernel.org
Subject: Re: passing params to boot readonly
Date: Thu, 13 Dec 2001 12:28:53 +0300	[thread overview]
Message-ID: <3C1874D5.5050205@namesys.com> (raw)
In-Reply-To: <3C1841BB.8010003@neuron.com> <E16EPYW-0003nW-00@phalynx>

Ryan Cumming wrote:

>On December 12, 2001 21:50, Stewart Allen wrote:
>
>>I'm in a bit of a pickle and need to find a way to pass boot params to a
>>reiserfs rootfs to *prevent* it from replaying the journal on single-user
>>boot. This may seem like a strange request, but I've got a degraded RAID
>>array that I need to poke around in before deciding whether or not to send
>>a disk off to a rehab lab. If the replay occurs, it will potentially
>>destroy the fs since I'm using a degraded snapshot of the failed disk in
>>hopes of reclaiming *some* of my data. The system is running 2.2.x (can't
>>remember and can't find out w/out booting).
>>
>>Do I have a snowball's chance of pulling this off?
>>
>
>Well, kinda. The only thing that can deter ReiserFS from replaying the 
>journal is convincing it that the physical media it's on is actually read 
>only. Some quick less/grep work revealed that there is no option that makes 
>the SCSI subsystem claim its devices are readonly (although it'd be extremely 
>useful for situations such as this).
>
>It'd probably be pretty easy to make a boot disk using a hacked version of 
>ReiserFS that refuses to replay the journal, by adding a "return 0;" near the 
>top of journal_read(struct super_block *) in journal.c. However, you might 
>feel more comfortable sending it off for data recovery than testing kernel 
>hacks on it ;)
>
>-Ryan
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>
>
why not just edit the source code directly and recompile?  

Hans



  reply	other threads:[~2001-12-13  9:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-13  5:50 passing params to boot readonly Stewart Allen
2001-12-13  6:41 ` Ryan Cumming
2001-12-13  9:28   ` Hans Reiser [this message]
2001-12-13 15:52     ` stewart
2001-12-13 16:26     ` Ryan Cumming
2001-12-13 19:02       ` Hans Reiser
2001-12-13 20:07         ` Chris Mason
2001-12-13 20:49           ` Chris Mason
2001-12-13 15:01   ` Jesse Pollard
2001-12-13 15:56     ` stewart

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=3C1874D5.5050205@namesys.com \
    --to=reiser@namesys.com \
    --cc=bodnar42@phalynx.dhs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stewart@neuron.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.