Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
copy_linux_to_a_new_harddisk [24.02.2012 15:00] – Pascal Suter | copy_linux_to_a_new_harddisk [06.06.2014 10:54] – Pascal Suter | ||
---|---|---|---|
Line 18: | Line 18: | ||
* chroot to the target drive and install grub: < | * chroot to the target drive and install grub: < | ||
mount --bind /dev/ / | mount --bind /dev/ / | ||
+ | mount --bind /sys/ / | ||
+ | mount --bind /proc/ / | ||
chroot /tmp/target | chroot /tmp/target | ||
grub-install /dev/sdb | grub-install /dev/sdb | ||
+ | update-grub | ||
grub | grub | ||
find / | find / | ||
Line 25: | Line 28: | ||
setup (hd0) | setup (hd0) | ||
</ | </ | ||
+ | * if you are moving your installation to new hardware (other than just the harddisk) you might need to update your initrd image to contain the necessary drivers (i.e. in redhat based systems). run `dracut` | ||
* reboot your system | * reboot your system |