Hi, I am recovering a CentOS 5.4 system. I've copied all partitions into the recovery system. I've installed grub boot loader. However, the original system is using /dev/sdb1 for root (/), while the recovery system is using LVM (/dev/vg0/lv1) for root (/). When recovery system boots, I got the panic error: * Mounting /dev/sdb1 on /sysroot * Mount: mounting /dev/sdb1 on /sysroot failed: No such file or directory * Mount: mounting /dev on /sysroot/dev failed: No such file or directory * * switching / to /sysroot * Switch_root: bad newroot /sysroot * Kernel panic - not syncing: Attempted to kill init! I've changed the recovery system fstab to use the correct devices. I deleted recovery system etc/lvm/cache/.cache file. But it still doesn't work. What am I missing? Thanks, - xinhuan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110208/bfcd1ebb/attachment-0001.html>
On Tue, Feb 8, 2011 at 1:51 PM, Xinhuan Zheng <xzheng at christianbook.com> wrote:> > ????????? * switching / to /sysroot > > ????????? Switch_root: bad newroot /sysroot > > ????????? Kernel panic ? not syncing: Attempted to kill init! > > > > I?ve changed the recovery system fstab to use the correct devices. I deleted > recovery system etc/lvm/cache/.cache file. But it still doesn?t work. What > am I missing?What does your /etc/grub.conf look like?
m.roth at 5-cent.us
2011-Feb-08 19:02 UTC
[CentOS] mount the wrong device after system recovery
Xinhuan Zheng wrote:> > I am recovering a CentOS 5.4 system. I've copied all partitions into the > recovery system. I've installed grub boot loader. However, the original > system is using /dev/sdb1 for root (/), while the recovery system is > using LVM (/dev/vg0/lv1) for root (/). When recovery system boots, I got > the panic error: > > * Mounting /dev/sdb1 on /sysroot > * Mount: mounting /dev/sdb1 on /sysroot failed: No such file or > directory<snip>> I've changed the recovery system fstab to use the correct devices. I > deleted recovery system etc/lvm/cache/.cache file. But it still doesn't > work. What am I missing?What does your /boot/grub/grub.conf read? You have to edit that, then reinstall grub. mark
cornel panceac
2011-Feb-08 19:22 UTC
[CentOS] mount the wrong device after system recovery
2011/2/8 Xinhuan Zheng <xzheng at christianbook.com>> Hi, > > > > I am recovering a CentOS 5.4 system. I?ve copied all partitions into the > recovery system. I?ve installed grub boot loader. However, the original > system is using /dev/sdb1 for root (/), while the recovery system is using > LVM (/dev/vg0/lv1) for root (/). When recovery system boots, I got the panic > error: > > > > ? Mounting /dev/sdb1 on /sysroot > > ? Mount: mounting /dev/sdb1 on /sysroot failed: No such file or > directory > > ? Mount: mounting /dev on /sysroot/dev failed: No such file or > directory > > ? * switching / to /sysroot > > ? Switch_root: bad newroot /sysroot > > ? Kernel panic ? not syncing: Attempted to kill init! > > > > I?ve changed the recovery system fstab to use the correct devices. I > deleted recovery system etc/lvm/cache/.cache file. But it still doesn?t > work. What am I missing? > > > > Thanks, > > > > - xinhuan >try rebuilding initrd . -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110208/335ba1c3/attachment-0001.html>
At Tue, 8 Feb 2011 13:51:32 -0500 CentOS mailing list <centos at centos.org> wrote:> > Content-Class: urn:content-classes:message > > > Hi, > > > > I am recovering a CentOS 5.4 system. I've copied all partitions into the > recovery system. I've installed grub boot loader. However, the original > system is using /dev/sdb1 for root (/), while the recovery system is > using LVM (/dev/vg0/lv1) for root (/). When recovery system boots, I got > the panic error: > > > > * Mounting /dev/sdb1 on /sysroot > > * Mount: mounting /dev/sdb1 on /sysroot failed: No such file or > directory > > * Mount: mounting /dev on /sysroot/dev failed: No such file or > directory > > * * switching / to /sysroot > > * Switch_root: bad newroot /sysroot > > * Kernel panic - not syncing: Attempted to kill init! > > > > I've changed the recovery system fstab to use the correct devices. I > deleted recovery system etc/lvm/cache/.cache file. But it still doesn't > work. What am I missing?You need to rebuild the initrd and make sure the grub.conf file is up-to-date (has the right thing for the root parameter).> > > > Thanks, > > > > - xinhuan > > MIME-Version: 1.0 > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >-- Robert Heller -- 978-544-6933 / heller at deepsoft.com Deepwoods Software -- http://www.deepsoft.com/ () ascii ribbon campaign -- against html e-mail /\ www.asciiribbon.org -- against proprietary attachments