Video Screencast Help

booting from a cloned hard on a laptop

Created: 28 Oct 2013 | 5 comments

Hi,
I cloned a linux CentOS hard drive of a server PC which included a LVM. Then I connected my external hard to the usb port of my laptop.
I wanted to boot my laptop from the CentOS of external hard so i could use the programs which were installed on PC.So I restarted the laptop and press F11 button to select the desired OS.
I can see the CentOS of external hard but when select it the following message appears:

=========================================
Booting 'CentOS (2.6.18-308.24.1.e15)'

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.18-308.24.1.e15 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
   [Linux-bzImage, setup=0x1e00, size=0x1cf514]
initrd /initrd 0 0x37e62000, 0x18d36e bytes]

Memory for crash kernel (0x0 to 0x0) notwithin permissible range
Red Hat nash version 5.1.19.6 starting
unable to access resume device (/dev/VolGroop00/LogVol101)
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
kernel panic - not syncing: Attempted to kill init!
============================================

by the way, when i log in to windows of my laptop and use Virtual Box, i can mount both boot and lvm partition of external hard and i can see the content of lvm and the programs of my interest.but i cant run the programs.

Thanks in advance   

Operating Systems:

Comments 5 CommentsJump to latest comment

Andreas Horlacher's picture

If you put the drive into the system rather than into the USB enclosure, can you boot from it there? If so, it's possible that CentOS does not like booting from the USB hard drive, and\or you need to convigure it to be bootable accoring to the CentOS documentation.

Andreas Horlacher

Please mark 'solved' when issue is resolved

aria62's picture

my 500GB Seagate hard is of the external type that can only be connected through usb port..

Andreas Horlacher's picture

SSR officially doesn't support CentOS, but first find out if that USB drive and CentOS can even be booted the way you are attempting on your particular system. If yes, then it may be a matter simply editing the boot information of that drive, as bootable removable disks and bootable fixed disks have different boot patterns. 

Andreas Horlacher

Please mark 'solved' when issue is resolved

aria62's picture

I think there is some problem in reference to LVM and i should edit fstab and grub.conf files. but i just have a virtual ubuntu installed on VirtualBox. two questions arise here:

1- can i use a rescue disk to edit fstab and grub without having a real linux os?

2- in virtual ubuntu i can mount 2 partitions of external hard. one of them is labled "BOOT" and another one is labled LVM. and i have access to "grub.conf" of BOOT partition and "fstab" of LVM partition. are these two the files which must be edited?   

aria62's picture

I got a centos CD to try rescue option. here is the summery of result of "fdisk -l" command:

=================================================

Disk /dev/sdb: 640.1 GB
device      boot  start     End      Blocks              Id    system
/dev/sdb1         1          1139     9143296          27    unknown
/dev/sdb2    *    1139   1152     102400            7     HPFS/NTFS
/dev/sdb3         1152    12791   93489152       7     HPFS/NTFS
/dev/sdb4         12791  77826   522393600+  5     Extended
Partition 4 does not      end on cylinder boundry.
/dev/sdb5         12791  30001   138240000    7     HPFS/NTFS
/dev/sdb6         30001  43111    105300160   7     HPFS/NTFS
/dev/sdb7         43112  77826    278841357   7     HPFS/NTFS

Disk /dev/sda: 500.1 GB
device      boot  start     End      Blocks            Id    system
/dev/sda1           1         13        104391          83    Linux
/dev/sda2   *      14       60001  488279610    8e    Linux LVM

Disk /dev/dm-0: 497.9 GB
Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2000 MB
Disk /dev/dm-1 doesn't contain a valid partition table

==================================================