Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd November 2005, 06:21 PM
creiter Offline
Registered User
 
Join Date: May 2004
Location: Tirol / Austria / Europe
Age: 29
Posts: 27
Fedora doesn't boot after cloning it to new Harddisk

Hi!

After cloning my fedora installation (on S-ATA) to a new S-ATA Harddisk the system
doesn't boot anymore.

I did the following:

- installed the new disk
- booted into rescue mode
- created lvm and partitions on the new disk
- copied root and boot partition with "cp -av" to the new disk
- edited fstab and grub.conf on the new disk to match the new VolumeGroup and Logical Volume names.
- reinstalled grub to the new disk with grub-install /dev/sda

When i try to boot now, i get the following errors while LVM initialization:

Code:
Scanning logical volumes
   Reading all physical volumes. This may take a while...
cdrom: open failed.
  Found Volume Group "VolGrp0" using metadata type lvm2
Activating Logical Volumes
cdrom: open failed.
   Unable to find Volume Group "VolGroup00"
ERROR: /bin/lvm exited abnormally with value 5 ! (pid 381)
Creating root device
Mounting root file system
mount: error 6 mounting ext3
Switching to new root
--> kernel panic

"VolGroup00" was the old name of the Volume Group, "VolGrp0" is the new name.

What can i do to get the system up and running?

Thanks for your help in advance!!!!


Chris
Reply With Quote
  #2  
Old 22nd November 2005, 06:56 PM
LLS
Guest
 
Posts: n/a
Can you install both hdds as "orig"master/"new"slave and create a backup disk with this cmd as root?
dd if=/dev/hda1 of=/dev/hdb1 bs=1024k
Then you should be able to set the backup hdd to master and have a "Clone" of the original. If they are different size disks, just do as you did at first and format the new disk to the same size or configuration as the original, do the backup and then config the unused portion after your up and running. This has worked before for me.
Reply With Quote
  #3  
Old 22nd November 2005, 07:37 PM
creiter Offline
Registered User
 
Join Date: May 2004
Location: Tirol / Austria / Europe
Age: 29
Posts: 27
Quote:
Originally Posted by LLS
Can you install both hdds as "orig"master/"new"slave and create a backup disk with this cmd as root?
dd if=/dev/hda1 of=/dev/hdb1 bs=1024k
Then you should be able to set the backup hdd to master and have a "Clone" of the original. If they are different size disks, just do as you did at first and format the new disk to the same size or configuration as the original, do the backup and then config the unused portion after your up and running. This has worked before for me.
Hi!

I am afraid, that won't work because the target (new) disk is 40 GB and the
old disk was 160 GB (although only about 4 GB were used...)

Also i am in need to use a differnt VolumeGroup Name, because of copying from
one disk to the other.

kind regards,
christian
Reply With Quote
  #4  
Old 23rd November 2005, 11:54 PM
LLS
Guest
 
Posts: n/a
Quote:
Scanning logical volumes
Reading all physical volumes. This may take a while...
cdrom: open failed.
Found Volume Group "VolGrp0" using metadata type lvm2
Activating Logical Volumes
cdrom: open failed.
Unable to find Volume Group "VolGroup00"
ERROR: /bin/lvm exited abnormally with value 5 ! (pid 381)
Creating root device
Mounting root file system
mount: error 6 mounting ext3
Switching to new root
--> kernel panic
I just read through this again and it looks like you have the bios set to boot off the cdrom, if the new hdd is not in the list of boot options? I have done this before myself Please post your solution when you discover it?
Reply With Quote
  #5  
Old 24th November 2005, 01:01 PM
creiter Offline
Registered User
 
Join Date: May 2004
Location: Tirol / Austria / Europe
Age: 29
Posts: 27
Hi!

I've just tried to disable all other boot devices than the new harddrive, but
this didn't help.

I get the same error.

Kind Regards,
christian
Reply With Quote
  #6  
Old 24th November 2005, 02:39 PM
LLS
Guest
 
Posts: n/a
Sometimes you will get more replies if you post your files "grub.conf file, fstab, fdisk results" and any others that apply to your situation. Also try the great tutorals listed below in similer threads and good luck!
gonzalo76
Reply With Quote
  #7  
Old 24th November 2005, 06:36 PM
creiter Offline
Registered User
 
