Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Grub question

Posted on 2013-05-27
4
Medium Priority
?
415 Views
Last Modified: 2013-07-08
Hi,

I want to ask a question.

I have two HDD, RAID 1 configured on it. OS is CentOS, Now i want to check grub located on which HDD what steps i can use for checking or any utility which can provide all these details ?

Thanks
Javaid
0
Comment
Question by:smksa
4 Comments
 
LVL 7

Accepted Solution

by:
Milind Koyande earned 2000 total points
ID: 39200339
You can use the find command on grub prompt to find the grub/boot loader location.

Please refer following links:
http://wiki.centos.org/HowTos/GrubInstallation : explains grub installation
http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/393772-how-install-bootloader-both-disks-software-raid-1-a.html#post1863202 : it shows how to use find command
0
 
LVL 26

Expert Comment

by:arober11
ID: 39200439
Is the RAID array hardware or software based, as in did you create it from a BIOS utility or did you create it from the Linux installer?

If the latter see:  https://wiki.archlinux.org/index.php/Software_RAID_and_LVM
If the former see: http://askubuntu.com/questions/43036/how-do-i-install-grub-on-a-raid-system-installation
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39201497
grub in generally locates in the root partition. If you look in /etc/grub.conf you can find out where it is. For example -
title Red Hat Enterprise Linux Server (2.6.32-279.1.1.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-279.1.1.el6.x86_64 ro root=/dev/mapper/vg_001-lv_root rd_LVM_LV=vg_001/lv_root rd_LVM_LV=vg_001/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto vga=791 3
        initrd /initramfs-2.6.32-279.1.1.el6.x86_64.img

Open in new window

0
 
LVL 13

Expert Comment

by:Sandy
ID: 39235859
grub is always on boot partition so check the /boot partition details, if it is LV then you can use #lvdisplay -m


sA
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question