Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

grub problem ( hda does not have corresponding BIOS drive )

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
19 posts • Page 1 of 1
Author
Message
StarF
Guru
Guru
Posts: 368
Joined: Sun Sep 12, 2004 4:55 pm
Contact:
Contact StarF
Website

grub problem ( hda does not have corresponding BIOS drive )

  • Quote

Post by StarF » Fri Dec 15, 2006 4:47 pm

Hi

i am tryingt to set up my amd64 server with gentoo... how ever i am having some isues with grub.. when i do a grub-install i get:

Code: Select all

livecd / # grub-install /dev/hda
/dev/hda does not have any corresponding BIOS drive.
livecd / #

Code: Select all

livecd / # ls /dev
bus       hda2     loop7   ram15   stdin   tty19  tty33  tty48  tty62    vcs5
cdrom     hda3     mapper  ram2    stdout  tty2   tty34  tty49  tty63    vcs6
cdrom1    hdc      mem     ram3    synth   tty20  tty35  tty5   tty7     vcsa
console   initctl  misc    ram4    tts     tty21  tty36  tty50  tty8     vcsa1
core      input    null    ram5    tty     tty22  tty37  tty51  tty9     vcsa12
disk      kmem     port    ram6    tty0    tty23  tty38  tty52  ttyS0    vcsa2
dvd       kmsg     psaux   ram7    tty1    tty24  tty39  tty53  ttyS1    vcsa3
fb        log      ptmx    ram8    tty10   tty25  tty4   tty54  ttyS2    vcsa4
fb0       loop     pts     ram9    tty11   tty26  tty40  tty55  ttyS3    vcsa5
fbsplash  loop0    ram0    random  tty12   tty27  tty41  tty56  urandom  vcsa6
fd        loop1    ram1    rd      tty13   tty28  tty42  tty57  vcs      zero
fd0       loop2    ram10   rtc     tty14   tty29  tty43  tty58  vcs1
floppy    loop3    ram11   sda     tty15   tty3   tty44  tty59  vcs12
full      loop4    ram12   sda1    tty16   tty30  tty45  tty6   vcs2
hda       loop5    ram13   shm     tty17   tty31  tty46  tty60  vcs3
hda1      loop6    ram14   stderr  tty18   tty32  tty47  tty61  vcs4
livecd / #
any one got any idea on what´s wrong here?
Top
xoomix
Guru
Guru
User avatar
Posts: 489
Joined: Thu Jan 02, 2003 7:30 am

  • Quote

Post by xoomix » Fri Dec 15, 2006 5:15 pm

Have you yet tried an equivalent solution like:

# grub-install /dev/hd0
or
# grub-install '(hd0)'
or
grub-install --root-directory=/boot /dev/hda

??
Top
StarF
Guru
Guru
Posts: 368
Joined: Sun Sep 12, 2004 4:55 pm
Contact:
Contact StarF
Website

  • Quote

Post by StarF » Fri Dec 15, 2006 5:24 pm

Code: Select all

livecd / # grub-install /dev/hd0
/dev/hd0: Not found or not a block device.
livecd / #

Code: Select all

livecd / # grub-install --root-directory=/boot /dev/hda
/dev/hda does not have any corresponding BIOS drive.
livecd / #

Code: Select all

livecd / # grub-install '(hd0)'
/dev/hda1 does not have any corresponding BIOS drive.
livecd / #

i have now? :P
Top
xoomix
Guru
Guru
User avatar
Posts: 489
Joined: Thu Jan 02, 2003 7:30 am

  • Quote

Post by xoomix » Fri Dec 15, 2006 5:57 pm

What if you do it the other way?

