LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-22-2005, 06:37 PM   #1
Veniogenesis
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
Dual boot Linux with Windows: Grub Error 17


Hi everyone!

I've been having trouble all day with installing Linux on a machine that already has Windows XP. I was using grub as the bootloader and it kept giving me Error 17.

I think it has something to do with the way I'm partitioning my drives.

This is my initial table:
Quote:
IDE1 Master (hda) - 160.0 GB
#1 primary 160.0 GB (BOOT) (NTFS) - /media/hda1

IDE2 Slave (hdb) - 200.0 GB
#1 primary 40.8 GB (NTFS) - /media/hdb1
#5 logical 139.7 GB (NTFS) - /media/hdb5
pri/log 19.5 GB FREE SPACE

SCSI1 (0,0,0) (sda) - 200.0 GB
#1 primary 200.0 GB (NTFS) - /media/sda1
This is what I was trying to use:
Quote:
IDE1 Master (hda) - 160.0 GB
#1 primary 160.0 GB (BOOT) (NTFS) - /media/hda1

IDE2 Slave (hdb) - 200.0 GB
#1 primary 40.8 GB (NTFS) - /media/hdb1
#5 logical 139.7 GB (NTFS) - /media/hdb5
#6 logical 830.7 MB (SWAP) - swap
#3 primary 18.7 GB (BOOT) (EXT3) - /

SCSI1 (0,0,0) (sda) - 200.0 GB
#1 primary 200.0 GB (NTFS) - /media/sda1
Since I'm a newbie, I think I'm doing it TOTALLY wrong. I was wondering if anyone could give me advice.


Thanks so much!
Venio
 
Old 10-22-2005, 08:22 PM   #2
Veniogenesis
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
A friend of mine told me that my partitioning method was totally wrong. He suggested the following and tried it.

Now grub is giving me an Error 5. Next I'll try LILO.

Quote:
IDE1 Master (hda) - 160.0 GB
#1 primary 160.0 GB (BOOT) (NTFS) - /media/hda1

IDE2 Slave (hdb) - 200.0 GB
#1 primary 40.8 GB (NTFS) - /media/hdb1
#5 logical 139.7 GB (NTFS) - /media/hdb5
#6 logical 830.7 MB (SWAP) - swap
#3 logical 18.5 GB (EXT3) - /
#7 logical 0.2 GB (EXT3) - /boot

SCSI1 (0,0,0) (sda) - 200.0 GB
#1 primary 200.0 GB (NTFS) - /media/sda1
 
Old 10-23-2005, 08:19 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
First thing first

The Grub Manual (searchable by Google) will tell you Error 17 is

"Cannot Mount selected partition - partition cannot be recognised by Grub."

I recommend sticking with your original system.

you should tell Linux to use /dev/hdb6 as the swap and /dev/hdb3 as the root partition "/".

Apart from the swap many users use more than one partition for a Linux but it is unnecessary. If no more partition is specified a Linux will put everything under / directory.

Your installation can be marginally improved by using /dev/hdb7 instead of /dev/hdb3 for the Linux installation and allocate say 10 Gb with 8.7 Gb unallocated space for packing another two future distros. Linux doesn't need to be installed in a primary and always bootable from a logical partition. The use of primary partition hdb3 creates more problem than benefit.

Logical partitions work like a steel chain and must be continuous with no primary partitions in the middle. Each logical partition works like a link. The 1st link carries the address of the 2nd link, the 2nd carries the address for the 3rd link and so on.
 
Old 10-23-2005, 09:41 AM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Hello,
agree with saikee.
One more thing you should notice is that "error 17" also occurs when there is something mismatching b/w your "grub.conf" and the entries which "fdisk -l" shows.
so compare them. otherwise post them.

did u make any partition changes after installing linux ??? e.g may have increased/decreased the number of partitons.

regards
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with GRUB when trying to dual boot Mandrake 10.1 and Windows XP. JakeMH Linux - Newbie 4 02-25-2005 06:40 AM
How to remove Linux and restore Windows on Dual boot using Grub TheBaffledKing Linux - Newbie 13 04-14-2004 05:47 AM
Dual-Boot Windows XP through GRUB Darkstar274 Linux - Software 10 12-07-2003 06:10 PM
GRUB hanging at bootup (Fedora Linux, dual boot Windows XP) Forezt Linux - Software 4 12-07-2003 12:52 PM
GRUB read error with dual boot with XP gatekeepa Linux - Newbie 1 06-14-2003 05:03 AM


All times are GMT -5. The time now is 10:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration