LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-14-2007, 05:07 PM   #1
Romeyo
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
Unhappy 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.
 
Old 11-15-2007, 10:19 AM   #2
DNRN
LQ Newbie
 
Registered: Oct 2006
Location: Denmark
Distribution: Fedora 7
Posts: 6

Rep: Reputation: 0
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.

Last edited by DNRN; 11-15-2007 at 10:21 AM.
 
Old 11-20-2007, 10:23 AM   #3
jackb
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Rep: Reputation: 0
my Error 17

Quote:
Originally Posted by Romeyo View Post
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
 
  


Reply

Tags
error, post, reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub Configuration.. a little help needed phsythax Linux - Software 3 11-07-2005 03:54 PM
GRUB help needed Aphex_Twin2 Linux - General 1 05-03-2005 03:00 PM
GRUB help needed to boot to windows search66 Linux - General 7 03-01-2005 07:01 AM
GRUB clarification needed CyberLord_7 Fedora 2 02-16-2005 01:37 PM
is lilo or grub needed? roofy Linux - Software 4 05-06-2003 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration