Solved

Grub question

Posted on 2013-05-27
4
406 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is this bug still active in RHEL 2 50
LINUX CENTOS + APACHE 9 63
Best way to virtualise a remote Linux server 2 52
High Available Storage based on linux 6 69
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now