Join Date: May 2004
Location: Tirol / Austria / Europe
Age: 29
Posts: 27
Hi!

I will post my config files tomorrow, at this time i have no access to the system with the problem.
The really good HOWTO of gonzalo76 can not help me, because i have a LVM Problem and not a GRUB Problem i think.

Kind Regards,
christian
Reply With Quote
  #8  
Old 24th November 2005, 11:12 PM
simonn Offline
Registered User
 
Join Date: May 2005
Location: Sydney, Australia
Age: 39
Posts: 217
Do you have the same file system type on the new partition?

I think this might be a borked initrd.

Try the following

Boot with a rescue cd, mount the partition, chroot to it and create a new initrd.


There are two ways of creating a mkinitrd, manually or by reinstalling the kernel rpm.


In both cases you must make sure that the filesystem type for / is correct in /etc/fstab.

The manual method...

cd into /boot and you should see something like initrd-2.6.14-1.1637_FC4.img, rename that with a .old extension or something. Find the kernel you want, this should be called something like vmlinuz-2.6.14-1.1637_FC4.

Now do (this is going from memory!):

Code:
mkinitrd initrd-2.6.14-1.1637_FC4.img 2.6.14-1.1637_FC4
The important thing is to make sure that the kernal versions match (2.6.14-1.1637_FC4 in the above case).

You should have a file called initrd-2.6.14-1.1637_FC4.img in /boot.

Reboot.

Alternatively, you could download the kernel RPM from FC4 updates and install that with rpm -Uvh --force [kernel rpm] . This will create the initrd as part of the installation process. Although I seem to remember this not working from a chroot for some reason, so I had to manually create one to boot the system and then reinstalled the kernel rpm for consistency.
__________________
"Your attitude reminds me of a hairdresser who wonders why anybody took Einstein seriously with a haircut like that."

Last edited by simonn; 24th November 2005 at 11:14 PM.
Reply With Quote
  #9  
Old 25th November 2005, 09:55 PM
creiter Offline
Registered User
 
Join Date: May 2004
Location: Tirol / Austria / Europe
Age: 29
Posts: 27
Hi simonn!

First of all:
Your tipp solved my issue.
Thanks a lot!!!


Quote:
Originally Posted by simonn
Do you have the same file system type on the new partition?
No, ext3fs before and now.


Quote:
Originally Posted by simonn
I think this might be a borked initrd.

Try the following

Boot with a rescue cd, mount the partition, chroot to it and create a new initrd.


There are two ways of creating a mkinitrd, manually or by reinstalling the kernel rpm.


In both cases you must make sure that the filesystem type for / is correct in /etc/fstab.

The manual method...

cd into /boot and you should see something like initrd-2.6.14-1.1637_FC4.img, rename that with a .old extension or something. Find the kernel you want, this should be called something like vmlinuz-2.6.14-1.1637_FC4.

Now do (this is going from memory!):

Code:
mkinitrd initrd-2.6.14-1.1637_FC4.img 2.6.14-1.1637_FC4
The important thing is to make sure that the kernal versions match (2.6.14-1.1637_FC4 in the above case).

You should have a file called initrd-2.6.14-1.1637_FC4.img in /boot.

Reboot.

Alternatively, you could download the kernel RPM from FC4 updates and install that with rpm -Uvh --force [kernel rpm] . This will create the initrd as part of the installation process. Although I seem to remember this not working from a chroot for some reason, so I had to manually create one to boot the system and then reinstalled the kernel rpm for consistency.
The manual "mkinitrd" method worked quite perfect!

Thanks a Lot!!!

chris
Reply With Quote
Reply

Tags
boot, cloning, fedora, harddisk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 9 – how to boot external usb harddisk using Notebook or Desktop ezsurf Hardware & Laptops 1 8th October 2008 09:26 AM
Cloning and Migrating F9 partitions to new hardware - boot failure fashionhat Installation and Live Media 2 24th August 2008 05:21 PM
Cloning a Boot Drive Xavior Using Fedora 3 27th January 2008 08:22 PM
Cloning Dual boot Windows and Fedora7 mailramk Installation and Live Media 1 30th November 2007 05:30 PM
Software for cloning a harddisk dihfg Using Fedora 6 2nd August 2007 09:10 AM


Current GMT-time: 08:30 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat