LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-24-2007, 02:42 PM   #1
Q..
Member
 
Registered: Jul 2007
Posts: 54

Rep: Reputation: Disabled
How to make a cloned partition boot?


This is the thing, I needed to clone a linux system from one drive to the other. It is Fedora 8. The partition was cloned by temporarily plugging in the hard drive as slave and using a usb linux through dd. This has worked for me before and all I had to do was edit /etc/fstab, the grub entries, and perhaps /etc/X11/xorg.conf for the display, but now it's something else.


Code:
Unable to access resume device (/dev/sda5)
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
Is there something I can send to grub to get this to boot, or something else?
 
Old 12-24-2007, 03:15 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 63
If you are cloning a drive look into ghost4linux. Now for issue put both drives in and post their partition tables from each. /etc/fstab/, /etc/mtab, boot/grub/grub.conf from each. Now the only thing i could conclude is if the controller is different from the first machine then maybe it is not supportted by the kernel.
What type od drives are these? IDE Sata Scsi

Brian
 
Old 12-24-2007, 04:01 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,689

Rep: Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795
Just boot with noresume.
 
Old 12-25-2007, 06:59 PM   #4
Q..
Member
 
Registered: Jul 2007
Posts: 54

Original Poster
Rep: Reputation: Disabled
Ok, thanks for the replies. noresume didn't fix the problem, it just got rid of the first line of what I quoted above.

Quote:
Now the only thing i could conclude is if the controller is different from the first machine then maybe it is not supportted by the kernel.
The controller is indeed different. Different drives, the source was SATA, the target of the copy was IDE. But I have done this before without a problem. If the kernel doesn't support the drive then it's strange that it was working just fine as a slave on the same kernel. That is where I set up its partitions getting ready for the copy. The drive is working, as confirmed by the old OS partition that was on it still working fine. I even changed /home from ext3 to jfs and that didn't mess it up. The root partition is also jfs, that may have something to do with it but I don't know. It could also be the way Fedora now marks all hard drives as /dev/sdax if they're sata or not.

Last edited by Q..; 12-25-2007 at 07:07 PM.
 
Old 12-25-2007, 08:41 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,689

Rep: Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795
You'll need to rebuild the initrd with support for the new controller. Once the pivot-root is done, the controller can be handled by a driver loaded as a module. Not before - the support must be available prior to the (real) root being handed control.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make linux partition like windows partition? frozenade Linux - Desktop 14 08-16-2007 03:39 PM
Cloned harddisk doesn't boot with LILO in MBR Kristian2 Slackware 8 07-24-2007 01:00 PM
GRUB: How to boot WinXP (NTLDR, NTDETECT.COM & BOOT.INI) from boot partition (EXT2) ? Rayen16 Linux - Software 1 05-25-2006 12:09 PM
boot problem with cloned hard drives stevebrooks452 Linux - Software 4 03-23-2006 03:07 AM
make grub boot from other partition --> only once bglnelissen Linux - Software 2 12-06-2004 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration