LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grub error 17 (https://www.linuxquestions.org/questions/linux-newbie-8/grub-error-17-a-931264/)

arnab.linux 02-25-2012 01:57 PM

Grub error 17
 
I have installed fedora 16 in my computer where previously I was using OpenSUSE 12.1. After installing fedora 16 the grub loader is some how corrupted. I am getting the grub error - error code 17.

I have two hard disc drive in my system (one is 250 GB and another is 1TB)and installed windows 7 in 250 GB hard disc and Fedora 16 in my second hard disc where I had OpenSUSE earlier. I have choosen the option to use the existing linux partition while installing fedora.

"sudo fdisk -l" shows like below -

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00400040

Device Boot Start End Blocks Id System
/dev/sda1 * 63 20482874 10241406 7 HPFS/NTFS/exFAT
/dev/sda2 102398373 184313744 40957686 7 HPFS/NTFS/exFAT
/dev/sda3 20482875 488392064 233954595 f W95 Ext'd (LBA)
/dev/sda5 20482938 62428589 20972826 7 HPFS/NTFS/exFAT
/dev/sda6 62428653 102398309 19984828+ 7 HPFS/NTFS/exFAT
/dev/sda7 184313808 268205174 41945683+ 7 HPFS/NTFS/exFAT
/dev/sda8 268205238 352096604 41945683+ 7 HPFS/NTFS/exFAT
/dev/sda9 352096668 435988034 41945683+ 7 HPFS/NTFS/exFAT
/dev/sda10 435988098 488392064 26201983+ 7 HPFS/NTFS/exFAT

Partition table entries are not in disk order

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00054526

Device Boot Start End Blocks Id System
/dev/sdb1 16065 1530914174 765449055 f W95 Ext'd (LBA)
/dev/sdb2 * 1530914816 1531938815 512000 83 Linux
/dev/sdb3 1531938816 1953523711 210792448 8e Linux LVM
/dev/sdb5 16128 629153594 314568733+ 7 HPFS/NTFS/exFAT
/dev/sdb6 629153658 1530914174 450880258+ 7 HPFS/NTFS/exFAT

Disk /dev/mapper/live-rw: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders, total 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/live-rw doesn't contain a valid partition table

Disk /dev/mapper/live-osimg-min: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders, total 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/live-osimg-min doesn't contain a valid partition table

Disk /dev/mapper/VolGroup-lv_swap: 4227 MB, 4227858432 bytes
255 heads, 63 sectors/track, 514 cylinders, total 8257536 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/VolGroup-lv_swap doesn't contain a valid partition table

Please help me to recover the grub loader

EDDY1 02-25-2012 02:11 PM

Go to grub error 17
http://www.gentoo.org/doc/en/grub-error-guide.xml

arnab.linux 02-25-2012 02:19 PM

I am not able to find the grub.conf file in my system. It is not in /boot/grub location.

EDDY1 02-25-2012 02:30 PM

That's where mine is.
Is it possible that it got erased?
Can you reinstall grub?
Sdb is also missing the 16064
Quote:

Device Boot Start End Blocks Id System
/dev/sdb1 16065 1530914174 765449055 f W95 Ext'd (LBA)
/dev/sdb2 * 1530914816 1531938815 512000 83 Linux
/dev/sdb3 1531938816 1953523711 210792448 8e Linux LVM
/dev/sdb5 16128 629153594 314568733+ 7 HPFS/NTFS/exFAT
/dev/sdb6 629153658 1530914174 450880258+ 7 HPFS/NTFS/exFAT

yancek 02-25-2012 02:55 PM

When you installed Fedora, did you select to install the Grub bootloader to the master boot record?
If so, to which drive? sda? sdb?
If you use the Fedora CD, mount sdb2 which is probably your boot partition and see what you have there. I dont' have Fedora installed but have installed Fedora 16 and my recollection is that it has both a /boot/grub and a /boot/grub2 directory.

You can get the most detailed information to post here for help by downloading the bootinfoscript, running it and posting the results.txt file here.

http://sourceforge.net/projects/bootinfoscript/

syg00 02-25-2012 03:23 PM

That error message is from the original grub. F16 uses grub2.
I would guess the F16 install didn't reformat the /boot but merely used (added to) it. And didn't re-write the MBR.
grub wouldn't be able to handle that LVM - simply writing grub2 to the MBR should fix it.

bootinfoscript should confirm all that.


All times are GMT -5. The time now is 12:28 AM.