Linux Booting issue – supportmonk https://supportmonk.com/ Automation and managed cloud services – Get support, get fast! Thu, 10 Sep 2020 05:51:10 +0000 en-US hourly 1 https://wordpress.org/?v=5.5.3 https://storage.googleapis.com/supportmonk-wordpress-media-uploads/2020/03/e8ceb8fb-supportmunk-150x150.png Linux Booting issue – supportmonk https://supportmonk.com/ 32 32 Repair Broken Grub https://supportmonk.com/2020/09/10/repair-broken-grub/ https://supportmonk.com/2020/09/10/repair-broken-grub/#respond Thu, 10 Sep 2020 05:51:10 +0000 https://supportmonk.com/?p=1881 It is possible to use the grub command to install the boot loader, but not the Grub files in /boot/grub. This can be useful to repair a Grub installation if the boot loader was overwritten or damaged. Do grub. Optionally, do find /boot/grub/stage1 to find which partitions have the required Grub files in /boot/grub. If you have a separate partition for /boot, do find /grub/stage1 instead. Do root [partition using Grub convention] to indicate the

The post Repair Broken Grub appeared first on supportmonk.

]]>
It is possible to use the grub command to install the boot loader, but not the Grub files in /boot/grub. This can be useful to repair a Grub installation if the boot loader was overwritten or damaged.

  1. Do grub.
  2. Optionally, do find /boot/grub/stage1 to find which partitions have the required Grub files in /boot/grub. If you have a separate partition for /boot, do find /grub/stage1 instead.
  3. Do root [partition using Grub convention] to indicate the partition which has the Grub files in /boot/grub and the /boot/grub/grub.conf configuration file.
  4. Install the boot loader using setup [location of boot loader using Grub convention].
  5. Do quit to leave the Grub program.
 GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]

grub> find /boot/grub/stage1
 (hd0,5)
 (hd0,9)

grub> root (hd0,5)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  15 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p
(hd0,5)/boot/grub/stage2
/boot/grub/grub.conf"... succeeded
Done.

grub> quit

That’s it.

The post Repair Broken Grub appeared first on supportmonk.

]]>
https://supportmonk.com/2020/09/10/repair-broken-grub/feed/ 0