Grub Error 1 Cannot Mount Selected Partition
Contents |
RAID 1 GRUB setup General support questions Post Reply Print view Search Advanced search 7 posts • Page 1 of 1 dejanst Posts: 124 Joined: 2011/09/20 14:13:13 [SOLVED] Problems with RAID 1 GRUB setup Quote Postby dejanst » 2011/09/20 14:57:32 I recently upgraded from CentOS 5.7 to CentOS 6 (32 bit) and I have error 17 cannot mount selected partition grub some issues with setting up GRUB on both HDDs.The server is HP Proliant Microserver that is running 2 error 17 cannot mount selected partition centos HDD's that have the same capacity. Both HDDs have the same partition layout, the partitions are properly combined in 8 RAID devices.Code: Select all
== BEGIN df error 17 cannot mount selected partition redhat -h ==
Filesystem Size Used Avail Use% Mounted on
/dev/md2 9.7G 349M 8.8G 4% /
tmpfs 440M 0 440M 0% /dev/shm
/dev/md0 grub filesystem type unknown, partition type 0x83 291M 38M 239M 14% /boot
/dev/md7 73G 180M 69G 1% /komna
/dev/md6 49G 180M 46G 1% /telos
/dev/md5 2.0G 35M 1.8G 2% /tmp
/dev/md3 7.7G 883M 6.5G 12% /usr
/dev/md4 4.9G 215M 4.4G 5% /var
== BEGIN fdisk -l ==
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md1 doesn't contain a valid partition table
Cannot Mount Selected Partition Linux
/>Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md3 doesn't contain a valid partition table
Disk /dev/md4 doesn't contain a valid partition table
Disk /dev/md5 doesn't contain a valid partition table
Disk /dev/md6 doesn't contain a valid partition table
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 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: 0x000f15fe
Device Boot Start End Blocks Id System
/dev/sda1 1 1275 10240000 fd Linux raid autodetect
/dev/sda2 1275 1530 2048000 fd Linux raid autodetect
/dev/sda3 * 1530 1569 307200 fd Linux raid autodetect
/dev/sda4 1569 19458 143693824 5 Extended
/dev/sda5 1569 7943 51200000 fd Linux raid autodetect
/dev/sda6 7943 8963 8192000 fd Linux raid autodetect
/dev/sda7 8963 9600 5120000 fd Linux raid autodetect
/dev/sda8 9601 9856 2048000 fd Linux raid autodetect
/dev/sda9 9856 19458 77128704 fd Linux raid autodetect
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512
Cannot mount selected partition × × Sorry for the inconvenience Our new site design is only available in English right now. Go to the previous site to
Grub Error 17
read in my language Stay here and read in English × Give grub commands Us Feedback Got some feedback about the website? Let us know so we can fix it. For support information, grub rescue please visit Support. Sales:1-800-796-3700 Support:1-800-858-4000 Connect with us Feedback Form We adapt, you succeed. Read Privacy Policy Required Fields* X SUSE Support My Favorites Close Please login to see your http://www.centos.org/forums/viewtopic.php?t=1269 favorites. Bookmark Email Document Printer Friendly Favorite Rating: Grub fails with Error 17: Cannot mount selected partitionThis document (7010670) is provided subject to the disclaimer at the end of this document. Environment SUSE Linux Enterprise Server 11 Service Pack 1SUSE Linux Enterprise Server 11 Service Pack 2 Situation After an online update grub fails with:Error 17: Cannot mount selected partition Resolution Solution: https://www.suse.com/support/kb/doc?id=7010670 For systems running SLES11SP1 or immediate action to get the system back online please see the workaround below. On systems running SLES11SP2 update perl-Bootloader to version 0.4.89.44-0.4.2.1 or later. Workaround:Press enter to get back into the grub menu, press "e" on the default boot entry (usually the first in the list), select the line root (hd0) and press "e" again. Change root (hd0) to the desired value (e.g. if the root device is /dev/sda1, the location would be hd0,0) and press enter. Check the changes on the screen for correctness and press "b" to boot.Once the system is online, please adjust /boot/grub/menu.lst and change all root (hd0) entries to their correct values. Cause After the update /boot/grub/menu.lst contains root (hd0)for the default boot entry but should contain root (hdx,y)instead. DisclaimerThis Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND. Document ID:7010670Creation Date:23-AUG-12Modified Date
Forums Hosting Security and Technology Error 17: Cannot mount selected partition If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can http://www.webhostingtalk.com/showthread.php?t=1386642 post: click the register link above to proceed. To start viewing messages, select the forum http://itknowledgeexchange.techtarget.com/linux-lotus-domino/grub-and-boot-errors/ that you want to visit from the selection below. Results 1 to 9 of 9 Thread: Error 17: Cannot mount selected partition Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 06-20-2014,06:54 PM #1 SPaReK View Profile View Forum Posts View Forum Threads error 1 Web Hosting Master Join Date Apr 2002 Posts 919 Error 17: Cannot mount selected partition I'm a bit puzzled by this error. I have a server with /boot set up as a mdadm RAID1 partition. grub is installed on both /dev/sda and /dev/sdb. Code: dd bs=512 count=1 if=/dev/sda 2>/dev/null | strings Code: dd bs=512 count=1 if=/dev/sdb 2>/dev/null | strings Code: ZRrI D|f1 GRUB Geom Hard Disk Read Error Both drives have identical grub configurations Code: grub> cannot mount selected cat (hd0,0)/grub/grub.conf Code: grub> cat (hd1,0)/grub/grub.conf The grub.conf file contains the section: Code: title CentOS (2.6.32-431.20.3.el6.x86_64) root (hd1,0) kernel /vmlinuz-2.6.32-431.20.3.el6.x86_64 ro root=UUID=XXXXX rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_MD_UUID=XXXXX SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_MD_UUID=XXXXXXX KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-431.20.3.el6.x86_64.img Yet, this won't boot. It hangs on boot with the error Error 17: Cannot mount selected partition The solution is fairly simple (assuming you have KVM/IP access) just edit the root line and change it to root (hd0,0). And I can also change this in the grub.conf file once the server is back up, so subsequent boots will work without intervention. But why isn't (hd1,0) working? I would think that either would work, since they are synchronized and identical drives. We recently had /dev/sdb fail on this RAID and it had to be replaced. So the reason I'm somewhat alarmed and puzzled by this, is what if it had been /dev/sda that had failed? Would the server have booted? Should (hd1,0) as the root work? Reply With Quote 0 06-20-2014,11:02 PM #2 manhalab View Profile View Forum Posts View Forum Threads Junior Guru Wannabe Join Date Jul 2009 Posts 70 error 17 means, file-system not recognized So in your grub.conf root(x,y) setting is not set correctly. May be this could help, https://www.centos.org/forums/viewtopic.php?t=1269 Reply With Quote 0 06-21-2014,01:20 AM #3 Srv24x7 View Profile View Fo
? Ask a question, help others, and get answers from the community Discussions Start a thread and discuss today's topics with top experts Blogs Read the latest tech blogs written by experienced community members >>VIEW ALL POSTS Open Source Software and Linux « Troubleshooot your Linux boot process with GRUB Netbooks, Notebooks, Windows and Linux » Sep 13 2008 12:26AM GMT Grub and boot errors John Little Profile: Xjlittle Tags: Thanks! We'll email youwhen relevant content isadded and updated. Following Follow Storage If you've administered or customized Linux long enough you've no doubt created a situation at some point where, during the boot process, that GRUB throws an error. We're going to discuss some of these situations below along with ways to work through them. If a file name or partition in the GRUB configuration file is incorrect GRUB won't be able to find critical files such as the Linux kernel. For instance if the root directive points to something other than the /boot directory GRUB will throw one of the following errors:
Error 17: Cannot mount selected partition
Error 27: Unrecognized command
Error while parsing number
Cannot mount selected partition
If the GRUB configuration file is completely missing you will see the following:
grub>
If you find yourself at this prompt you can find a list of available commands by hitting the tab key. The first thing that you are going to want to do in any of these cases is check and make sure that your root directive is correct. To do this, at the grub prompt, use the find command to locate the GRUB configuration file. Your search would begin something like this:
grub> find (hd0,0)/grub/grub.conf
where hd0,0 is the 1st hard disk and the 1st partition on the hard disk. Repeat the process using the various partitions on the 1st disk (hd0,1 hd0,2) and so on until you find the configuration file. If the partition is not found you will get an error:
Error 15: File not found
Once you have found the GRUB configuration file check it's location against what the boot loader is showing. You can check the contents of the file by using the cat command:
grub> cat (hd0,0)/grub/grub.conf
Another way to find the same information is to locate the stage1 boot loader file:
grub> find /grub/stage1
You will see output specifying the /boot partition:
(hd0,0)
Perhaps the most simple way to get this information is to simply type root at the prompt:
grub>root
(hd0,0) : Filesystem type is ext2fs, partition type 0x83
Command completion also works from the GRUB