Grub not detecting hard drive

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
srg

Grub not detecting hard drive

Post by srg »

Hi

On one particular machine, I'm having trouble with installing grub on it's hard drive.

The machine is a Toshiba T2130CS laptop with a 527MB hard drive and as far as I know neither the drive or the BIOS supports LBA.

When I try to install GRUB on the drive, or even just use the root command (from a non file system grub floppy) I just get:

Error 22: No Partition

The drive has 1 FAT16 partition spanning the whole disk.

Thanks
srg
ASHLEY4

Re:Grub not detecting hard drive

Post by ASHLEY4 »

I have not used GRUB, but i think it works with CHS & LBA.
ASHLEY4.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Grub not detecting hard drive

Post by Pype.Clicker »

how exactly do you invoke the 'root' command ? afaik, it should be something like 'root (hd0)' or 'root(hd0,0)' ...
srg

Re:Grub not detecting hard drive

Post by srg »

Pype.Clicker wrote: how exactly do you invoke the 'root' command ? afaik, it should be something like 'root (hd0)' or 'root(hd0,0)' ...
root(hd0,0)
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Grub not detecting hard drive

Post by Solar »

I know this is a long shot, but perhaps your system doesn't have a primary partition (and boots from (hd0,4) or something like that.

While you're on the GRUB shell, you can use the "cat" command to "search" for partitions. (Saves you going through boot cycles.) Type "cat (hd0,x)/" and hit the TAB key; if you hit the right partition you should be presented with a listing of the partition.
Every good solution is obvious once you've found it.
srg

Re:Grub not detecting hard drive

Post by srg »

Solar wrote: I know this is a long shot, but perhaps your system doesn't have a primary partition (and boots from (hd0,4) or something like that.

While you're on the GRUB shell, you can use the "cat" command to "search" for partitions. (Saves you going through boot cycles.) Type "cat (hd0,x)/" and hit the TAB key; if you hit the right partition you should be presented with a listing of the partition.
I get Error11: Unrecongnised device string

It does have 1 primary partition and no extended partitions
srg

Re:Grub not detecting hard drive

Post by srg »

Weired

I deleted the partition and put on a new one, again primary FAT16 and 502MB and it worked

I'm guessing grub just didn't like that partition for some reason.
iyg

Re:Grub not detecting hard drive

Post by iyg »

if there is only one partition, what is grub for ?
fat16, no swap, no linux ?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Grub not detecting hard drive

Post by Pype.Clicker »

iirc, some old DOS installations could live without a MBR and used the whole disk as if it was a partition ... i'm unsure about it, though ...
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Grub not detecting hard drive

Post by Solar »

iyg wrote: if there is only one partition, what is grub for ?
You can boot different operating systems off the very same partition, you know? Take your average Linux installation, which usually has more than one kernel in /boot. Or perhaps he wants to load - *gasp* - his own OS kernel off his FAT partition?

Doesn't matter. He had an issue with installing GRUB on his HD, and we tried to help him. Why is it important what he needs it for?
Every good solution is obvious once you've found it.
srg

Re:Grub not detecting hard drive

Post by srg »

iyg wrote: if there is only one partition, what is grub for ?
fat16, no swap, no linux ?
Grub is not just an os multibooter (Like say Bootmagic is), you can use grub as part of your OSs boot process (a lot of us do).

Before I used grub, I was making my own chain loader but I got bogged down. With grub, I don't have to worry about loading in my kernel and swithing to pmode, as grub does this for me. :D Now I can just get on with my kernel.

srg
srg

Re:Grub not detecting hard drive

Post by srg »

Pype.Clicker wrote: iirc, some old DOS installations could live without a MBR and used the whole disk as if it was a partition ... i'm unsure about it, though ...
I haven't come across that before! Anyway before this, the machine was running Windows 95 OSR2, I had just formatted the partition using my Win98SE boot disk.

Anyway all's well that ends well.
Post Reply