Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using dd to clone a CentOS 5 physical server with the command:
dd if=/dev/hda of=/dev/sdb
When booting the cloned drive, I am getting the error:
mount: could not find filesystem /dev/root
Anything special I should be using with the dd command, or should I be using a different method to clone the disk?
The server is from 10 years ago and the disk I am trying to clone it to a disk that is a lot newer (if that makes a difference).
Also, you should boot from a Live disk before cloning a disk that has a bootable OS on it. Else you would get errors when booting from the copy as some of the files could have changed during the copy. If the copy is connected to the same computer as the original disk, then you might have a conflict as the UUID of the partitions on both drives will be the same. You can try changing it: https://www.tecmint.com/change-uuid-...tion-in-linux/
I would use CLONEZILLA (the tool MADE for this purpose) to image the drive to remote storage. Boot a USB device or CD with a CLONEZILLA distro image on it so your source drive is totally idle and unmounted.
Once this is done, you can use the same CD/USB to restore that remote image to one or more different devices or drives.
I have used this concept to clone a prime server to create an entire server farm (although for that use it was less than simple). Beware of changing/duplicating UUID or labels, and you may have to do a GRUB recovery on the resulting drives.
Thanks for the input.
The disks are lvm, so /etc/fstab does not identify them with uids.
Would I still need to update the uids elsewhere?
I am not moving the disks to new hardware.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.