N
N
navion2011-03-13 17:47:04
GRUB
navion, 2011-03-13 17:47:04

How to transfer Linux from one server to another?

The server under CentOS 5.5 died, you need to transfer the working system to another machine that is very different in hardware.
I cloned the disk, did a grub-install, but during boot, “GRUB” is displayed on the screen and nothing else happens.
Tell me what needs to be done to revive the system?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
K
kekekeks, 2011-03-13
@kekekeks

Have you tried update-grub? There is an opinion that there are all sorts of different menu.lst/grub.cfg wrong.

S
shadowalone, 2011-03-13
@shadowalone

Wouldn't it be easier to install the OS again, and transfer the configs / data of the necessary demons / programs / sites?

I
impass, 2011-03-13
@impass

it would be better to copy files from the old server using rsync to a freshly created empty partition

F
fun, 2011-03-13
@fun

Acronis Disk Director can make a snapshot of all partitions.

D
DIEGOR, 2011-03-14
@DIegoR

This is how I copy Ubuntu. First I create and format the partition, and then I copy files to it to avoid bitwise copying. I screwed it up to switch to SSD, hence the name of the directory /mnt/ssd
mke2fs -t ext4 -E stripe-width=32,resize=50G /dev/sda1
mkdir /mnt/ssd
mount /dev/sda1 /mnt/ssd
sudo mount /dev/sdb1 /mnt/ssd/
sudo tar --create --one-file-system --file - `cat ~/root_files` |(cd /mnt/ssd ; sudo tar xvf -)
sudo mkdir /mnt/ssd/proc
sudo mkdir /mnt/ssd/sys
sudo mkdir /mnt/ssd/mnt
sudo mount --bind /dev /mnt/ssd/dev
sudo mount --bind /proc /mnt/ssd/proc
sudo mount --bind /sys /mnt/ssd/sys
sudo chroot /mnt/ssd/
update-grub
grub-install /dev/sdb
exit
sudo umount /mnt/ssd/dev
sudo umount /mnt/ssd/proc
sudo umount /mnt/ssd/sys
sudo umount /mnt/ssd/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question