View previous topic :: View next topic |
Author |
Message |
padoor Advocate


Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Fri Sep 18, 2009 12:55 pm Post subject: [solved]sda does not have corresponding BIOS drive grub ?? |
|
|
[[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? _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Last edited by padoor on Sat Sep 19, 2009 2:59 am; edited 1 time in total |
|
Back to top |
|
 |
padoor Advocate


Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Fri Sep 18, 2009 1:40 pm Post subject: |
|
|
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) |
|
Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Sep 18, 2009 1:41 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
krinn Watchman


Joined: 02 May 2003 Posts: 7471
|
Posted: Fri Sep 18, 2009 2:45 pm Post subject: |
|
|
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) |
|
Back to top |
|
 |
padoor Advocate


Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Sat Sep 19, 2009 2:25 am Post subject: |
|
|
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) |
|
Back to top |
|
 |
padoor Advocate


Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Sat Sep 19, 2009 2:58 am Post subject: |
|
|
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) |
|
Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Sep 19, 2009 3:32 am Post subject: |
|
|
Glad to help, padoor  |
|
Back to top |
|
 |
|