From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l1KJac0X013466 for ; Tue, 20 Feb 2007 14:36:38 -0500 Received: from web50705.mail.yahoo.com (web50705.mail.yahoo.com [206.190.38.103]) by mx1.redhat.com (8.13.1/8.13.1) with SMTP id l1KJaZcX001294 for ; Tue, 20 Feb 2007 14:36:35 -0500 Date: Tue, 20 Feb 2007 11:36:29 -0800 (PST) From: John Koshi MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: <512064.59586.qm@web50705.mail.yahoo.com> Subject: [linux-lvm] Grub/LVM boot problem Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-lvm@redhat.com Hi, I have a problem with the grub bootloader, as follows. I have a laptop, with an 80G disk, with Windows XP on the first half of the disk (NTFS), and Fedora core 4 (LVM) on the rest. Dual boot is managed by grub, installed with the Fedora install. I wish to clone this disk, so I don't lose hours of setup/installs on both OS's, and my work, in case of a crash. I did the following: 1) Installed Acronis 10 under Windows, and cloned the entire disk to a 120G USB disk. 2) Restored from that clone onto a new 80G disk of the same geometry, and replaced the existing disk with the newly cloned one. 3) On start-up, got a grub hang, so did the following: a) Boot from Fedora core 4 rescue CD b) chroot /mnt/sysimage c) grub-install /dev/hda d) Enter grub e) grub> find /grub/stage1 -> gave me (hd0,3) f) grub> root (hd0,3) g) grub> kernel /vmlinuz-2.6.17-1.2142_FC4 ro root=/dev/hda4 h) grub> initrd /initrd-2.6.17-1.2142_FC4.img -> gave me "Error 16: Inconsistent filesystem structure" i) Exit grub, repeat to step b) above, and rebuild initrd: "mkinitrd -v -f initrd-2.6.17-1.2142_FC4.img 2.6.17-1.2142_FC4 j) Repeat from d) again, and get the same Error 16 as above. 4) Note that after step 3-c) above, I got past the grub hang, and was able to boot Windows. But selecting the Linux installation gave me "Error 17: Cannot mount selected partition". That's when I did the remaining steps above. Sorry about the long-winded explanation, but this is frustrating, and I wanted to provide all the details, in the hope that some-one could throw some light on the dark innards of grub vis-a-vis LVM, to resolve this. Thanks in advance. regards, John