It is possible to move an installed Linux from one drive to another or from one disk to another by two methods:
dd
command which copies sector by sector including boot sectorcp
command, and then installing/updatinggrub
These are very handy and easy methods, but I have no seen any instruction for using these methods for installing a new Linux on a new machine. Is there any disadvantage for this?
For example, we can boot from a Live CD, and copy the files of a minimal installed Linux (without grub); then installing grub through chroot
. In other words, we can have a minimal linux on a USB drive, and install it on any machine (by boot from it, copy itself, chroot, etc).
The only things that should be altered (to my knowledge) is grub
and fstab
from on machine to another. Is there any disadvantage or drawback?
NOTE: I know that Live CD installers somehow do a similar task, but I am curious if simple copying can cause problem on a new machine?