1. # grub
GNU GRUB version 0.97 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub> root (hd0, -- at this point hit TAB to command line complete to see what GRUB can see

then if you can see the right partitions, etc. do a

grub> setup (hd0) -- or whatever it found and you can confirm is the first HD

grub> quit

#
Top
StarF
Guru
Guru
Posts: 368
Joined: Sun Sep 12, 2004 4:55 pm
Contact:
Contact StarF
Website

  • Quote

Post by StarF » Fri Dec 15, 2006 6:31 pm

if i press tab the curser just moves to the right of the screen.. dosent seem completion is enabled?
Top
xoomix
Guru
Guru
User avatar
Posts: 489
Joined: Thu Jan 02, 2003 7:30 am

  • Quote

Post by xoomix » Fri Dec 15, 2006 6:35 pm

So you type in 'root (hd0,TAB and it doesn't complete? That is messed up. This is built into GRUB, and there's no "installing" or "un-installing" this feature. So like your earlier post shows, GRUB can't see the darned disk(s). I'd start at the BIOS level and see what's going on. Is this a very old BIOS? Is it a LARGE hard drive? Some older bios's have issues with large HD's. Can the BIOS be updated?
Top
StarF
Guru
Guru
Posts: 368
Joined: Sun Sep 12, 2004 4:55 pm
Contact:
Contact StarF
Website

  • Quote

Post by StarF » Fri Dec 15, 2006 6:38 pm

no it just moves the curcer to the right.... on the screen.. i am using ssh thought.... as i dont have any way to work where the server is....

its 2 years old and the drive is a 60gb drive.. so shouldent be a problem there.... and the bios is updated to the newest release.
Top
StarF
Guru
Guru
Posts: 368
Joined: Sun Sep 12, 2004 4:55 pm
Contact:
Contact StarF
Website

  • Quote

Post by StarF » Fri Dec 15, 2006 6:46 pm

how ever if i do this i get:

Code: Select all

grub> root (hd0,0)
root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83
grub>
Top
xoomix
Guru
Guru
User avatar
Posts: 489
Joined: Thu Jan 02, 2003 7:30 am

  • Quote

Post by xoomix » Fri Dec 15, 2006 6:47 pm

SSH is fine, it still works fine like that. My opinion is, without physical access to the system so that you can view cabling/bios settings, boot orders, etc. you're kinda stuck in the mud.
Let's see if anyone else pipes in here with some info.
Top
StarF
Guru
Guru
Posts: 368
Joined: Sun Sep 12, 2004 4:55 pm
Contact:
Contact StarF
Website

  • Quote

Post by StarF » Fri Dec 15, 2006 6:49 pm

xoomix wrote:SSH is fine, it still works fine like that. My opinion is, without physical access to the system so that you can view cabling/bios settings, boot orders, etc. you're kinda stuck in the mud.
Let's see if anyone else pipes in here with some info.
alright tnx.. gonna try to do it manualy thought and see if that works
Top
StarF
Guru
Guru
Posts: 368
Joined: Sun Sep 12, 2004 4:55 pm
Contact:
Contact StarF
Website

  • Quote

Post by StarF » Fri Dec 15, 2006 6:54 pm

and it dident.....
Top
StarF
Guru
Guru
Posts: 368
Joined: Sun Sep 12, 2004 4:55 pm
Contact:
Contact StarF
Website

  • Quote

Post by StarF » Fri Dec 15, 2006 8:01 pm

alright got my hands on the server and set the drive as hdc and now it works.. realy odd tnx for your help on this!
Top
xoomix
Guru
Guru
User avatar
Posts: 489
Joined: Thu Jan 02, 2003 7:30 am

  • Quote

Post by xoomix » Fri Dec 15, 2006 8:03 pm

Very cool yippee for you! :)
Top
StarF
Guru
Guru
Posts: 368
Joined: Sun Sep 12, 2004 4:55 pm
Contact:
Contact StarF
Website

  • Quote

Post by StarF » Fri Dec 15, 2006 8:09 pm

odd thing thought.. it still want the drive called hd0.0 shouldent that be changed to hd2.0 ???or did i understand the whole grubthing wrong?
Top
xoomix
Guru
Guru
User avatar
Posts: 489
Joined: Thu Jan 02, 2003 7:30 am

  • Quote

Post by xoomix » Fri Dec 15, 2006 8:12 pm

It all depends on how the bios sees the drive:

hd0,0 - very fist drive on first bus/first lun
hd1,0 - very fist drive on second bus/first lun
hd2,0 would be a 3rd IDE/SCSI bus (which is highly unlikely)

If your drive is hdc, then it's probably : hd0,1


Hope that makes sense.
Top
StarF
Guru
Guru
Posts: 368
Joined: Sun Sep 12, 2004 4:55 pm
Contact:
Contact StarF
Website

  • Quote

Post by StarF » Fri Dec 15, 2006 8:15 pm

xoomix wrote:It all depends on how the bios sees the drive:

hd0,0 - very fist drive on first bus/first lun
hd1,0 - very fist drive on second bus/first lun
hd2,0 would be a 3rd IDE/SCSI bus (which is highly unlikely)

If your drive is hdc, then it's probably : hd0,1


Hope that makes sense.
it boots fine as hd0,0 and under dev its listed as hdc.. oh well who cares it works :P
Top
xoomix
Guru
Guru
User avatar
Posts: 489
Joined: Thu Jan 02, 2003 7:30 am

  • Quote

Post by xoomix » Fri Dec 15, 2006 8:17 pm

Well yah, you switched something then :) hda would be your first HD, hdb doesn't exist and hdc would be your first physical HD. You musta swapped the cable, etc. to make it so :) Now it's all nice and neat hehe. Glad you got it working.
Top
StarF
Guru
Guru
Posts: 368
Joined: Sun Sep 12, 2004 4:55 pm
Contact:
Contact StarF
Website

  • Quote

Post by StarF » Fri Dec 15, 2006 8:20 pm

xoomix wrote:Well yah, you switched something then :) hda would be your first HD, hdb doesn't exist and hdc would be your first physical HD. You musta swapped the cable, etc. to make it so :) Now it's all nice and neat hehe. Glad you got it working.
yes i swapped the cable from the cdrom to the hd and the other way around :)
Top
n3utron
n00b
n00b
User avatar
Posts: 2
Joined: Sun Aug 24, 2003 9:18 pm
Location: Germany

  • Quote

Post by n3utron » Sun Jan 07, 2007 10:31 pm

I just had this issue as well and resolved it by recreating the device.map file located in /boot/grub on my system

Code: Select all

rm /boot/grub/device.map && grub --device-map=/boot/grub/device.map
·· n3ut
Top
Post Reply

19 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic