Server dead and restore image in other computer
Hello everyone, my server computer is dead, its a +10 years old (was my first pc) and hdd is broken. I dont want pay for other hdd for a 10 years old computer and i have for house a computer with dual core processor, the same memory RAM (1 GB).
The problem is that i did generate monthly image from full hdd server with dd command, but the question is... how can i restore the image in other different computer? My old/broken computer is: CPU: amd 64 bits monocore RAM: 1GB The "new" computer is: CPU: 64 bits dual core "intel" RAM: 1GB The operative system is Debian 8. Any ideas? Thanks. |
The "simple" answer is to dd the image to a new disk and boot it. This is unlikely to be satisfactory as the backup was of a system built for the hardware it had, not the new system it is to be restored to. Might work though.
Another option is to mount the partition(s) contained in the image and extract your data onto the new system - might (probably will) require re-installing some packages and reconfiguring the same. Might be worth fsck'ing the filesystems in the image before using them - hmmm, take another copy of the image before doing this. How did you dd the backup; with the system running, or from a livecd ?. I have ranted in the past about dd being the worst backup option - certainly better than no backup at all. |
I might be tempted to do a clean install on a new system. I say this only because there might be lingering remnants of who knows what on dd image.
Then I'd boot up a virtual machine with that dd image as raw or as above mount it to a file location. (agreed that a copy of dd image is better) Then copy off data as needed. If the image had any sort of malware then it could be copied over to the new install so you'd want to be aware of best practices. Debian works pretty good on a dd to different hardware. Video and nic tend to be the issues if at all. |
Hello, thanks for response to all.
Finally I restore iso image in the other computer, After fighting with the new network card the server is working 100%, and more fast that before because is a dual core CPU. Only one question more, The new hdd is more big that old, the old is 160 GB and new is 230 GB, how can i use 230 GB and not 160? Thanks. |
This is another reason dd is a bad option - devise a better backup strategy.
May be as simple as adding new partitions, may be you need to resize and/or move partitions to accommodate - depends on current layout and your plans. If you want assistance post the output of these (use [code] tags so we can read it) - change /dev/sda as appropriate in need. Code:
sudo lsblk -f |
Quote:
lsblk -f Code:
NAME FSTYPE LABEL UUID MOUNTPOINT Code:
Model: ATA WDC WD2500AAJS-0 (scsi) |
If you simply want to extend the root, swapoff then delete the swap and extended partition - reallocate the swap at end of disk; fix fstab if it uses UUID.
Reboot to check, then use gparted liveCD to extend the root partition - it will also adjust the ext4 filesystem at the same time. Simple and effective. You can also do the swap from gparted if you wish. |
Quote:
|
All times are GMT -5. The time now is 02:22 AM. |