SLUG Mailing List Archives
Re: [SLUG] mount LVM from Ubuntu live CD
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] mount LVM from Ubuntu live CD
- From: Martin Visser <martinvisser99@xxxxxxxxx>
- Date: Sun, 21 Feb 2010 14:03:29 +1100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=tQaqCntF/luWdytEOuyjcQiySL/tMIMS9uQgyQa6q4M=; b=WT+JFW2OkuXNesN/JRLtjbMxSLyX/Yb8C5o0Q51a8arNnxGrjKcYe2CcxzMJnmut40 k7afidF1Qu8+Xo5DetJkprCYGLLp/+5eUOZ9KPD8yg1kwaBp0XdRNABywRkpMaKAN5wz WmKRgylS5v6TQ6689dyvIkym7l77TUDfsXWTs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wSJV56oonb0qGcdM3Mk4fKvMSZEozBeV7zaT6fDrO8RA4sEArUYGV7pBBGCQAJv6ON LsRHFCSnLun5RTpXrECdmuOPTVyYwbES5kxrHeCxUag+d6y16rAbvSVs0XQOoYbobjdG dLazMAwU8J/mHiRF0AYrkeI4cjSTE0tJVWeqY=
I don't get how sync will write anything to a "ro" filesystem. That seems to
be to break a fundamental kernel and filesystem principle.
I would have thought either the "remount" would either force a flush of
dirty blocks before it switches to "ro", or alternatively those blocks still
dirty at the time of the "remount" end up in the bit bucket.
Also I have seen this 3 sync incantation before. It seems to me that all you
are doing playing snap with processes that might have stuff to write but
hasn't been flushed. After any sync and before the final shutdown I presume
any running process is at liberty to create new dirty blocks that may or may
not make it to disk in time.
On Sun, Feb 21, 2010 at 12:37 PM, Daniel Pittman <daniel@xxxxxxxxxxxx>wrote:
> Jeremy Visser <jeremy@xxxxxxxxxxx> writes:
> > On 19/02/10 13:41, Daniel Pittman wrote:
> >> ] mount / -o remount,rw
> >> ] passwd root # ...and give it a good password
> >> ] mount / -o remount,ro
> >> ] sync; sync; sync
> >> # wait thirty seconds, because paranoia never hurts
> >> ] sync; sync; sync; reboot
> >> Just be aware that you don't get a lot of nice things like, oh, some
> >> of the "flush on shutdown" behaviour that you do in a normal boot.
> > Shutting down from the GUI, or typing 'halt' isn't magic. It doesn't
> > magically do anything that sync doesn't. How else do you think that the
> > logic works when you shut down?
> ...perhaps my working wasn't clear, as you seem to be restating my point?
> ✣ Daniel Pittman ✉ daniel@xxxxxxxxxxxx ☎ +61 401 155
> ♽ made with 100 percent post-consumer electrons
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html