From: Pavel Machek <pavel@suse.cz>
To: Jim Carter <jimc@math.ucla.edu>
Cc: linux-kernel@vger.kernel.org, hare@suse.de, seife@suse.de
Subject: Re: Disc driver is module, software suspend fails
Date: Wed, 30 Mar 2005 11:06:24 +0200 [thread overview]
Message-ID: <20050330090624.GA572@elf.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.61.0503291724030.7677@xena.cft.ca.us>
Hi!
> > You insmod driver for your swap device, then you echo device numbers
> > to /sys... then initiate resume.
>
> So you're saying, let the machine come all the way up, log in as root,
> "echo 8:5 > /sys/power/resume" (I think that was the name), then "echo
> resume > /sys/power/state"? Hmm, you would have to bypass "swapon -a",
> e.g. boot with the -b kernel parameter.
Well, basically yes, but do that without any writing to filesystem, or
it is "bye bye data".
> Or I'll bet one could do something equivalent in the initrd -- much more
> user friendly. But the friendliest of all would be if the swsusp resume
> call were not a late_initcall but rather were called just before the root
> was mounted, after the initrd (if any) had loaded whatever modules. I
> think you're confirming that that approach would not blow up the kernel --
> if it will work with the root mounted and user space in full roar (well,
> skimpy roar with the -b switch), then it's got to be OK at the earlier
> time.
You do not want to mount journaling filesystems; they tend to write to
disks even during read-only mounts... But doing it from initrd should
be okay. ext2 and init=/bin/bash should do the trick, too.
Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
next prev parent reply other threads:[~2005-03-30 9:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-25 6:54 Disc driver is module, software suspend fails Jim Carter
2005-03-25 8:14 ` Pavel Machek
2005-03-25 10:54 ` Stefan Seyfried
2005-03-28 0:27 ` Jim Carter
2005-03-28 22:19 ` Pavel Machek
2005-03-30 1:38 ` Jim Carter
2005-03-30 9:06 ` Pavel Machek [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-04-10 23:14 Jim Carter
2005-04-13 10:07 ` Pavel Machek
2005-04-14 17:53 ` Jim Carter
2005-04-14 20:42 ` Pavel Machek
2005-05-04 1:11 ` Jim Carter
2005-05-04 9:14 ` Pavel Machek
2005-03-23 6:19 Jim Carter
2005-03-23 10:17 ` Pavel Machek
2005-03-23 22:34 ` Jim Carter
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=20050330090624.GA572@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=hare@suse.de \
--cc=jimc@math.ucla.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=seife@suse.de \
/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