LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-12-2007, 07:09 AM   #31
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15

Still a error 17. But i have been thinking something.

Dosnt hda stands for the first partition? And if so, hd0 is the ntfs partition, wich i dont have any linux on. And dosnt hda1 stand for the second partition? If so, then should i try to get hd0 to stand for the hda1 instead of hda? Or am i on a total wrong way here?
 
Old 05-12-2007, 07:50 AM   #32
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Grub name disks as

(hd0)
(hd1)
(hd2)

and partitions, say in the 2nd disk

(hd1,0)
(hd1,1)
(hd1,2) and so on.

If you arrange the first booting device hda, which is the master disk hooked to the primary IDE cable, then the Bios will inform Grub hda is your (hd0). Similarly you can ask the BIos to boot sda first to take over the (hd0) position.

Basically the user control the (hd0) by nominating it as the first bootable disk. hda, sda etc are related to the physical connection points to the mobo but sata, scsi and USb disks all use sda, sdb etc and the naming convention depends on the number of devices hooked.

Grub counts everything from 0.

There is no better way to get information from the mouth of the horse and so you can in a Grub prompt type
Code:
geometry (hd0)
geometry (hd1)
geometry (hd2)
geometry (hd3)
until Grub reports no more disk.

The geometry command instructs Grub to list the partition details of the disk at the order it sees. NTFS partition has Type No 7 and Linux has 83 with 82 for swap. Looking the content of the disks you will have the absolute information what each disk is in the booting queue.

Last edited by saikee; 05-12-2007 at 07:56 AM.
 
Old 05-12-2007, 10:11 AM   #33
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
I will test that, but i have 1 question.

I ran sudo grub in the terminal, got the grub prompt.

So i ran find /boot/grub/stage1.

The result i got was "hd(0,1). If i understand right, this means that the boot disk is sett to the 1 partition on the first harddrive, where hd (0,0) would mean the main drive (or something like that).

So then i typed root (hd0,1) and got something like ext2fs 0x83 then i ran setup (hd0). Though this didnt work. Should i have used the makeactive command as so many pages say i should, and chainload +1?

I think im about to learn something and finaly make the bootloader work as it should, but in not quit there yet.
 
Old 05-12-2007, 10:38 AM   #34
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I think there is something else wrong. Maybe the way your BIOS treats the HDD - have you latest BIOS? Maybe your Linux partition is just too far from beginning of the HDD. In this case a small separate boot partition in the beginning of the HDD would help. (I'm not a GRUB expert, never had a problem with it, consequently never had to go in depth with it.)
 
Old 05-12-2007, 10:59 AM   #35
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
I dont have the latest bios i think. I have a Fujitsu siemens computer, so i have not checked after bios updates for it.

I think i read somewhere that you could innstall grub to a floppy and use that as a bootloader. Though i have not managed to make one. Dont remember where i read that either.

As for the geometry command, this is the resault:

drive 0x80: C/H/S = 19457/255/63, The number of sectors = 312581808, /dev/hda
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 1, Filesystem type is ext2fs, partition type 0x83
Partition num: 2, Filesystem type unknown, partition type 0x82
 
Old 05-12-2007, 11:25 AM   #36
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You do not have LBA turned on, this may (or may not) contribute to your problem.
 
Old 05-12-2007, 11:59 AM   #37
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
(hd0,1) means the 2nd partition of the 1st disk.

According to Post #35 it is the Linux partition with Type 83.

The hard disk is a hda which mean it is a Pata. It has 255 heads and 63 sectors and that is pretty standard.

Error 17 in Grub is can't mount the partition.

This is what I would do to tackle it.

On booting up a Grub screen, assuming you do have one I would press "c" key immediately to drop into a Grub prompt.

I can then either try to run Grub's configuration file by command
Code:
root (hd0,1)
configfile /boot/grub/menu.lst
Grub should load this file which if error free will fire up the Linux.

It it doesn't then I would ask Grub to display the content of it by
Code:
cat (hd0,1)/boot/grub/menu.lst
I would then type in the command line by line to boot it manually. This way if Grub is stuck then the line that causes the problem will be identified. After the last line, which should be the "initrd" statement, has been enter you need to add
Code:
boot
as the green light to Grub to fire up the system. The "boot" statement is not needed if booting automatically from a hard disk.

Post the /boot/grub/menu.lst here if you still have a problem.

In any case in a Grub prompt I expect the XP will be fire up by command
Code:
root (hd0,0)
makeactive
chainloader +1
boot
If XP fires up then it tells us your Grub is good.

Last edited by saikee; 05-12-2007 at 12:01 PM.
 
Old 05-13-2007, 06:43 AM   #38
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Im now back at Windows, the root (hd0,0), makeactive, chainloader +1 boot thing worked. But im still not done yet.

When i enterd rood (hd0,1 in the grub prompt at start i got "selected cylinder exceed maximum supported by bios".

And another questions, should i now try to install grub through windows instead?
 
Old 05-13-2007, 06:59 AM   #39
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
The problem is not GRUB or Linux. See again post #34 and #36.
 
Old 05-13-2007, 07:07 AM   #40
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Hm, ok. So you spoke of LBA, i dont know quit what that is. I will also try to see if i might find a updates version of the BIOS my computer is running on.
 
Old 05-13-2007, 08:49 AM   #41
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Logical Block Addressing
Currently your GRUB files are located in HDD area which is not accessible for BIOS, thus not accessible for GRUB, too.
LBA can be turned on in the BIOS setup. If your BIOS cannot see the full capacity of your HDD then the only solution is to re-partition the hard disk and create a small 30 MB partition for /boot.
 
Old 05-13-2007, 10:29 AM   #42
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
OK, think i have made some progress here. I went into the bios, found the cmos options, and the options for my primary disk. Sett that to manual and chosed from the list LBA.

Though, when i start the computer with a floppy with grub, and get into the grub command prompt, i still get the "Selevted cylinder exceed maximum supportet by bios" even though i have LBA turned on. Though i tried some commands (setup hd0) and now i get grub read error.

Hey, i managed to change the error messege, now its not 17 anymore, now it just plaine cant read the goddam thing. Man im full of good luck
 
Old 05-13-2007, 10:53 AM   #43
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
What's the disk size as BIOS sees it? Does it match the real capacity of your HDD?
 
Old 05-13-2007, 11:06 AM   #44
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
If i remember correct the BIOS stated my HDD to be 138 Gb, though it is 150 gb. But non of those options made a correct "entry" of the sice, it was either 138 or 160.
 
Old 05-13-2007, 11:15 AM   #45
bear^
LQ Newbie
 
Registered: May 2007
Posts: 24

Original Poster
Rep: Reputation: 15
IT WORKS!!!

I dont know what i did, how i did it or what the freaking happend. I went into the Bios again, selected Auto and LBA, rebooted and like a angle it poped up with the boot menu.

IT WORKS!!

Thanks a million times for the help, i cant explaine how happy i am right now. The boot menu workes now, it boots, everything works.

WOHO!!!!
 
  


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

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

All times are GMT -5. The time now is 02:22 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