Grub Error 17: Cannot mount selected partition.

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Grub Error 17: Cannot mount selected partition.
# 1  
Old 06-04-2010
Java Grub Error 17: Cannot mount selected partition.

I dualboot Ubuntu and Fedora in one hard drive. Below are the scenario.

First, installed Ubuntu 10.4 on the entire disk (40GiB of size).
Then, shrink the Ubuntu installation to equal size to free up space for fedora.

Second, installed Fedora 13 using the option "Use free space on selected drives and create default layout". After the successful installation fdisk -l shows,
Code:
# fdisk -l

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 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: 0x0000b59d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2330    18715693+  83  Linux
/dev/sda2            4661        4866     1648641    5  Extended
/dev/sda3            2331        2394      512000   83  Linux
/dev/sda4            2394        4661    18203648   8e  Linux LVM
/dev/sda5            4661        4866     1648640   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/dm-0: 16.5 GB, 16542334976 bytes
255 heads, 63 sectors/track, 2011 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/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 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/dm-1 doesn't contain a valid partition table

being /dev/sda1 the Ubuntu partition and /dev/sda3 for Fedora.
Then, with Fedora grub enabled, added the Ubuntu boot parameters to /boot/grub/menu.lst.

# cat /boot/grub/menu.lst
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,2)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_fcebuserv-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora 13 (2.6.33.3-85.fc13.i686)
        root (hd0,2)
        kernel /vmlinuz-2.6.33.3-85.fc13.i686 ro root=/dev/mapper/vg_fcebuserv-lv_root 
rd_LVM_LV=vg_fcebuserv/lv_root rd_LVM_LV=vg_fcebuserv/lv_swap rd_NO_LUKS rd_NO_MD 
rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
        initrd /initramfs-2.6.33.3-85.fc13.i686.img
title Ubuntu 10.4, kernel 2.6.32-21-generic
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.32-21-generic root=UUID=652c8b53-3751-4e86-a9fb-5e0aa5e19277 ro quiet splash
        initrd /boot/initrd.img-2.6.32-21-generic

Now, selecting Ubuntu on boot give the error, "Grub Error 17: Cannot mount selected partition".
Any advice, what needs to be done for Ubuntu to boot successfully.

Thanks.
# 2  
Old 06-05-2010
Just a guess, but if /dev/sda3 equals (hd0,2), shouldn't /dev/sda1 equal (hd0,0), then?
# 3  
Old 06-07-2010
I concur with House. It appears you're skipping the first partition, which is 0. The only time this would be true is if you have a factory installed "rescue" partition which you don't show in your fdisk listing.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to boot partition from Grub Minimal_BASH?

Hi, someone knows how can I boot my OS or cdrom from a Grub Minimal_Bash? :confused: sorry, I´m a dummy I explain, when I start loading the OS, I get errors, and ends up in the grub bash. This is the minimal_bash and I have no idea of ​​any command. It tells me "unknow partition". The problem is... (0 Replies)
Discussion started by: veravera
0 Replies

2. AIX

Can't mount a partition

Hello, today i get some aix errors (can't lock files and strange things) then i umount FS to do a fsck but i get these errors root@omega / > fsck -p /dev/fslv06 The current volume is: /dev/fslv06 Unable to read primary superblock. Unable to read either superblock. I readed on this page... (9 Replies)
Discussion started by: thorin666
9 Replies

3. Red Hat

This doesn't look like a partition table Probably you selected the wrong device.

Hi, I need to mount the device from this device # fdisk -l . . . Disk /dev/sdas: 2000.4 GB, 2000365289472 bytes 255 heads, 63 sectors/track, 243197 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size... (0 Replies)
Discussion started by: justbow
0 Replies

4. UNIX for Dummies Questions & Answers

Mount UEFI partition

I want to gain read/write access to a Windows 8 partition from a linux live cd. Prior to Windows 8, I used ntfs-3g to mount the partition from the command line. The "Fdisk -l" command does not seem to be able to read efi partitions. There must be some new strategy for linux users. This is... (6 Replies)
Discussion started by: jamarsh
6 Replies

5. Boot Loaders

GRUB MBR and restoring a partition

I tried to install another Linux O.S along with MS and to make two Linux's and one windows.Usually when I try this GRUB losses the ability to boot the first Linux install. It did it again. I would really like to get this first install bootable again. Here are some facts. -I have a rescue... (0 Replies)
Discussion started by: theKbStockpiler
0 Replies

6. UNIX for Dummies Questions & Answers

How to select correct partition and kernel argument for grub?

I use command-line mode of GRUB to load kernel, but I can not know how to chose the partition and kernel argument, as followed : please tell me how to do deal with , thanks! (0 Replies)
Discussion started by: cqlouis
0 Replies

7. Solaris

can not mount the selected partition

Dear Brothers First i installed suse linux with the following partition. my hd0 size is 75gb hdc1 swap 1 gb hdc2 native linux 39gb For the rest of the 35 gb i did not create any partition. so i planned to install solaris 10x86 on that free space. When i installed the solaris i... (1 Reply)
Discussion started by: sayed_021
1 Replies

8. UNIX for Dummies Questions & Answers

I've created a partition with GNU Parted, how do I mount the partition?

I've created a partition with GNU Parted, how do I mount the partition? The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards. Thanks, --Todd (1 Reply)
Discussion started by: jtp51
1 Replies

9. Solaris

how to mount other partition?

dear all, that is my problem : c0d0p1 is nt, c0d0p2 is solaris and other on extended partition is pcfs, so how can i mount it somewhere? because i dont know which one connect from raw to block dev. /dev/rdsk/c0d0p? any help would be great... :) (6 Replies)
Discussion started by: stdout
6 Replies

10. Solaris

can't mount a partition

Hello, I have a problem on my sun station, that run solaris7. To free temporarly a little space on /, I moved a few empty folders (mnt, net, awk, tftpboot) to the /home partition. Unfortunately the system froze just after this...maybe I should not have move this files, I don't know, I am a... (3 Replies)
Discussion started by: nabulus
3 Replies
Login or Register to Ask a Question