grub error 17: Cannot mount selected partition

General support questions
msu0781
Posts: 1
Joined: 2017/09/20 01:02:08

grub error 17: Cannot mount selected partition

Postby msu0781 » 2017/09/20 01:05:44

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

Code: Select all

 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.

fdisk -l

Code: Select all

 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: Select all

#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: Select all

 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: Select all

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

fstab

Code: Select all

 /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.