help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting grub's view of disk geometry from "grub rescue>" prompt?


From: Nathan Stratton Treadway
Subject: Re: getting grub's view of disk geometry from "grub rescue>" prompt?
Date: Fri, 15 Mar 2019 19:00:50 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Fri, Mar 15, 2019 at 21:54:27 +0100, Pascal Hambourg wrote:
> Sorry, the position and size information is shown only when the
> module "ls" is loaded. I thought that running normal_exit to exit
> normal mode and go back to rescue mode would be the same as booting
> straight into rescue mode, but it is not : loaded modules are still
> loaded.
> 
> So you must either boot with another GRUB in normal mode, or include
> the "ls" module in the core image when installing GRUB with

Okay, that makes sense....  



> You can try dichotomy. Create a partition starting at 50% of the size.
> Mount it and install GRUB using the mount point as boot directory :
> 
> grub-install --boot-directory=<mount-point> /dev/xxx
> 
> If GRUB boots in normal mode, repeat at 75%. If it boots in rescue
> mode, repeat at 25%. And so on.

Unfortunately I don't think that procedure will work reliably, because
grub could boot fine from a bigger-than-the-unknown-threshold partition
if the /boot directory contents happened to be installed early in the
partition... but then later fail to boot against that that same
partition if the files got moved near the end of the filesystem.


                                                        Nathan

----------------------------------------------------------------------------
Nathan Stratton Treadway  -  address@hidden  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239



reply via email to

[Prev in Thread] Current Thread [Next in Thread]