Created
February 12, 2015 11:31
-
-
Save TripleDogDare/36df97e5776b642c3bd5 to your computer and use it in GitHub Desktop.
Setup Mint from LiveUSB and fix bootloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Primary sources | |
# Install Grub2: http://community.linuxmint.com/tutorial/view/245 | |
# Update grub2: http://askubuntu.com/questions/145241/how-do-i-run-update-grub-from-a-livecd | |
# Run LiveUSB in live or persistent mode. You'll need the terminal after installation. | |
# Install as normal. You'll get an error about not being able to install the bootloader, ignore and continue, do not reboot. | |
# If you do reboot, just get back into live mode and continue. | |
# Replace the drive/partition numbers where necessary in the code below and run the following commands to install/update GRUB2 | |
#sudo mount /dev/sdXY /mnt | |
sudo mount /dev/sdb1 /mnt | |
#sudo grub-install --root-directory=/mnt/ /dev/sdX | |
sudo grub-install --root-directory=/mnt/ /dev/sdb | |
sudo mount --bind /dev /mnt/dev | |
sudo mount --bind /sys /mnt/sys | |
sudo mount --bind /proc /mnt/proc | |
# ONLY DO THIS IF SEPARATE BOOT PARTITION (I didn't) | |
#sudo mount /dev/sdaX /mnt/boot | |
sudo chroot /mnt | |
sudo update-grub | |
exit | |
sudo umount /mnt/dev | |
sudo umount /mnt/sys | |
sudo umount /mnt/proc | |
#sudo umount /mnt/boot #Only if you mounted it earlier | |
sudo umount /mnt/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment