LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 09-19-2017, 06:25 PM   #1
ms0781
LQ Newbie
 
Registered: Sep 2017
Posts: 1

Rep: Reputation: Disabled
grub error 17: Cannot mount selected partition


I have a server with a fresh install of CentOS 6.8 that will not boot that produces the following error:

Code:
Error 17: Cannot mount selected partition.
I have a HW Raid controller with 2 separate Raid 10 Partitions labeled SDA and SDB for data. I have an additional software Raid 1 labeled SDC and SDD. The software Raid has a /boot partition (MD0) and / (MD1). All partitions are configured with LVM as well. Grub is installed to MD0. I can only access the sytem in rescue mode. In the BIOS drive SDC is set to boot. I've also tried SDD. The raid controller is not set to boot. Grub version is GRUB 0.97.

Code:
 fdisk -l
Code:
Disk /dev/loop0: 146 MB, 146558976 bytes
       255 heads, 63 sectors/track, 17 cylinders
       Units = cylinders of 16065 * 512 = 8225280 bytes
       Sector size (logical/physical): 512 bytes / 512 bytes
       I/O size (minimum/optimal): 512 bytes / 512 bytes
       Disk identifier: 0x0c30c34e


       Disk /dev/sdb: 549.0 GB, 549017616384 bytes
       255 heads, 63 sectors/track, 66747 cylinders
       Units = cylinders of 16065 * 512 = 8225280 bytes
       Sector size (logical/physical): 512 bytes / 512 bytes
       I/O size (minimum/optimal): 512 bytes / 512 bytes
       Disk identifier: 0x000244d5

       Device Boot      Start         End      Blocks   Id  System
       /dev/sdb1               1       66748   536148992   8e  Linux LVM

       Disk /dev/sda: 549.0 GB, 549017616384 bytes
       255 heads, 63 sectors/track, 66747 cylinders
       Units = cylinders of 16065 * 512 = 8225280 bytes
       Sector size (logical/physical): 512 bytes / 512 bytes
       I/O size (minimum/optimal): 512 bytes / 512 bytes
       Disk identifier: 0x0001bcd6

       Device Boot      Start         End      Blocks   Id  System
       /dev/sda1               1       66748   536148992   8e  Linux LVM

       Disk /dev/sdc: 525.1 GB, 525112713216 bytes
       255 heads, 63 sectors/track, 63841 cylinders
       Units = cylinders of 16065 * 512 = 8225280 bytes
       Sector size (logical/physical): 512 bytes / 512 bytes
       I/O size (minimum/optimal): 512 bytes / 512 bytes
       Disk identifier: 0x0004215c

       Device Boot      Start         End      Blocks   Id  System
       /dev/sdc1   *           1          64      513024   fd  Linux raid 
       autodetect
       Partition 1 does not end on cylinder boundary.
       /dev/sdc2              64       63842   512290816   fd  Linux raid 
       autodetect

       Disk /dev/sdd: 525.1 GB, 525112713216 bytes
       255 heads, 63 sectors/track, 63841 cylinders
       Units = cylinders of 16065 * 512 = 8225280 bytes
       Sector size (logical/physical): 512 bytes / 512 bytes
       I/O size (minimum/optimal): 512 bytes / 512 bytes
       Disk identifier: 0x0002d17e

       Device Boot      Start         End      Blocks   Id  System
       /dev/sdd1   *           1          64      513024   fd  Linux raid 
       autodetect
       Partition 1 does not end on cylinder boundary.
       /dev/sdd2              64       63842   512290816   fd  Linux raid 
       autodetect

       Disk /dev/md1: 524.5 GB, 524451577856 bytes
       2 heads, 4 sectors/track, 128039936 cylinders
       Units = cylinders of 8 * 512 = 4096 bytes
       Sector size (logical/physical): 512 bytes / 512 bytes
       I/O size (minimum/optimal): 512 bytes / 512 bytes
       Disk identifier: 0x00000000


       Disk /dev/mapper/vg_r2g7-vg_root: 490.9 GB, 490892951552 bytes
       255 heads, 63 sectors/track, 59681 cylinders
       Units = cylinders of 16065 * 512 = 8225280 bytes
       Sector size (logical/physical): 512 bytes / 512 bytes
       I/O size (minimum/optimal): 512 bytes / 512 bytes
       Disk identifier: 0x00000000


       Disk /dev/md0: 525 MB, 525271040 bytes
       2 heads, 4 sectors/track, 128240 cylinders
       Units = cylinders of 8 * 512 = 4096 bytes
       Sector size (logical/physical): 512 bytes / 512 bytes
       I/O size (minimum/optimal): 512 bytes / 512 bytes
       Disk identifier: 0x00000000

       Device Boot      Start         End      Blocks   Id  System

       Disk /dev/mapper/vg_r2g700-vg_cont_repo: 549.0 GB, 549013422080 bytes
       255 heads, 63 sectors/track, 66747 cylinders
       Units = cylinders of 16065 * 512 = 8225280 bytes
       Sector size (logical/physical): 512 bytes / 512 bytes
       I/O size (minimum/optimal): 512 bytes / 512 bytes
       Disk identifier: 0x00000000


       Disk /dev/mapper/vg_r2g701-vg_prov_repo: 549.0 GB, 549013422080 bytes
       255 heads, 63 sectors/track, 66747 cylinders
       Units = cylinders of 16065 * 512 = 8225280 bytes
       Sector size (logical/physical): 512 bytes / 512 bytes
       I/O size (minimum/optimal): 512 bytes / 512 bytes
       Disk identifier: 0x00000000


       Disk /dev/mapper/vg_r2g7-vg_swap: 33.6 GB, 33554432000 bytes
       255 heads, 63 sectors/track, 4079 cylinders
       Units = cylinders of 16065 * 512 = 8225280 bytes
       Sector size (logical/physical): 512 bytes / 512 bytes
       I/O size (minimum/optimal): 512 bytes / 512 bytes
       Disk identifier: 0x00000000
Here's my grub.conf

Code:
 #boot=/dev/md0
    default=0
    timeout=5
    splashimage=(hd2,0)/grub/splash.xpm.gz
    hiddenmenu
    title CentOS 6 (2.6.32-642.el6.x86_64)
        root (hd2,0)
        kernel /vmlinuz-2.6.32-642.el6.x86_64 ro root=/dev/mapper/vg_r2g7-
    vg_root rd_NO_LUKS rd_LVM_LV=vg_r2g7/vg_root LANG=en_US.UTF-8 
    SYSFONT=latarcyrheb-sun16 rd_MD_UUID=971fde40:558fc897:1429c464:5dbbc179 
    crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_r2g7/vg_swap 
    rd_NO_DM rhgb quiet
        initrd /initramfs-2.6.32-642.el6.x86_64.img

df -h

Code:
 Filesystem            Size  Used Avail Use% Mounted on
     /dev/mapper/vg_r2g7-vg_root
                      450G  698M  427G   1% /
     /dev/md0              478M   28M  425M   7% /boot
     /dev/mapper/vg_r2g700-vg_cont_repo
                      504G   70M  478G   1% /cont_repo
     tmpfs                  32G     0   32G   0% /dev/shm
     /dev/mapper/vg_r2g701-vg_prov_repo
                      504G   70M  478G   1% /prov_repo

grub

Code:
 grub> find /grub/grub.conf
     find /grub/grub.conf
     (hd2,0)
     (hd3,0)
fstab

Code:
/dev/mapper/vg_r2g7-vg_root /                       ext4    defaults        
      1 1
      UUID=409e9c9c-4f89-43b6-8fb3-15b1f196c348 /boot                   ext4    
      defaults        1 2
      /dev/mapper/vg_r2g700-vg_cont_repo /cont_repo              ext4    
      defaults        1 2
      /dev/mapper/vg_r2g701-vg_prov_repo /prov_repo              ext4    
      defaults        1 2
      /dev/mapper/vg_r2g7-vg_swap swap                    swap    defaults        
      0 0
      tmpfs                   /dev/shm                tmpfs   defaults        0 
      0
      devpts                  /dev/pts                devpts  gid=5,mode=620  0 
      0
      sysfs                   /sys                    sysfs   defaults        0 
      0
      proc                    /proc                   proc    defaults        0 
      0
I've also switched (HD2,0) to (HD3,0) in the grub.conf and still no luck. To me the grub.conf looks correct, but I am unsure what I am missing here. Any help is greatly appreciated.
 
Old 09-24-2017, 03:10 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
A I know, grub legacy does not support raid volumes.
Grub 2 supports that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub error 17 Cannot mount selected partition for second MD RAID disk 2HeartLinuxIs2BGeek Linux - General 2 01-21-2016 12:19 PM
Grub Error 17: Cannot mount selected partition kobtron Linux - Newbie 7 03-14-2011 01:50 PM
grub error 17 cannot mount selected partition (past posts checked still deosn't work) jieyunfu Linux - General 1 05-06-2008 01:14 AM
GRUB Error #17: Cannot Mount Selected Partition NickN Linux - Newbie 5 11-02-2006 11:10 PM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 03:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration