What happened to grub2?

Tom H tomh0665 at gmail.com
Tue Feb 5 23:01:32 UTC 2013


On Tue, Feb 5, 2013 at 10:56 AM, Adam Wolfe <kadamwolfe at gmail.com> wrote:


> Why were all the grub entries made to mount / as read-only?
> Why do most of these options attempt and fsck (and seem to fail) before
> doing anything else?

The "ro" on the "linux" lines of the stanzas don't mean that "/" is
mounted read-only once the system's fully booted up.

The grub "linux" lines have "ro" to allow "/" to be mounted read-only
and fsck'd. It's then remounted read-write. So it's unsurprising that
fsck's failing.


> Why does it not boot the default selection on reboot after having chosen
> recovery at the previous boot?

What's "GRUB_DEFAULT" set to in "/etc/default/grub"?


> I've been able to over-write (albeit perhaps only until the next upgrade of
> grub) the read-only issue by editing /etc/grub.d/10_linux.  But as for the
> other two issues... really annoying.  Has anyone found an easy way around
> this?  Installing grub from source, maybe?  Or is there a simple "on/off"
> switch.

If you really want to edit 10_linux (for a reason other than changing
"ro" to "rw"!), I'd advise you to do the following:

cp 10_linux 11_linux
mv 10_linux 9_linux
chmod -x 9_linux
vi 11_linux

That way 1) grub-mkconfig will run 11_linux and 2) when grub's
upgraded you'll be able to diff 9_linux, the old 10_linux, and the new
10_linux.




More information about the ubuntu-users mailing list