Restoring grub MBR

Davis Phillips davis.phillips at
Mon Aug 18 11:14:18 CDT 2008

Yes, the boot partition needs to be on a non-lvm partition so that the
module can be packed into an initrd image. 

Article here:

Davis Phillips
Lead Technician
Intensive Hosting(tm)
* US Free: 1-800-961-4454
* Intl.: +1-512-539-1143

-----Original Message-----
From: linux-poweredge-bounces at
[mailto:linux-poweredge-bounces at] On Behalf Of Paul M. Dyer
Sent: Monday, August 18, 2008 11:07 AM
To: linux-poweredge at
Subject: Re: Restoring grub MBR

As far as I know,  /boot cannot be an LVM volume.  It needs to be a real
and primary partition.


----- Original Message -----
From: "Kevin Zembower" <kzembowe at>
To: "linux-poweredge at" <linux-poweredge at>
Sent: Monday, August 18, 2008 10:14:40 AM (GMT-0600) America/Chicago
Subject: Restoring grub MBR

In the continuing saga of trying to restore an old PE 2450 (see
ml), I was able to restore the server 'td' by booting the system with a
Knoppix 5.1.1 CD. I had to run these commands, because the system uses
the Linux Volume Manager:
  /etc/init.d/lvm start
  vgscan --mknodes
  vgchange -ay
  mkdir /mnt/logvol00
  mount /dev/VolGroup00/LogVol00 /mnt/logvol00
  mount /dev/sda1 /mnt/logvol00/boot
  cd /mnt/logvol00
  rsync -azv root at t:/td/ ./

This restored the system from the host 't' and the directory '/td/',
where the developers had continued their work.

My problem now is that the system refuses to boot, and instead, drops
into the grub prompt. I've tried to boot it in CentOS5 'linux rescue'
mode, where it finds the root directory and mounts it in /mnt/sysimage.
Then, I 'chroot /mnt/sysimage; grub-install /dev/sda', but this errored,
if I remember correctly. It didn't fix the problem. I then rebooted and
got the grub prompt and tried:
  root (hd0,0)
  setup (hd0,0)
This seemed to work correctly (I got the two failures that it said were
not significant), but it still booted into grub. I changed the second
command to 'setup (hd0,1)' but got the same result.

Any suggestions on what I can try next? Any ideas what's going on?

Thanks, as always, for your advice, suggestions and help.


Kevin Zembower
Internet Services Group manager
Center for Communication Programs
Bloomberg School of Public Health
Johns Hopkins University
111 Market Place, Suite 310
Baltimore, Maryland  21202

Linux-PowerEdge mailing list
Linux-PowerEdge at
Please read the FAQ at

Linux-PowerEdge mailing list
Linux-PowerEdge at
Please read the FAQ at

Confidentiality Notice: This e-mail message (including any attached or
embedded documents) is intended for the exclusive and confidential use of the
individual or entity to which this message is addressed, and unless otherwise
expressly indicated, is confidential and privileged information of Rackspace. 
Any dissemination, distribution or copying of the enclosed material is prohibited.
If you receive this transmission in error, please notify us immediately by e-mail
at abuse at, and delete the original message. 
Your cooperation is appreciated.

More information about the Linux-PowerEdge mailing list