LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Grub Error, Help Needed. (https://www.linuxquestions.org/questions/linux-general-1/grub-error-help-needed-599667/)

Romeyo 11-14-2007 05:07 PM

Grub Error, Help Needed.
 
Hi people,
I am totally confused about the GRUB loader as it keeps on throwing error 17. And at this particuloar point I am totally confused. Here is what I am trying to achieve and my HDD details are,

I want to achieve Dual booting with Windows XP and Fedora 8 on individual hard disks.

My HDD partition details are,

HDD order as per BIOS:

HDD1 - 160GB [First SATA] [C: and D:] Windows XP SP2 running already.
HDD2 - 750GB [Second SATA] [E: F: G: & H:] Having media stored.
HDD3 - 80GB ATA [Primary Master] [No partitions made as of now, planning to load Linux]

I tried with the default partitioning of Fedora, ended up with errors.

So at this point can you guys suggest me what entries should my menu.lst have or any suggestions? I am totally in dark and confused much after going to HDD0, /dev/sda, /dev/sdb and all stuffs.


Any help would be much appreciated.

DNRN 11-15-2007 10:19 AM

Got kind of same problem
 
Hi people,

I think I got kind of the same problem. I have installed Fedora and fails to configure grup so that I can dual boot Fedora and XP. Here is what I get from fdisk -l:

Code:

Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1          13      104391  83  Linux
/dev/sda2  *          14        9964    79931407+  8e  Linux LVM

Disk /dev/sdb: 40.0 GB, 40016019456 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          1        4864    39070048+  7  HPFS/NTFS

And here's what I have in grub.conf:

Code:

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.1-21.fc7)
        root (hd0,0)
        kernel /vmlinuz-2.6.23.1-21.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.23.1-21.fc7.img
title Fedora (2.6.21-1.3194.fc7)
        root (hd0,0)
        kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.21-1.3194.fc7.img

## Hopefulle XP boot
title=Windows XP
        rootnoverify (hd0,1)
        makeactive
        chainloader +1


I have also used (hd1,0), but then nothing happens.

jackb 11-20-2007 10:23 AM

my Error 17
 
Quote:

Originally Posted by Romeyo (Post 2959084)
Hi people,
I am totally confused about the GRUB loader as it keeps on throwing error 17. And at this particuloar point I am totally confused. Here is what I am trying to achieve and my HDD details are,

I want to achieve Dual booting with Windows XP and Fedora 8 on individual hard disks.

My HDD partition details are,

HDD order as per BIOS:

HDD1 - 160GB [First SATA] [C: and D:] Windows XP SP2 running already.
HDD2 - 750GB [Second SATA] [E: F: G: & H:] Having media stored.
HDD3 - 80GB ATA [Primary Master] [No partitions made as of now, planning to load Linux]

I tried with the default partitioning of Fedora, ended up with errors.

So at this point can you guys suggest me what entries should my menu.lst have or any suggestions? I am totally in dark and confused much after going to HDD0, /dev/sda, /dev/sdb and all stuffs.


Any help would be much appreciated.

my error 17 problem was caused by grub, here is what happened

howto;
remote upgrade edgy to feisty[ and solve Error 17: Cannot mount selected partition ]

short & sweet
{
never never never sudo shutdown 1
without 1st
diff /boot/grub/menu.lst /boot/grub/menu.lst-6.10edgy.ORIG
make sure it's OK
fail one floor away is a pain, 100 miles away is murder.
}

info from url;
http://www.ubuntugeek.com/upgrade-ub...isty-fawn.html

testing on lan 1st
ssh 192.168.1.172
[ login ]
$ cat /etc/issue
Ubuntu 6.10 \n \l <--- check current version on /dev/sda7 ------
Method 2 - Using apt-get.
{
sudo cp /etc/apt/sources.list /etc/apt/sources.list-6.10edgy.ORIG
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst-6.10edgy.ORIG <--[ added because of nnotes/judy.upgrade-7.04 grub screwup. ]
sudo e /etc/apt/sources.list <----[ alias e='gvim' ]
click magnifying[ Find/Replace ]symbol
Find what: [ edgy ]
Replace with:[ feisty ]
click [ Replace All ]
save & exit

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get -f install <----- do a fix in case
sudo dpkg --configure -a

before y answer to update
[
sudo cp /etc/login.defs /etc/login.defs-6.10edgy.ORIG
sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf-6.10edgy.ORIG
sudo cp /etc/cups/mime.types /etc/cups/mime.types-6.10edgy.ORIG
sudo cp /etc/firefox/firefoxrc /etc/firefox/firefoxrc-6.10edgy.ORIG
]
sudo shutdown 1 --> fails with Error 17: Cannot mount selected partition --> see nnotes/judy-failed.upgrade6.10edgy-7.04feisty

}

nnotes/judy-failed.upgrade6.10edgy-7.04feisty <------------- notes to myself -----------------
{
thanks to partitions, boot from /dev/sda3
google[ Error 17: Cannot mount selected partition ]
http://www.linuxquestions.org/questi...rtiton-206254/
{
This error means the following

Error 17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the
filesystem type cannot be recognized by GRUB.
}
sudo fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 2351 18884376 7 HPFS/NTFS
/dev/sda2 29248 30401 9269505 c W95 FAT32 (LBA)
/dev/sda3 2352 10850 68268217+ 83 Linux
/dev/sda4 10851 29247 147773902+ 5 Extended
/dev/sda5 10851 19704 71119723+ 83 Linux
/dev/sda6 28500 29247 6008278+ 82 Linux swap / Solaris
/dev/sda7 * 19705 28138 67746073+ 83 Linux
/dev/sda8 28139 28499 2899701 82 Linux swap / Solaris

Partition table entries are not in disk order

seems more or less ok so check grub on sda7;
( sudo mkdir /media/sda7 if it does not exist )
sudo mount /dev/sda7 /media/sda7
sudo e /media/sda7/boot/grub/menu.lst
find default to be
title Ubuntu, kernel 2.6.20-16-generic [ /dev/sda7 ]
root (hd0,3)
kernel /boot/vmlinuz-2.6.20-16-generic root=/dev/sda4 ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
boot

change to
title Ubuntu, kernel 2.6.20-16-generic [ /dev/sda7 ]
root (hd0,6)
## think upgrade screwed up here root (hd0,3)
## screwup is -----------------------------------^
kernel /boot/vmlinuz-2.6.20-16-generic root=/dev/sda7 ro quiet splash
## and upgrade screwup here->kernel /boot/vmlinuz-2.6.20-16-generic root=/dev/sda4 ro quite splash
## screwup is -----------------------------------------------------------------------^
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
boot

reboot and dah it works.
ok so sda4 is extended with sda7 inside but why would new grub change sda7 to sda4 ????????????
}
$ cat /etc/issue
Ubuntu 7.04 \n \l <--- check changed version on /dev/sda7 ------

ps global check for any *edgy.ORIG
find / -name *edgy.ORIG 2>/dev/null

hope this may shed lite on your problem

jackb


All times are GMT -5. The time now is 07:08 AM.