LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices


Reply
  Search this Thread
Old 10-07-2007, 02:46 AM   #1
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Rep: Reputation: 30
Grub error 17


Hi,

I have been wrestling with this for a couple of days now.

I have used the Universal Installer to put Puppy on /dev/hda3 which has ext3.

When I reboot I get the following:

Quote:
GRUB Loading stae 1.5.

GRUB loading, please wait...
Error 17
and then it hangs.

I believe that error 17 indicates that Grub cannot mount the selected partition.

My /boot/grub/menu.1st looks like this:
Quote:

title W98 (on /dev/hda1)
rootnoverify (hd0,0)#I realise this should probably be just 'root'
makeactive
chainloader +1

title Puppy (on /dev/hda3)
root (hd0,02)
kernel /boot/vmlinuz root=/dev/hda3 ro vga=normal
If I run 'grub-install /dev/hda3', I get '/usr/lib/grub/i386-t2/stage1: Not Found'

So I symlink '/usr/lib/grub/i386-t2/' to '/usr/lib/grub/i386-pc/' which gives me the following when I run grub-install again:

Quote:
Could not find device for /boot: Not found or not a block device.
Can anyone help?
 
Old 10-07-2007, 03:07 AM   #2
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Hmm.

The Last post on this thread http://sudan.ubuntuforums.com/showthread.php?p=2743021
refers to Partition Magic corrupting the MBR. (The link to the wiki in the same post did not help, however)

It looks like the only answer is to scrub the Hard Drive and start again....
 
Old 10-07-2007, 03:20 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
You should never need to do that. From a (linux) terminal/console let's see the output from "fdisk -l"; you may need to be root.
 
Old 10-07-2007, 03:35 AM   #4
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Well my fdisk -l output is as follows
Quote:

Disk /dev/hda: 80.0GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 255 2048256 b W95 FAT32
/dev/hda2 256 2624 19028992+ 83 Linux
/dev/hda3 2625 6177 28539473+ 83 Linux
/dev/hda4 6178 9729 28531440 f W95 Ext'd (LBA)
/dev/hda5 9469 9729 2096482+ 82 Linux swap / Solaris
/dev/hda6 9407 9467 489257+ 83 Linux

Partition Tables are not in disk order
I can't see too much wrong there, can you?
 
Old 10-07-2007, 03:49 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I prefer the "native" grub commands rather than the grub-install wrapper. Try this
Code:
grub
root (hd0,2)
setup (hd0)
Then reboot.
 
Old 10-07-2007, 04:06 AM   #6
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Quote:
root (hd0,2)
Filesystem type is ext2fs, partition type 0x83

setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed "/boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install "/boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,2)/boot/grub/stage2 /boot/grub/menu.1st"... succeeded
Done.
Grub Error 17 still occurs as previously.

The more I think about it the more I think that Partition Magic is responsible.
 
Old 10-07-2007, 04:17 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
No, PM screws things in other ways. Change the "root (hd0,02)" in menu.lst to "root (hd0,2)" and try again.
 
Old 10-07-2007, 04:24 AM   #8
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by syg00 View Post
No, PM screws things in other ways. Change the "root (hd0,02)" in menu.lst to "root (hd0,2)" and try again.
That was a typo by me (the puppy machine doesn't have a network connection and I'm transcriping from one machine to another)
 
Old 10-07-2007, 05:00 AM   #9
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Okay, I'm not wasting any more time on this.

I'm going to "dd if=/dev/zero of=/dev/hda bs=512 count=1" and start again.
 
Old 10-07-2007, 04:17 PM   #10
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
I've zeroed the hard drive and reinstalled everything.

It now works.

I suspect it was caused by Partition Magic...
 
  


Reply



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 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Error Grub stage2 loading error (using FC6) on seperate hdd Anifield Linux - Newbie 7 03-20-2007 01:14 PM
GRUB Error 26: Disk Read Error (using grub4dos and ubuntu) Dark_Master Linux - Newbie 2 11-07-2006 11:58 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

All times are GMT -5. The time now is 04: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
Open Source Consulting | Domain Registration