• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Rebuild GRUB on MSDOS Partition Type in CentOS/RHEL/OEL 7

By admin

Question: How to Rebuild Grub on Linux servers with MSDOS Partition type.

(proc) (hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)

1. Execute the following commands in Grub prompt to set the root device and to load the boot image and initialize boot loader.

> set root=(hd0,msdos1)
> linux16 /vmlinuz-3.10.0-327.el7.x86_64 root=/dev/sda5
> initrd16 /initramfs-3.10.0-327.el7.x86_64.img

Then boot the server.

2. Once the server boots up, rebuild the Grub config file. You can edit the /etc/default/grub and modify the parameter “GRUB_TIMEOUT=30”

# cat /etc/default/grub
GRUB_TIMEOUT=30
GRUB_HIDDEN_MENU_QUIET=false
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
GRUB_CMDLINE_LINUX="console=tty0"
GRUB_DISABLE_RECOVERY="true"

3. Rebuild the grub.cfg. On BIOS-based machines, issue the following command as root:

# grub2-mkconfig -o /boot/grub2/grub.cfg

Filed Under: CentOS/RHEL 7, Linux, OEL 7

Some more articles you might also be interested in …

  1. iSCSI connection command examples (Cheat Sheet)
  2. How to Audit File Access on Linux
  3. Understanding Linux multipath (dm-multipath)
  4. How to Set Resource Limits for a Process with Systemd in CentOS/RHEL 7 and 8
  5. How to Configure an NFSv4-only Client using nfsconf in CentOS/RHEL 8
  6. Basic Master Cups Server and Clients Configuration for Browsing in CentOS/RHEL 7
  7. Introduction to sed (Stream Editor) : Useful sed Command Examples
  8. Beginners Guide to Automounting File Systems in CentOS / RHEL
  9. What are the Types of DNS Servers
  10. How to Back Up and Restore XFS File Systems (xfsdump / xfsrestore)

You May Also Like

Primary Sidebar

Recent Posts

  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  • Unable to Start RDMA Services on CentOS/RHEL 7
  • How to rename a KVM VM with virsh
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary