bugGNU GRUB - Bugs: bug #40530, GRUB should detect hibernated file...


You are not allowed to post comments on this tracker with your current authentification level.

bug #40530: GRUB should detect hibernated file system and prompt user

Submitted by:  Ulf Zibis <ulfzibis>
Submitted on:  Sat 09 Nov 2013 10:17:47 PM UTC  
Votes:  50  
Category: SecuritySeverity: Major
Priority: 5 - NormalItem Group: Feature Request
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenRelease: 
Release: Bazaar - trunkReproducibility: Every Time
Planned Release: None

Sun 10 Nov 2013 11:58:46 PM UTC, comment #5:

I like the alternatives much better.
Now the implementation issues:
swap may not be visible to GRUB so looking at it is not reliable.
The way to proceed would be along GRUB saving last booted entry in grubenv as "last_entry". Then hibernate scripts would use grub-editenv set "hibernated" variable to 1. grub-mkconfig if GRUB_HIBERNATE_CHECK=true in /etc/default/grub then would add a code in 00_header to set default to $last_entry and clear hibernated.
Don't expect me to make a patch, last time I used hibernate RAM was just about 256M. But I'd accept a sane patch along those lines.

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 10 Nov 2013 11:27:47 PM UTC, comment #4:

1. How likely is a hibernated file system, which is not on the default boot partition, on an unattended-starting server?
2. The virgin first start of an unattended system would be for sure non-unattended, and the operator would become aware of the rarely-occurring situation, so then could remedy the cause or set the option.
3. If you still think, I'm wrong, then here 2 other suggestions for the problematic case:
- Interrupt the boot with a loooong time-out, e.g. 3 minutes, which only could be decreased optionally, so standard user has enough time to prevent the system from dangerously booting the wrong partition.
- If I can't convince you, then please introduce a non-default option for hibernation-detection at least.

To me:
Negligently corrupting a file system and destroying data is "not an option".

Ulf Zibis <ulfzibis>
Sun 10 Nov 2013 10:22:31 PM UTC, comment #3:

The unattended scenario has to work with default config. Making it work only when some option is set isn't an option either. Especially when it concerns some rarely-occuring situation. Nobody likes their server stops in response to some rare condition if the stop isn't absolutely inevitable.

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 10 Nov 2013 10:03:05 PM UTC, comment #2:

On unattended systems, the described scenario should not occur, and if, the hibernation-detection should be disabled by option.

Ulf Zibis <ulfzibis>
Sun 10 Nov 2013 04:21:25 AM UTC, comment #1:

Asking user is not an option. On unattended systems it would simply lock them up.

Vladimir Serbinenko <phcoder>
Project Administrator
Sat 09 Nov 2013 10:17:47 PM UTC, original submission:

If file system in partition 2 is hibernated, but default boot is partition 1, then partition 1 should not boot automatically after timeout or normal selection from boot menu.
Instead the hibernation state of partition 2 should be displayed to the user as a big warning and booting from another partition should be only processed after additional manual acknowledgement.

Prevent from situations, described in https://bugs.launchpad.net/ubuntu/+source/ntfs-3g/+bug/1198507

Ulf Zibis <ulfzibis>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by ulfzibis (Voted in favor of this item)
  • -unavailable- added by ulfzibis (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 50 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 09 Nov 2013 10:25:10 PM UTCulfzibisCarbon-Copy-=>Added ulfzibis

    Back to the top

    Powered by Savane 3.1-cleanup