Skip to content

Commit

Permalink
centos.org
Browse files Browse the repository at this point in the history
  • Loading branch information
wigust committed Mar 15, 2023
1 parent f20d69f commit b3f0896
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions centos.org
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,25 @@ vda 252:0 0 20G 0 disk
Read ahead sectors auto
- currently set to 8192
Block device 253:4

* Fix GRUB
** Centos 6
Centos 7 could be booted via network (netboot.xyz) or ISO file.

Mount Centos 6 filesystem to /mnt, then:

: mount --rbind /dev /mnt/dev
: mount -t proc /proc /mnt/proc
: mount --rbind /sys /mnt/sys

Then run =grub-install /dev/DEVICE=, e.g.:

grub-install /dev/md127

if you get error about extra disk (e.g. /dev/vda while your RAID consists only
from /dev/sda1 and /dev/sdb1) in software raid you could work around it with a
symlink:

: ln -s /dev/md127 /dev/vda

Then try to invoke =grub-install /dev/md127= again.

0 comments on commit b3f0896

Please sign in to comment.