Page 1 of 1
Grub not detecting hard drive
Posted: Thu Feb 26, 2004 3:15 pm
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
Re:Grub not detecting hard drive
Posted: Thu Feb 26, 2004 3:35 pm
by ASHLEY4
I have not used GRUB, but i think it works with CHS & LBA.
ASHLEY4.
Re:Grub not detecting hard drive
Posted: Thu Feb 26, 2004 4:28 pm
by Pype.Clicker
how exactly do you invoke the 'root' command ? afaik, it should be something like 'root (hd0)' or 'root(hd0,0)' ...
Re:Grub not detecting hard drive
Posted: Fri Feb 27, 2004 2:17 am
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)
Re:Grub not detecting hard drive
Posted: Fri Feb 27, 2004 2:41 am
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.
Re:Grub not detecting hard drive
Posted: Fri Feb 27, 2004 2:47 am
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
Re:Grub not detecting hard drive
Posted: Fri Feb 27, 2004 3:03 am
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.
Re:Grub not detecting hard drive
Posted: Fri Feb 27, 2004 4:22 am
by iyg
if there is only one partition, what is grub for ?
fat16, no swap, no linux ?
Re:Grub not detecting hard drive
Posted: Fri Feb 27, 2004 4:44 am
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 ...
Re:Grub not detecting hard drive
Posted: Fri Feb 27, 2004 5:52 am
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?
Re:Grub not detecting hard drive
Posted: Fri Feb 27, 2004 8:28 am
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.
Now I can just get on with my kernel.
srg
Re:Grub not detecting hard drive
Posted: Fri Feb 27, 2004 8:33 am
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.