hibernate should hide grub menu

Bug #42376 reported by Nicolò Chieffo
26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pm-utils (Ubuntu)
Wishlist
Unassigned

Bug Description

When Ubuntu is asked to hibernate the computer, it is possible to reboot and select another option from the boot menu.

This means that a partition could get mounted twice, if someone accidentally selected another operating system to boot.

The submitter's suggestion is to hide the GRUB boot menu, so that this becomes unlikely.

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 42376] Re: hibernate should hide grub menu

are you sure this is a wishlist? I don't know how partitions react to
a problem like this...
But I've read somewhere that fat32 partitions have a high chance to be
corrupted!

Revision history for this message
Toby Smithe (tsmithe) wrote :

This wishlist doesn't make any sense! Could you please explain in English what you are requesting?

Simon Law (sfllaw)
Changed in acpi-support:
assignee: nobody → mjg59
status: Unconfirmed → Confirmed
description: updated
Revision history for this message
Toby Smithe (tsmithe) wrote :

Right, thanks to those on #ubuntu-bugs, I understand. This should definately
be fixed, and I will be looking forward to that when I get my hibernate
working!

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 42376] Re: [Bug 42376] Re: hibernate should hide grub menu

this should easily be fixed throught the scripts in /etc/acpi/resume.d
and suspend.d if they're called also when using gnome-power-manager...

suspend script:
cp /boot/grub/menu.lst /boot/grub/menu.lst.bak
cat /boot/grub/menu.lst | sed -e 's/^#hiddenmenu/hiddenmenu/' >
/boot/grub/menu.lst

resume script
mv /boot/grub/menu.lst.bak /boot/grub/menu.lst

but this won't work if someone edits the line containing #hiddenmenu

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

we could also set the timeout to less than 10...

Revision history for this message
Luka Renko (lure) wrote :

I have seen that powersave on SuSE is using grubonce utility during hibernate to set proper selection in grub for next boot.
Maybe we could consider similar for

Revision history for this message
Adriaan Peeters (apeeters) wrote :

Justification: possibility of data loss

Revision history for this message
Jan Van Buggenhout (chipzz) wrote :

I consider this a feature, not a bug; this enables me to hibernate, boot windows; do something there, exit windows, resume.
I think the correct fix is to replace "default 0" with "default saved" (which does have the undesirable side-effect of not automatically booting the latest kernel when you install a new kernel and reboot).

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 42376] Re: hibernate should hide grub menu

I think this is a bug! Just because suspend won't umount any partition
and when resuming, what would happen if a partition had been used in a
previous session? I think a horrible data loss!

well, there are suspend.d scripts, I think the best way to face with
this problem is to use them. we could write a simple script that enables
only the current kernel in grub!

Il giorno lun, 15/05/2006 alle 05.14 +0000, chipzz ha scritto:
> I consider this a feature, not a bug; this enables me to hibernate, boot windows; do something there, exit windows, resume.
> I think the correct fix is to replace "default 0" with "default saved" (which does have the undesirable side-effect of not automatically booting the latest kernel when you install a new kernel and reboot).
>

Revision history for this message
Paul Sladen (sladen) wrote :

Yes, I agree. This is dapper+1 material though.

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

Time to give attention to this bug now! dapper+1 is already passed!

Revision history for this message
Nicolas DERIVE (kalon33) wrote :

One of the risk here is to rewrite on a swap which is used by two linux distros or versions (edgy+feisty for exemple) but it is a problem too that you cannot launch another OS (e.g. windows) when Ubuntu is hibernating. Is it possible to hide all Ubuntu relative entries behind the one which allow a good "awake" and let the user choose between this entry and another OS ?

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

To tell the truth the problem is that every mounted partition is
hibernated. So you can't choose an os which use a hibernated
partition. So kindly every OS on your pc will share at least one
partition!

Revision history for this message
Lionel Duval (fennec) wrote :

I agree with ones who think that's almost a bug. Playing with different OS between hibernate & resume shouldn't be allowed.

Revision history for this message
Stephen Laverty (steve-alum) wrote :

I disagree. Hibernating Linux to start Windows XP and then rebooting and resuming Linux is part of my daily work flow. For those who believe this is a bug, I would suggest that perhaps by default your wishes be granted but it needs to be VERY easy to override this to restore the current behavior.

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

Sorry, but are you using any shared partition?

Phillip Susi (psusi)
affects: acpi-support (Ubuntu) → pm-utils (Ubuntu)
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Given that many users surely dual-boot with a grub entry for windows, I don't believe this feature request can actually be done.

Revision history for this message
Phillip Susi (psusi) wrote :

What does Windows have to do with it?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers