Advertisement
Maluvia

Installing Grub2 to a logical partition

Nov 13th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Grub hates this, and will tell you in very strong words not to do it.
  2. If you want to do it anyway, do the following:
  3.  
  4. Assume the partition you want to install onto is /dev/sdx (or /dev/hdx if not sata drive)
  5. Make sure you have it mounted, say to: /mnt/sdx
  6.  
  7. Install grub2 with this command:
  8.  
  9. # grub-install --force --no-floppy --root-directory=/mnt/sdx /dev/sdx
  10.  
  11. This will put the grub files (grub folder) into /mnt/sdx/boot
  12. and install grub to the boot sector of /dev/sdx
  13.  
  14. NB) Make sure you create your new grub.cfg in the /grub folder
  15.  
  16. I have never encountered any problems from doing this and have found it extremely useful.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement