Difference between revisions of "Linux/grub"
< Linux
Jump to navigation
Jump to search
(→Notes) |
|||
Line 16: | Line 16: | ||
* http://community.linuxmint.com/tutorial/view/245 | * http://community.linuxmint.com/tutorial/view/245 | ||
* http://askubuntu.com/questions/420778/i-need-step-by-step-guidence-to-recover-grub | * http://askubuntu.com/questions/420778/i-need-step-by-step-guidence-to-recover-grub | ||
+ | * https://askubuntu.com/questions/142300/how-to-fix-error-unknown-filesystem-grub-rescue |
Revision as of 19:13, 24 March 2019
- grub-install
- note that the target must be a device (e.g. /dev/sdd), not a partition or filesystem (e.g. /dev/sdd1).
- grub-mkconfig creates a new grub.cfg based on what disks and boot options it finds. Run as root and redirect output to the desired file.
- update-grub updates the grub menu
- bootable drives do not need to be mounted in order to be included
Commmands
rescue mode
these commands are still available in rescue mode; examples are from a system with one hard drive on /dev/hda, 2nd partition is ext4
ls (hd<drive>,<partition>)
- Example:
ls (hd0,2)
- Returns: (hd0,2): Filesystem is ext2.
- Example:
ls (hd0,2)/boot/grub
- Returns: (horizontal list of files)
- Example: