Gentoo Forums
Gentoo Forums
Quick Search: in
'emerge grub' fails
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
andrewski
Guru
Guru


Joined: 30 Apr 2004
Posts: 366
Location: Royersford, PA, USA

PostPosted: Thu Jun 10, 2004 1:45 am    Post subject: 'emerge grub' fails Reply with quote

I've been having trouble getting my grub from a Mandrake installation (see my other post: http://forums.gentoo.org/viewtopic.php?t=183668) and I think it has less to do with the actual configuration than I thought. I tried installing grub because I read online (somewhere!) that you still have to have the system files for grub installed on the disk from which you want to boot. However, when I try 'emerge grub', I get the following error after a lot of compilation:
Code:
>>> Merging sys-boot/grub-0.94-r1 to /
cat: /proc/mounts: No such file or directory
cat: /proc/mounts: No such file or directory
 *
 * Cannot automatically mount your /boot partition.
 * Your boot partition has to be mounted rw before the installation
 * can continue. grub needs to install important files there.
 *

!!! ERROR: sys-boot/grub-0.94-r1 failed.
!!! Function mount-boot_mount_boot_partition, Line 53, Exitcode 0
!!! Please mount your /boot partition manually!

!!! FAILED preinst: 1
bash-2.05b# mount
<SNIP>
/dev/hdb5 on /boot type reiserfs (rw,noatime,notail)

My /boot seems mounted to me... what's wrong here?
Back to top
View user's profile Send private message
furanku
l33t
l33t


Joined: 08 May 2003
Posts: 863
Location: Hamburg, Germany

PostPosted: Thu Jun 10, 2004 6:35 am    Post subject: Reply with quote

This looks not like a grub specific problem, but like a procfs problem.

What does
Code:
$ cat /proc/mounts
say if you invoke it in a shell?

Frank
Back to top
View user's profile Send private message
yodi
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2004
Posts: 88
Location: Liverpool, England

PostPosted: Thu Jun 10, 2004 8:56 am    Post subject: Reply with quote

if you are trying to do this on the Live CD try ,

Code:

mount -t proc /proc /mnt/gentoo/proc


before you chroot.

Seems to make things a little happier :)
_________________
All Servers :: Offline [no connection]
Gallery :: Visit Here
Homepage :: Visit Here
Back to top
View user's profile Send private message
andrewski
Guru
Guru


Joined: 30 Apr 2004
Posts: 366
Location: Royersford, PA, USA

PostPosted: Thu Jun 10, 2004 1:06 pm    Post subject: Reply with quote

Code:
localhost / # mount
/dev/hdb7 on / type ReiserFS (rw,noatime)
none on /proc type proc (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdb5 on /boot type reiserfs (rw,noatime,notail)
localhost / # cat /proc/mounts
cat: /proc/mounts: No such file or directory

I'm doing this in Mandrake, installing Gentoo on my second HD and chroot'ing in from a terminal window.

What does that 'no such file' mean?
Back to top
View user's profile Send private message
saccory
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 176
Location: Göttingen, Germany

PostPosted: Thu Jun 10, 2004 1:13 pm    Post subject: Reply with quote

andrewski wrote:
What does that 'no such file' mean?
The file /proc/mounts does not exist.

Can you please post the result of
Code:
mount
Back to top
View user's profile Send private message
andrewski
Guru
Guru


Joined: 30 Apr 2004
Posts: 366
Location: Royersford, PA, USA

PostPosted: Thu Jun 10, 2004 1:20 pm    Post subject: Reply with quote

I did. :P
Back to top
View user's profile Send private message
andrewski
Guru
Guru


Joined: 30 Apr 2004
Posts: 366
Location: Royersford, PA, USA

PostPosted: Thu Jun 10, 2004 1:26 pm    Post subject: Reply with quote

Here's my /etc/fstab too, FWIW:
Code:
/dev/hdb5               /boot           reiserfs        noauto,noatime,notail   1 1
/dev/hdb7               /               reiserfs        noatime                 0 1
/dev/hdb1               none            swap            sw                      0 0
/dev/hdb8               /usr            reiserfs        noatime,noauto          0 0
/dev/hdb9               /home           reiserfs        noatime,noauto          0 0
/dev/hdb10              /bak            reiserfs        noatime,noauto          0 0
/dev/cdroms/cdrom0      /mnt/cdrom      auto            noauto,ro,user          0 0
/dev/cdroms/cdrom1      /mnt/cdrom2     auto            noauto,ro,user          0 0
/dev/fd0                /mnt/floppy     auto            noauto,user             0 0

none                    /proc           proc            defaults                0 0
none                    /dev/shm        tmpfs           defaults                0 0
Back to top
View user's profile Send private message
saccory
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 176
Location: Göttingen, Germany

PostPosted: Thu Jun 10, 2004 1:29 pm    Post subject: Reply with quote

Oh, sorry :oops:
So /proc is mounted and only /proc/mounts is missing? You have files in /proc, right? Strange.
Back to top
View user's profile Send private message
andrewski
Guru
Guru


Joined: 30 Apr 2004
Posts: 366
Location: Royersford, PA, USA

PostPosted: Thu Jun 10, 2004 1:40 pm    Post subject: Reply with quote

saccory wrote:
So /proc is mounted and only /proc/mounts is missing? You have files in /proc, right? Strange.

Nope, I have nothing in /proc. (!!!)
Code:
localhost / # ls /proc/
localhost / #
Back to top
View user's profile Send private message
Quantumstate
Apprentice
Apprentice


Joined: 26 May 2004
Posts: 270
Location: Dallas

PostPosted: Thu Jun 10, 2004 1:44 pm    Post subject: Reply with quote

Es kool.

Hopefully you're doing the emerga AFTER chrooting? Otherwise the system will be very confused.

And there should be no need to install grub in Gentoo AND mdk, assuming they use the same boot part. Just add Gentoo to grub.conf.
Back to top
View user's profile Send private message
saccory
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 176
Location: Göttingen, Germany

PostPosted: Thu Jun 10, 2004 1:52 pm    Post subject: Reply with quote

andrewski wrote:
Nope, I have nothing in /proc. (!!!)


OK, one step further. Did you try to mount the procfs (see yodis post)?
Back to top
View user's profile Send private message
andrewski
Guru
Guru


Joined: 30 Apr 2004
Posts: 366
Location: Royersford, PA, USA

PostPosted: Thu Jun 10, 2004 2:10 pm    Post subject: Reply with quote

I'm not mounting /proc beforehand because I'm not using the LiveCD. I already have a /proc mounted for my Mandrake system, so I mount the chroot'ed /proc afterwards, as you see in my post above. Is that bad?

Quantumstate, good to know about the unnecessity of installing grub, but it seems I have bigger fish to fry now, believe you me. ;) Thanks.
Back to top
View user's profile Send private message
saccory
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 176
Location: Göttingen, Germany

