LinuxQuestions.org
Visit Jeremy's Blog.
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 03-08-2006, 08:39 AM   #1
SMurf7
LQ Newbie
 
Registered: Feb 2004
Distribution: Debian 3.x etch (testing)
Posts: 24

Rep: Reputation: 0
GRUB Error 17 After New Partition


Hello,

After creating a new partition in Windows XP, when I restarted the computer I got the GRUB message "Error 17". The GRUB docs indicate that it can't recognise the FS of a partition, but I don't see what the problem is.

My hard drive has a Linux partition at the start of the drive, then three NTFS partitions (the one right at the end of the disk is the newest). I checked the filesystem identifiers using fdisk on Knoppix and they're OK.

I've tried running "grub-install --recheck --root-directory=/mnt/hda1 /dev/hda" in Knoppix but apparently it can't find or open /dev/root.

Help!
 
Old 03-08-2006, 09:41 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
GRUB uses a "device map" to locate its "Stage 2" files. Your new partition may have changed the "real" device map from the one GRUB has installed in the boot sector.

However, if Knoppix can't find you Linux installation, XP may have "decided" that you weren't really serious about Linux, and "reused" your Linux space.

Suggestion: Boot Knoppix and create a GRUB boot floppy (Here's a brief description of how it can be done I wrote a while ago. If you use mkfs -t vfat instead of mke2fs, you should be able to edit the floppy from XP.) Then see if you can change (if it doesn't boot) the root line so it does work.

If you can get Fedora to boot, see if a "grub-install" fixes your problem.

Last edited by PTrenholme; 03-08-2006 at 09:44 AM.
 
Old 03-08-2006, 10:47 AM   #3
SMurf7
LQ Newbie
 
Registered: Feb 2004
Distribution: Debian 3.x etch (testing)
Posts: 24

Original Poster
Rep: Reputation: 0
This computer doesn't have a floppy drive.

I've tried doing:-
chroot /mnt/hda1
grub-install --recheck /dev/hda

From Knoppix also but then I get a "/dev/null: Permission denied" error.
 
Old 03-08-2006, 02:56 PM   #4
SMurf7
LQ Newbie
 
Registered: Feb 2004
Distribution: Debian 3.x etch (testing)
Posts: 24

Original Poster
Rep: Reputation: 0
Never mind, I fixed it eventually. I stopped messing with grub-install and just ran grub instead.

root (hd0,0)
setup hd0
quit

Then all I needed to do was fix my menu.lst. It turns out that XP rewrote the partition table so it is in order (Originally, although Linux was the first partition, it was listed as being hda3). This consequenly broke GRUB and even NTLDR! Now that's what I call stable software.
 
  


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
Grub Error 22, deleted partition kmorsch Linux - Newbie 29 07-09-2009 02:20 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 09:33 AM
GRUB Error, cant mount partition kofrad Linux - Software 6 09-07-2004 06:06 PM
GRUB Section2 load error, partition error. Ryle Linux - General 1 06-27-2004 03:55 PM
Grub error after partition magic Irving Linux - Software 4 06-21-2004 04:56 PM


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

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