Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RFZNL-00071Y-7s for mharc-grub-devel@gnu.org; Sun, 16 Oct 2011 18:40:11 -0400 Received: from eggs.gnu.org ([140.186.70.92]:40865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFZNF-0006xO-AN for grub-devel@gnu.org; Sun, 16 Oct 2011 18:40:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFZNE-0005aD-A0 for grub-devel@gnu.org; Sun, 16 Oct 2011 18:40:05 -0400 Received: from mta2.srv.hcvlny.cv.net ([167.206.4.197]:64654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFZNE-0005a6-7W for grub-devel@gnu.org; Sun, 16 Oct 2011 18:40:04 -0400 Received: from pavo.local (ool-457596d4.dyn.optonline.net [69.117.150.212]) by mta2.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0LT6009PDKAR7K20@mta2.srv.hcvlny.cv.net> for grub-devel@gnu.org; Sun, 16 Oct 2011 18:40:03 -0400 (EDT) Received: from gavron by pavo.local with local (Exim 4.69) (envelope-from ) id 1RFZNC-0007Cd-T6 for grub-devel@gnu.org; Sun, 16 Oct 2011 18:40:02 -0400 Date: Sun, 16 Oct 2011 18:40:02 -0400 From: Chris Jones Subject: Resizing moving & deleting partitions To: grub-devel@gnu.org Mail-followup-to: grub-devel@gnu.org Message-id: <20111016224002.GB3402@pavo.local> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 167.206.4.197 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2011 22:40:09 -0000 Lately, I had to increase the size of the partition where grub-pc is managed. Upon rebooting, the grub menu had become inaccessible, all I could see was an "Error: file not found". As far as I can remember, there was also a shell-like prompt with "rescue" or "grub rescue" followed by the greater than ">" sign but I wasn't able to make much of that. I eventually managed to recreate a working grub environment (via a graphical mini-app called "boot-repair" that I ran off the ubuntu live CD) but now I appear to have lost my customizations, framebuffer console with my favored fonts and screen resolution. The tool I ended up using works.. automatically, but it doesn't tell you much so that at this point, I don't even know on which partition the active grub actually lives. Now, I have more than a handful of linux systems on this machine, and I occasionally have to delete, move, or create new partitions for new installs. Backing up everything and reinstalling on top of LVM would probably make it easier to move stuff around, but since grub.cfg config files appear to point to bootable partitions via their ordinal numbers - i.e. msdos3, msdos7, etc. - I doubt this would make much difference (?). On such multi-system machines, what would be the better strategy to avoid such situations? I was thinking that a bootable USB key that supports my active custom grub environment (and just that) might provide something a bit more robust than my current setup. Has anyone documented setting this up, or come up with a better approach? Will UEFI help solve the catch22 situation where you need to boot a given system to fix a broken boot loader? Thanks, CJ