PostPosted: Thu Jun 10, 2004 2:15 pm    Post subject: Reply with quote

I don't think, that works. You should mount the proc filesystem to /mnt/gentoo/proc (not to /proc again) before chrooting. Just as yodi wrote. Thats independed from the live cd.
Back to top
View user's profile Send private message
andrewski
Guru
Guru


Joined: 30 Apr 2004
Posts: 366
Location: Royersford, PA, USA

PostPosted: Thu Jun 10, 2004 2:32 pm    Post subject: Reply with quote

OK, good to know. Here's the subsequent result from /proc/mounts:
Code:
localhost / # cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / reiserfs rw 0 0
none /dev devfs rw 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /proc/bus/usb usbdevfs rw 0 0
/dev/hda1 /boot reiserfs rw 0 0
none /dev/pts devpts rw 0 0
/dev/hdb7 / reiserfs rw 0 0
/dev/hdb10 /bak reiserfs rw 0 0
/dev/hdb9 /home reiserfs rw 0 0
/dev/hdb8 /usr reiserfs rw 0 0
/dev/hda6 /home reiserfs rw 0 0
none /mnt/floppy supermount rw,sync,dev=/dev/fd0,fs=ext2:vfat,tray_lock=onwrite,--,umask=0,iocharset=iso8859-15,codepage=850 0 0
/dev/hda7 /music reiserfs rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/hdb5 /boot reiserfs rw 0 0
none /proc proc rw 0 0
Back to top
View user's profile Send private message
saccory
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 176
Location: Göttingen, Germany

PostPosted: Thu Jun 10, 2004 3:02 pm    Post subject: Reply with quote

So, did you succeed in emerging grub. By the way, the alternative to mounting proc is to mount /boot manually.
Back to top
View user's profile Send private message
A-star
n00b
n00b


Joined: 05 Jun 2002
Posts: 43

PostPosted: Thu Jun 10, 2004 3:58 pm    Post subject: Reply with quote

Maybe this thread can also help you:
http://forums.gentoo.org/viewtopic.php?t=183966
Back to top
View user's profile Send private message
andrewski
Guru
Guru


Joined: 30 Apr 2004
Posts: 366
Location: Royersford, PA, USA

PostPosted: Fri Jun 11, 2004 6:05 am    Post subject: Reply with quote

saccory wrote:
So, did you succeed in emerging grub. By the way, the alternative to mounting proc is to mount /boot manually.

Yes, that did it; I forgot to post back after trying again. As for booting, I'll post back (in a different thread) after I try that if I still need help. Thanks!
Back to top
View user's profile Send private message
kaishek
n00b
n00b


Joined: 16 Jun 2004
Posts: 15

PostPosted: Thu Jun 17, 2004 10:27 pm    Post subject: Reply with quote

i have this same error...in the install guide it says to do
Code:
# mkdir /mnt/gentoo/proc
# mount -t proc none /mnt/gentoo/proc


which i did. emerge grub gives the same error message originally listed in this thread, but i tried
Code:
umount /mnt/gentoo/proc

and then

Code:

mount -t proc /proc /mnt/gentoo/proc

as suggested earlier...neither thing worked, and i continue to get the same error...if these things aren't working, what should I try, and how would i mount the boot partition manually?
Back to top
View user's profile Send private message
andrewski
Guru
Guru


Joined: 30 Apr 2004
Posts: 366
Location: Royersford, PA, USA

PostPosted: Fri Jun 18, 2004 3:34 am    Post subject: Reply with quote

I don't really know, but it seems like it may be a good idea to start a new thread on this... just my opinion, anyway. <rant>It always bugs me when people will ask a question at the end of an already-answered thread.</rant>
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