LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-10-2007, 06:23 PM   #1
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Rep: Reputation: 15
A heap of problem, starting at error 17


If this aint the right place then i think i must be a camel. Im as newb as you can get it, not even fresh out from linux school, i dropped that class, and i regret it.

I have tried a few things i found at this forum, and other forums, but nothing seems to help.

My problem is that i get Error 17 at boot, and i cant seem to fix it, anything i do dosnt work.

I have tried this:

grub
grub> find /boot/grub/stage1
grub> root (hd0,1)
grub> setup (hd0)

Didnt work.

Tried some other in the terminal, didnt work that either.

I have 3 partitions, hda1 is the Windows XP partiotion, hda2 is the Ubuntu partition and hda3 is swap files partition.

I have also tried to make a grub floppy, mounting the floppy and running grub-install "(fd0)", got me 1 step further, to stage2. And even more stage 2 through the screen.

I am on my knees here, i dont know what to do, i have worked with this for several days now and im starting to loose hair, blood (try banging your head at a wall every 10 min) and my mind. I need help.
 
Old 05-10-2007, 08:33 PM   #2
metalx1000
Member
 
Registered: Jun 2006
Distribution: Debian
Posts: 111

Rep: Reputation: 16
I don't know how much this will help, but here we go.
I have messed up my grub a few times aswell. But, currently I'm running PCLinux 2007. Both PCLinuc and Mandriva have a very easy to use Grub Bootloader editor under there Control Center. I have fix some errors in the past by booting a live CD of PCLinux of Mandriva and useing this editor to reset my broken GRUB.

And if thatdoes not work you can always make a small partions and install Linux on it (you could even use something small like DSL). I most cases the installer will install a new Bootloader.

I don't know mush about GRUB. But, I just saw that no one had answered you and thought these maybe a solution to your problem if you need a quick fix. Although there are most likely easier and short solutions
 
Old 05-10-2007, 08:42 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,937

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
More info - when are you seeing this; at boot, or are you seeing the boot menu, and the 17 comes after making a selection ???.
 
Old 05-11-2007, 06:48 AM   #4
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
I get this right at the start, dont even get to the boot menu. I gets to stage 1.5 and then it stops. Error 17.

So i dont even get to boot menu.

I dont know if this is important, but as i understand hda is my ntfs partition, and in the device.map file HD0 is hda. Dos that have anything to do with the problem?
 
Old 05-11-2007, 07:13 AM   #5
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
hda is your first IDE disk. hda1 is the first partition on it, it's hd0,0 for GRUB.
Have you tried re-installing GRUB from Linux? The error you get means "unknown file system", I think. There may be two reasons for this error:
1. The root partition (for GRUB) is not correct. As you say hda2 is your Linux partition, so root (hd0,1) should work.
2. For some unknown reason the stage 1.5 file which was copied during initial setup was a wrong one and does not match the filesystem on hda2.
 
Old 05-11-2007, 07:22 AM   #6
mechdave
Member
 
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
Post

Try this thread at OpenFree.org
 
Old 05-11-2007, 08:26 AM   #7
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks for the trying, but it makes no sense for me. I have tried the setup thing in grub, though not in the bios but on the liveCD.

I finaly managed to make a floppy to boot grub. I thouth of trying to reinstall grub from there, but that aint gonna happen When i write find /boot/grub/stage1 i get eror 15: file not found. When i try root (hd0,1) or (hd0,0) i get error 17: cant mount something something.

So i dont know what to do anymore, nothing seems to work. If it is me that are doing something wrong or Linux fucking me behind, i dont know. But nothing seems to work.
 
Old 05-11-2007, 08:42 AM   #8
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
All you need to solve your problem is a little bit of knowledge and clear thinking. Now, what on the earth is the meaning of this:
Quote:
I have tried the setup thing in grub, though not in the bios but on the liveCD.
... or this ...
Quote:
I finaly managed to make a floppy to boot grub.
You do not boot GRUB, GRUB is the boot loader.
I'd recommend you boot up with some LiveCD, chroot and run grub-install. In case this does not fix things come back here and post output of fdisk -l and your grub.conf.
 
Old 05-11-2007, 10:00 AM   #9
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
No need to be rude here, im a noob so i dont know what i do. If i had that knowledge then i wouldnt need help would i.

With setup i ment i have tried the setup (ho0) command in grub, through the shell with the liveCD (i think it is, terminal->sudo grub) and there where no errors there but it didnt solve the problem.

As i saied, i dont know mutch what i do. I manage to make a floppy with grub, and used it to start the command prompt for grub, but i could do little there.

I have also tried grub-install but i dont know how i use it at any point and all my search for documentation has failed. I dont know what to do.

Im no expert on this system, i have just started it. Im sorry if it offends anyone that im a noob.
 
Old 05-11-2007, 10:23 AM   #10
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
Quote:
I'd recommend you boot up with some LiveCD, chroot and run grub-install. In case this does not fix things come back here and post output of fdisk -l and your grub.conf.
You need to tell us clearly what commands you issued and what error messages did you get, if any. If you can't do that, how do you expect us to help you? We are not standing behind you and watching over your shoulder.
 
Old 05-11-2007, 10:53 AM   #11
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Thats one of my problems, i get error 17 at booting and other then that i dont get any errors. When i tried to rund grub-install i just gut a error telling me i had to specify a folder, and since i dont know how this works im stuck.

Im at work atm, so i will post the fdisk -l result when i get back home.

How do i read my grub.conf file?
 
Old 05-11-2007, 11:01 AM   #12
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
OK. Meanwhile, www.google.com/linux is at your disposal. How about going there and doing a search for keywords chroot and grub-install? I'm sure it will bring up lots of useful hits.
chroot+grub-install

Edit: Here's the path to grub.conf: /boot/grub/grub.conf

Last edited by Emerson; 05-11-2007 at 11:07 AM.
 
Old 05-11-2007, 11:44 AM   #13
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Google has been my friend for thes past days, how do you think i ended up here. Google.

about that path, do i just write it in the terminal or is there any other command or thing i have to do to open it?
 
Old 05-11-2007, 11:53 AM   #14
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
You can use the path and filename as command line argument:

less /boot/grub/grub.conf

Followed by Enter it will open the file in a file viewer (less).

Now, assuming you have GUI running, from terminal window:

gedit /boot/grub/grub.conf

Again, followed by Enter it will open the file in a GUI editor program (gedit). If you do it as regular user it will open in read-only mode, this file is to be modified by root only.
 
Old 05-11-2007, 01:51 PM   #15
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,937

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
As for grub.conf, it was a ridiculous attempt by some distros to "fix" grub. Better off looking for menu.lst (list without the "i").

The things you mention in post #1 should have resolved the problem - you aren't doing this on a Core Duo by any chance ???.
 
  


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
apache2 heap overflow error ? jalfaro Linux - Software 0 06-29-2006 03:43 PM
heap or stack yashwantpinge Programming 1 03-17-2006 08:25 AM
Is array allocated on heap set to zero? nibbler Programming 3 12-14-2005 03:55 AM
increasing heap size podollb Linux - Software 3 03-07-2005 12:42 AM
Modifying the heap available to a process exitsfunnel Linux - Software 0 12-10-2003 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration