LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-12-2003, 04:55 AM   #1
Infinite_Pizza
Member
 
Registered: Mar 2003
Posts: 47

Rep: Reputation: 15
Question does anyone know what this means ?


i am having trouble booting GRUB through hard disk
it lockup when it reach loading GRUB stage2 .......

/ 2.9GB hda1
/swap 109MB hda5
/home 2.9GB hda6

when I do this (trying to install the grub again)

$grub-install /dev/hda
i get this error message
/dev/ide/host0/bus0/target0/lun0/part1 doesn't have any corresponding BIOS drive

but in device.map it has
(hd0) /dev/hda
(fd0) /dev/fd0

What does all of there mean ?

ps. i done
grub --batch --device-map=dev/null <<EOF
>device (fd0) /dev/fd0
>root (fd0)
>setup (fd0)
>quit
>EOF

when I boot from floppy it still hang , but at least it better than booting from harddrive because I get more "dots" at the end of the loading GRUB stage2

I then try the same with hard drive with ;
grub>device (hd0) /dev/hda
grub>root (hd0,0)
grub>setup (hd0,0)

i still can't boot the harddrive as well

Can anyone help me with this ?? =*( been stucked here for like forever .............

I think the last resort is build from source, but I am not confident with the build from source steps can any one help me a bit to finish this build process ?

here is what I had in mind so far

zcat grub-0.92.tar.gz | tar xvf -
cd grub-0.92
./configure
make
make install
make clean

is that all I need or do I need some special patch from mandrake (which is what i am using) or (binutils, gas, and ld) ??? whatelse am I missing ?

then what happen do i have to do :
install /boot/grub/stage1 -d (hd0,0) /boot/grub/stage2 -p /boot/grub/menu.lst 0x8000
?? or all have been auto config already ?
 
Old 03-12-2003, 04:17 PM   #2
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
download the grub package and read the install file this will tell you what to do to install it the most common commands for install from source are ./configure, make, make install, but always read the install file as this can vary from program to program
 
Old 03-12-2003, 04:22 PM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
If you aren't on another arch than i386 you could download the binary package which is provided here
 
Old 03-14-2003, 01:50 AM   #4
Infinite_Pizza
Member
 
Registered: Mar 2003
Posts: 47

Original Poster
Rep: Reputation: 15
Maybe I am a bit stubber but I had decide to give it a 2nd go b4 I compile GRUB, because from past experience i will run into problrm while compiling stiuff d

I decide to install mandrake again and this time I set the partition as follow

/boot 50MB hda1
/ 2.9GB hda5
/swap 109MB hda6
/home 2.9GB hda7

and I get through to stage 2 but stucked whenI select the linux to boot up at the grub menu with this error message :
kernel (hd0,0)/vmlinuz root=/dev/hda5 devfs=mount
Error 13 : Invalid or unsupported executable format

So I use the boot disk to boot up into desktop and run the GRUB shell and guess what It work in the GRUB shell ??!!?? what's going on ?

=======================================
The following is what I do in the shell :
grub> root (hd0,
Possible partitions are:
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
Partition num: 5, Filesystem type unknown, partition type 0x82
Partition num: 6, Filesystem type is ext2fs, partition type 0x83

grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "install /grub/stage1 (hd0,0) /grub/stage2 p /grub/menu.lst "... succeeded Done.

grub> kernel (hd0,0)/vmlinuz root=/dev/hda5
[Linux-bzImage, setup=0x1400, size=0xd58da]
grub> initrd (hd0,0)/initrd.img
[Linux-initrd @ 0x3d1000, 0x1e649 bytes
grub> boot
and it just exit to the normal xterm shell so I assume it works
====================================

The following are some informations in the system:
$ more /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/hda
$ mount
/dev/hda5 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev type devfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,mode=0620)
none on /mnt/cdrom type supermount (ro,dev=/dev/hdd,fs=auto,--,iocharset=iso8859-1,codepage=850,umask=0)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,codepage=850,umask=0)

$ more /boot/grub/menu.lst

timeout 10
color black/cyan yellow/cyan
i18n (hd0,0)/grub/messages
keytable (hd0,0)/us.klt
altconfigfile (hd0,0)/grub/menu.once
default 0

title linux
kernel (hd0,0)/vmlinuz root=/dev/hda5 devfs=mount
initrd (hd0,0)/initrd.img

title floppy
root (fd0)
chainloader +1

title failsafe
kernel (hd0,0)/vmlinuz root=/dev/hda5 devfs=nomount failsafe
initrd (hd0,0)/initrd.img
 
Old 03-14-2003, 04:58 AM   #5
Infinite_Pizza
Member
 
Registered: Mar 2003
Posts: 47

Original Poster
Rep: Reputation: 15
Just for clarification I had try this in GRUB command line at the start of the boot:

root (hd0,0)
setup (hd,0)
the output is the same as what is shown in the GRUB shell but after this it's like no way GRUB know where vmlinuz and initrid.img is I tried :

kernel (hd0,0)/vmlinuz
error 13: Invalid or unsupported executable format

kernel (hd0,0)/boot/vmlinuz |
kernel (hd0,0) /boot/vmlinuz |All get error 1 filename must be either
kernel (hd0,0)vmlinuz |an absolute pathname or blobk list


kernel (hd0,0)vmlinuz error 1
 
Old 03-15-2003, 02:41 AM   #6
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
Is your HDD setup correctly in the BIOS? Make sure it is! Everybody seems to stumble across this problem. When your system is starting up, press the DEL key like you'd press a crosswalk button, and you'll be into your system configuration - the core of your computer's hardware setup. Look around for a selection called "Advanced BIOS Settings", and see if your second hard drive it set up properly. If it lists "none", autodetect it man! And your problem's solved.
 
Old 03-16-2003, 08:29 PM   #7
Infinite_Pizza
Member
 
Registered: Mar 2003
Posts: 47

Original Poster
Rep: Reputation: 15
I checked the section about fixdisk isn't at advance bios (my BIOS is make accessable via the old "Ctrl+alt+shift+tab+esc)

but I had found the fixdisk somewhere and it's is in auto but ....
it shows Fix disk 1 "101MB"
fix disk auto
fixdisk 3 auto
fixdisk 4 auto

fixdisk 1 and 2 are gray out and I have no idea where that 101 mb get there <--- I only have one fix disk 6gm installed

I don't think that's the problem though because when I try to do this :
kernel (hd0,0)/ then |TAB
I all the files in the /boot directory even the vmlinuz, first I think the file is broken or something so I try to copy the vmlinuz from floppy to the /boot and try again but still no luck still the not executable file ..... I am thinking that if I change the file with chmod command to make it read and write and executable,I hasn't try it yet .... but woun't that make the system insecure to outside ?
 
Old 10-14-2003, 05:06 AM   #8
colyn
LQ Newbie
 
Registered: Oct 2003
Location: taloto
Posts: 1

Rep: Reputation: 0
hi guys,

tell me how to get my c shell and how to use it.


colynz...
 
Old 10-14-2003, 05:15 AM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Colyn

Please don't hijack another members thread. Please start a new thread under your own name in the correct forum.

You will need to fully explain your problem.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can someone please tell me what this means... :) xbill311x Linux - Newbie 7 05-11-2005 06:37 AM
Does anyone know what this means? mrchaos Slackware 8 04-23-2005 01:32 PM
Help what does it means.. jhar Linux - Newbie 1 02-16-2005 01:44 AM
does anyone know what this means? macewan Linux - Hardware 4 02-10-2004 10:35 AM
Could someone please tell me what this means!!!!! brianm Programming 1 03-27-2001 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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