copy_linux_to_a_new_harddisk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
copy_linux_to_a_new_harddisk [24.02.2012 15:00] Pascal Sutercopy_linux_to_a_new_harddisk [13.05.2013 23:55] Pascal Suter
Line 18: Line 18:
   * chroot to the target drive and install grub: <code>   * chroot to the target drive and install grub: <code>
 mount --bind /dev/ /tmp/target/dev mount --bind /dev/ /tmp/target/dev
 +mount --bind /sys/ /tmp/target/sys
 chroot /tmp/target chroot /tmp/target
 grub-install /dev/sdb grub-install /dev/sdb
 +update-grub
 grub grub
 find /boot/grub/menulst</code>(if you have an own partiton for boot, you can leave boot away in the above command) <code> find /boot/grub/menulst</code>(if you have an own partiton for boot, you can leave boot away in the above command) <code>
  • copy_linux_to_a_new_harddisk.txt
  • Last modified: 06.06.2014 10:54
  • by Pascal Suter