Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub and MBR
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
pinr
Apprentice
Apprentice


Joined: 26 Jan 2003
Posts: 241
Location: Monterrey, Mexico

PostPosted: Wed Jun 01, 2005 2:21 pm    Post subject: Grub and MBR Reply with quote

I'm having a big problem with grub. My SATA drive is partitioned as follows:
sda1 Spare (used for testing OSes)
sda2 Boot
sda3 Swap
sda4 root
I recenctly installed Win XP on sda1, I'm no fan of windows but I needed it to install some firmware on an MP3 player I have. Of course it overwrote grub on the MBR. No problem I thought I'll just boot up from the live CD chroot into my genoo install and run grub-install. The problem is that when I do that grub-install gives me the following message:
could not find device for /boot: not found or not a block device. I know that the grub conf is ok. I have read the forums and tried the following all to no avial.
mount -t proc none /mnt/gentoo/proc
mount -t ext2 /dev/sda2 /mnt/gentoo/boot
mount -o bind /dev /mnt/gentoo/dev
This is really bugging me as I only recently changed to grub from LILO due to Lilo being masked for AMD 64 which I now have. Lilo was so simple to use.
Back to top
View user's profile Send private message
d_m
Guru
Guru


Joined: 12 Jun 2003
Posts: 570
Location: Philadelphia, PA, USA

PostPosted: Wed Jun 01, 2005 2:37 pm    Post subject: Reply with quote

If you post your grub.conf file, and then the exact command you run and its full output, it will make it easier to help you.
_________________
The name that can be named is not the eternal name.
Back to top
View user's profile Send private message
pinr
Apprentice
Apprentice


Joined: 26 Jan 2003
Posts: 241
Location: Monterrey, Mexico

PostPosted: Wed Jun 01, 2005 3:25 pm    Post subject: Reply with quote

I installed Ubuntu on sda1 and Ubuntu automacally detected Gentoo and installed Grub. This does not solve my problem, however as I still need be able to install windows on that partion. The command I'm using is this:
grub-install --no-floppy /dev/sda
Now this works fine when I boot into Gentoo. However when I try by chrooting into Gentoo from the live cd
I get
could not find device for /boot: Not found or not a block device
My grub.conf is:
#
# Sample boot menu configuration file
#

# Boot automatically after 30 secs.
timeout 10

# By default, boot the first entry.
default 0

# Fallback to the second entry.
fallback 1

# For booting GNU/Hurd
title GNU/Hurd
#root (hd0,0)
#kernel /boot/gnumach.gz root=hd0s1
#module /boot/serverboot.gz

# For booting GNU/Linux
title 2.6.11
root (hd0,1)
kernel /2.6.11-gentoo-r7 root=/dev/sda4
#initrd /initrd.img

title 2.6.10
root (hd0,1)
kernel /2.6.10 root=/dev/sda4

title Kubuntu
root (hd0,0)
kernel /vmlinuz-2.6.10-5-amd64-generic /root=/dev/sda1

# For booting Mach (getting kernel from floppy)
#title Utah Mach4 multiboot
#root (hd0,2)
#pause Insert the diskette now!!
#kernel (fd0)/boot/kernel root=hd0s3
#module (fd0)/boot/bootstrap

# For booting FreeBSD or GNU/KFreeBSD
#title FreeBSD / GNU/KFreeBSD
#root (hd0,2,a)
#kernel /boot/loader

# For booting NetBSD or GNU/KNetBSD
#title NetBSD / GNU/KNetBSD
#root (hd0,2,a)
#kernel --type=netbsd /netbsd

# For booting OpenBSD
#title OpenBSD
#root (hd0,2,a)
#kernel --type=netbsd /bsd

# For booting OS/2
#title OS/2
#root (hd0,1)
#makeactive
# chainload OS/2 bootloader from the first sector
#chainloader +1
# This is similar to "chainload", but loads a specific file
#chainloader /boot/chain.os2

# For booting Windows NT or Windows95
#title Windows XP
#rootnoverify (hd0,0)
#makeactive
#chainloader +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos

# For installing GRUB into the hard disk
title Install GRUB into the hard disk
#root (hd0,0)
#setup (hd0)

# Change the colors.
#title Change the colors
#color light-green/brown blink-red/blue
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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