How do I reinstall grub from Ubuntu live CD?
via Partition Files Copy
- Boot to the LiveCD Desktop.
- Mount the partition with your Ubuntu installation.
- Open a terminal by selecting Applications, Accessories, Terminal from the menu bar.
- Run the grub-setup -d command as described below.
- Reboot.
- Refresh the GRUB 2 menu with sudo update-grub.
How do I uninstall and reinstall grub?
Uninstalling GRUB 2
- Open a terminal: Applications, Accessories, Terminal.
- Optional: Make backup copies of the main GRUB 2 directories and files. sudo cp /etc/default/grub /etc/default/grub.old.
- Remove GRUB 2. sudo apt-get purge grub-pc.
- Install GRUB 0.97.
- With grub installed, the user must still create the menu.
- Reboot.
How do I update grub on live CD?
This solution is the exact same as roadmr’s answer except much easier.
- Boot into AntiX Live CD.
- Menu>Applications>System Tools>Boot Repair.
- Select ‘Repair GRUB Configuration file’ (this option does run update-grub)
- Select the drive/partition where /boot resides.
- Reboot when its finished.
How do I manually install grub?
Resolution
- Mount root to /mnt.
- Mount /boot to /mnt/boot.
- Mount system pseudo file systems under /mnt.
- “change root” or chroot to /mnt.
- Under /boot/grub, there is a file called “device.
- Launch the grub interactive shell.
- In the interactive shell, you will see a “grub>” prompt.
- Type quit.
How do I rescan grub?
To do this:
- At the grub menu, press c to drop to the grub console.
- Type reboot and hit enter.
- Computer will reboot.
- Grub will be reloaded and the drives will be rescanned.
Where is grub file in Ubuntu?
The primary configuration file for changing menu display settings is called grub and by default is located in the /etc/default folder. There are multiple files for configuring the menu – /etc/default/grub mentioned above, and all the files in the /etc/grub.
How do I install grub only?
Installing GRUB2 on a BIOS system
- Create a configuration file for GRUB2. # grub2-mkconfig -o /boot/grub2/grub.cfg.
- List block devices available on the system. $ lsblk.
- Identify the primary hard disk.
- Install GRUB2 in the MBR of the primary hard disk.
- Reboot your computer to boot with the newly installed bootloader.
How do I install Grub from a live CD?
Basically how it works is you boot of the live CD and mount your Ubuntu install. You run chroot, and you are dropped into a command prompt for the installed Ubuntu instance instead of the CD. The guide above should tells you what you need to do. Show activity on this post. I thought that grub was installing automatically… Try re-installing.
Why do I have to re-install Grub After installing Ubuntu?
When you install Windows after you install Ubuntu, Windows replaces the GRUB in the Hard Disk to Windows’ boot loader which won’t identify Linux systems (Damn you Windows !). But, our GRUB detects every OS. So, it’s better to have GRUB over Windows Boot Loader. You have to re install GRUB after the following scenarios :
How do I install Ubuntu from a live CD?
Basically how it works is you boot of the live CD and mount your Ubuntu install. You run chroot, and you are dropped into a command prompt for the installed Ubuntu instance instead of the CD. The guide above should tells you what you need to do.
How to fix Grub rescue prompt in Ubuntu?
See How to chroot Ubuntu using Live CD to fix GRUB rescue prompt. Basically how it works is you boot of the live CD and mount your Ubuntu install. You run chroot, and you are dropped into a command prompt for the installed Ubuntu instance instead of the CD. The guide above should tells you what you need to do.