Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved]sda does not have corresponding BIOS drive grub ??

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
padoor
Advocate
Advocate
User avatar
Posts: 4185
Joined: Fri Dec 30, 2005 1:43 am
Location: india

[solved]sda does not have corresponding BIOS drive grub ??

  • Quote

Post by padoor » Fri Sep 18, 2009 12:55 pm

[[root@localhost root]# mount
/dev/root on / type rootfs (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbfs (rw)
none on /sys type sysfs (rw)
/dev/hda7 on /mnt/gentoo type ext3 (rw)
none on /mnt/gentoo/proc type proc (rw)
/dev on /mnt/gentoo/dev type none (rw,bind)
[root@localhost root]# chroot /mnt/gentoo
localhost / # env-update
>>> Regenerating /etc/ld.so.cache...
localhost / # source /etc/profile
localhost / # grub-install /dev/sda
/dev/sda does not have any corresponding BIOS drive.
localhost / # grub-install /dev/hda
/dev/root: Not found or not a block device.
localhost / # exit
exit
[root@localhost root]# grub
Probing devices to guess BIOS drives. This may take a long time.
localhost / # grub-install /dev/sda
/dev/sda: Not found or not a block device.


all these while it was working ok.
after reinstall of windows xp and 2000 the mbr got cleared.
now i am not able to install grub.

what is ment by bios drive?
what i am doing wrong?
Last edited by padoor on Sat Sep 19, 2009 2:59 am, edited 1 time in total.
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Top
padoor
Advocate
Advocate
User avatar
Posts: 4185
Joined: Fri Dec 30, 2005 1:43 am
Location: india

  • Quote

Post by padoor » Fri Sep 18, 2009 1:40 pm

if i run fixmbr from windows cd on repair console will the windows boot loader also vanish?
how i can fix mbr witout reinstalling everything?
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Fri Sep 18, 2009 1:41 pm

According to the handbook, if you use grub-install --no-floppy /dev/sda
you need to first run grep -v rootfs /proc/mounts > /etc/mtab

try grub --no-floppy

what happens?

Also in windows you can delete the MBR with fdisk /MBR

Then boot your Gentoo installCD and chroot your box, then try grub again.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Fri Sep 18, 2009 2:45 pm

way faster to just type
grub
root (hd0,1) (well, where is your boot partition, as windows love hd0,0, hd0,1 = sda2/hda2)
setup (hd0) (this will install grub in mbr)
Top
padoor
Advocate
Advocate
User avatar
Posts: 4185
Joined: Fri Dec 30, 2005 1:43 am
Location: india

  • Quote

Post by padoor » Sat Sep 19, 2009 2:25 am

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# mkdir /mnt/gentoo
root@ubuntu:/home/ubuntu# cfdisk

root@ubuntu:/home/ubuntu# mount /dev/sda7 /mnt/gentoo
root@ubuntu:/home/ubuntu# dir /mnt/gentoo
bin pubdata
boot Recycled
dev root
etc sbin
Harvey\ with\ Richie\ Rich\ Pack\ 6\ [H33t].txt sshdata
home sys
lib tmp
lost+found Torrent\ covers.rar
media tracked_by_h33t_com.txt
mnt UGA6P
msdownld.tmp usr
opt var
proc
root@ubuntu:/home/ubuntu# mount -t proc none /mnt/gentoo/proc
root@ubuntu:/home/ubuntu# mount -o bind /dev /mnt/gentoo/dev
root@ubuntu:/home/ubuntu# chroot /mnt/gentoo /bin/bash
ubuntu / # env-update
>>> Regenerating /etc/ld.so.cache...
ubuntu / # source /etc/profile
ubuntu / # grep -v rootfs /proc/mounts > /etc/mtab
ubuntu / # grub-install --no-floppy /dev/sda
/dev/sda does not have any corresponding BIOS drive.
ubuntu / # grub --no-floppy
Probing devices to guess BIOS drives. This may take a long time.
ubuntu / #




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,6)
Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,6)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

grub>


first i boot in dos with windows cd
run fdisk /mbr

then all the above
hope windows boot loader is still present

well i will try rebooting
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Top
padoor
Advocate
Advocate
User avatar
Posts: 4185
Joined: Fri Dec 30, 2005 1:43 am
Location: india

  • Quote

Post by padoor » Sat Sep 19, 2009 2:58 am

thats good.
it works nicely.
thanks for all supports krinn and Mike Hunt

i had to use both helps :)

good to be back into gentoo system :)
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Sat Sep 19, 2009 3:32 am

Glad to help, padoor :)
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

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