LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   clone ubuntu 8.04 okay, but not CentOS 5.2 and Fedora 10. (https://www.linuxquestions.org/questions/linux-software-2/clone-ubuntu-8-04-okay-but-not-centos-5-2-and-fedora-10-a-736061/)

centguy 06-27-2009 12:50 PM

clone ubuntu 8.04 okay, but not CentOS 5.2 and Fedora 10.
 
I have successful tar an existing CentOS 5.2 partition from Fefora10.
The idea is to move a working CentOS 5.2 residing in an internal hard drive to a portable hard drive.

I know how to edit a stencil in menu.lst to boot the clone CentOS5.2.
During boot, I encountered

Quote:

....
Red Hat nash version 5.1.19.6
mount: could not find filesystem /dev/root
setuproot: moving /dev failed No such file or directory
setuproot: mounting /proc: No such file or directory
setuproot: mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
kernel panic -- not syncing: Attempted to kill init!

Strangely enough, I was able to clone a working ubuntu 8.04 in a portable hard drive without this problem.

What could go wrong ?
Since I have all the files as the old CentOS 5.2 system, nothing should go wrong. Of course, I need to
edit /etc/fstab of the new cloned system and /boot/grub/menu.lst.


For Fedora 10 case:
During boot time,

It says
Quote:

Could not detect stablization waiting for 10 sec
Unable to access resume device (UUID=da7b21e3-5469-4eef-9a01-637b95affab5)
mount: error mounting /dev/root on /sysroot as ext3
No such file or directory.

centguy 06-28-2009 02:12 AM

As I have found out now, replicating/cloning an OS and booting from an internal hard drive was easy and smooth,
but not with with an external drive, even though the SAME steps are taken.

My theory is that when I am trying to boot up an OS from an external drive,
the /dev/hda or /dev/hdb or /dev/sda or /dev/sdb is causing unforseeen
confusion to the kernel and thus it is causing mounting /dev/ to fail .

It is very interesting to find out ubuntu 8.04 does not get confused.
If fact, /dev/sdb is used for the external drive and /dev/sda=internal-drive is not mounted (one would tend to think /dev/sda
is the ACTIVE hard drive, not so for ubuntu! It pays to experiment with non-RedHat distros).

I have no solution to my problem right now.

syg00 06-28-2009 02:57 AM

That sounds like (lack of) support in the initrd.

centguy 06-28-2009 10:50 AM

For reference, see a similar post :
http://www.centos.org/modules/newbb/...20973&forum=38

For now, unless someone can guide me through it, I won't mess with this issue.


All times are GMT -5. The time now is 09:54 AM.