I'm lazy so I don't like to install the same system on a few machines. I install it once and then clone using tar and gzip. With Slackware and LILO it's simple. With Linux Mint and Grub it's a bit tricky.
To clone the system you have to:
1. Archive it on some external device with tar and gzip using first machine and Linux live distribution.
2. Restore it from that external device using second machine and Linux live distribution.
In both cases I used Linux Mint as a live distribution.
3. Next you have to update /etc/fstab file to reflect actual partitioning scheme on the second machine.
During fstab setup you need valid UUID partitions numbers. The numbers displays a command sudo blkid. This is the first trick.
4. Finally you have to update Grub.
Let's assume the restored system is on /dev/sda1 and you want to install Grub on /dev/sda. In order to do it perform these commands (I assume you use Linux Mint live distribution):
Code:
# sudo mount /dev/sda1 /mnt/
# sudo mount --bind /dev /mnt/dev/
# sudo mount --bind /proc /mnt/proc/
# sudo chroot /mnt/
# update-grub
# grub-install /dev/sda
The trick is in the second command. It mounts current devices in mounted directory allowing to install Grub on the disk. Without that step grub-install /dev/sda command displays an error:
Code:
grub-probe: error: cannot find a device for /boot/grub.
***
At the end you may want to change host name and local IP address in /etc/motd, /etc/fstab, /etc/hosts, /etc/hostname, /etc/printcap, and /etc/network/interfaces files.