Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub once again.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
nempo
Guru
Guru


Joined: 16 Apr 2002
Posts: 360
Location: Linkoping, Sweden

PostPosted: Mon Nov 18, 2002 11:04 pm    Post subject: grub once again. Reply with quote

I'm trying to install grub on a hdd with one partition, the partition is a 32Mb big ext2. Since this is/will be a mini-install I'm installing grub on the hdd on another computer. On the computer that installs grub the hdd sits as /dev/hdc and the 32Mb partition being /dev/hdc1.
I have tried to install grub doing the following:

#grub
>root (hd1,0)
>setup (hd1)
>quit

But when trying to boot this hdd in its home grub spits out 'Grub hard drive error' or something similar. In Vmware, it prints Grub then hangs.

The /boot/grub/ dir looks like this on the 32Mb partition:
/boot/grub/...
...e2fs_stage1_5
...grub.conf
...menu.lst -> grub.conf
...stage1
...stage2

.../../bzImage


PS. I did get it to work when I turned of LBA on the drive but then seeing how I was always greeted by the grub prompt I tried to reinstall grub. To my horror the pre-LBA errors returned.

Any help is appreciated.
Back to top
View user's profile Send private message
Beforegod
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 1492
Location: Österreich

PostPosted: Tue Nov 19, 2002 7:38 am    Post subject: Reply with quote

root(hd1,0)
find /boot/grub/stage1
setup (hd1)
this is the way it should work ..
_________________
iGentoo auf iMac (anno 2007)
Back to top
View user's profile Send private message
nempo
Guru
Guru


Joined: 16 Apr 2002
Posts: 360
Location: Linkoping, Sweden

PostPosted: Tue Nov 19, 2002 3:42 pm    Post subject: Reply with quote

Beforegod wrote:
root(hd1,0)
find /boot/grub/stage1
setup (hd1)
this is the way it should work ..


Yes, I know it 'should' work but unfortunately it dosn't.

#grub
>find /boot/grub/stage1
(hd0,1)
(hd1,0)
Back to top
View user's profile Send private message
Rajesh
n00b
n00b


Joined: 12 Nov 2002
Posts: 14

PostPosted: Tue Nov 19, 2002 4:44 pm    Post subject: Boot partition Reply with quote

Some ideas:

    Boot from a floppy to see if the boot process goes through completely.


    Try making a small boot partition separate from your root partition
    and keeping your kernel bzImage and /boot stuff in there. On older
    systems, the BIOS boot loader responsible for launching your hard disk
    boot manager has problems reading beyond a few KB/MB of your hard drive.
    Having /boot as your very first partition of a small enough size to
    accomodate your kernel and grub files would overcome this limitation.


    Is there anything else about your hardware that you can share? how old
    is the BIOS, motherboard, IDE, harddrive, etc?


    I would also check if there is a flash update available for your BIOS.


Good luck.
Back to top
View user's profile Send private message
nempo
Guru
Guru


Joined: 16 Apr 2002
Posts: 360
Location: Linkoping, Sweden

PostPosted: Tue Nov 19, 2002 5:03 pm    Post subject: Reply with quote

the 32MB partition is the only thing on the hdd, it is located at the very beginning of the drive so a seperate boot partition should'nt be needed.
I have no idea what the name of the mobo is , the only thing I can find printed on it that resembles a name is '5V-1A' (5 volt, 1 amp ?) and to the right of that it says 'VER 2.0'. When booting the computer the bios displays the mobos name as '#J1-002' and the bios is of type 'Award modular BIOS' version '4.51PG'. The hdd is a 'Western digital Caviar 22500' if I'm reading it correct.

The chipset are VT82C585VPX and VT82C586A.
Back to top
View user's profile Send private message
Rajesh
n00b
n00b


Joined: 12 Nov 2002
Posts: 14

PostPosted: Tue Nov 19, 2002 6:26 pm    Post subject: Boot partition Reply with quote

The problem is that unless a separate partition has been defined at the
beginning of the hdd for /boot, there is no guarantee that the /boot
directory (and the kernel) data physically resides in the beginning of
your single partition.

Also, since this is your only hdd, in your GRUB setup, you would need to
refer to the partition as (hd0,0) instead of (hd1,0). You can use GRUB's
tab completion command if you can get that far:

On boot, when you see the GRUB main screen, hit 'e' couple of times or 'c' to get to the
GRUB command line. Then, type "root (hd" and hit TAB. This will show you
available partitions.


Trying to boot from a floppy (or a CD) would help you in narrowing this problem
down, I think.
Back to top
View user's profile Send private message
nempo
Guru
Guru


Joined: 16 Apr 2002
Posts: 360
Location: Linkoping, Sweden

PostPosted: Tue Nov 19, 2002 11:37 pm    Post subject: Reply with quote

It is the only hdd in the computer in which it will reside, it is not the single hdd in which it is atm and hence why it is labeled as (hd1,0) by grub.
I can boot just fine by using the grub I have installed on (hd0,0) by typing 'root (hd1,0)', 'kernel /boot/bzImage root=/dev/hdc1' and 'boot' but this dosn't help me.
Back to top
View user's profile Send private message
nempo
Guru
Guru


Joined: 16 Apr 2002
Posts: 360
Location: Linkoping, Sweden

PostPosted: Wed Nov 20, 2002 12:18 am    Post subject: Reply with quote

I just got lilo installed and it seems to boot just fine, both in vmware and live.
I'm not touching anything related to boot-loaders on this hdd from now on, don't want to break anything. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum