Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55291 - Grub-0.94-r1 fails to compile with /boot mounted. Using livecd 2004.02 smp kernel
Summary: Grub-0.94-r1 fails to compile with /boot mounted. Using livecd 2004.02 smp ke...
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-26 17:29 UTC by Jake Walters
Modified: 2004-07-13 15:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jake Walters 2004-06-26 17:29:17 UTC
Everytime I tried to compile grub inside the chroot this error comes out. 





Reproducible: Always
Steps to Reproduce:
1.mount /boot
2.emerge -v grub
3.

Actual Results:  
>>> 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!

/boot was mounted 

livecd root # df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/ROOT              7815376    901668   6913708  12% /
/dev/hda1                93307      6994     81496   8% /boot

Expected Results:  
Installed grub into the /boot partition

I unmounted /boot from within chroot and ran emerge -v grub again and it
compiled fine and mounted boot and copied necessary files.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-28 05:30:36 UTC
This appears to be a problem with the grub ebuild, not with the CD, nor the kernel.  I'm reassigning to the proper group.
Comment 2 Jeff Asselin 2004-07-05 10:23:57 UTC
I've had this issue before, it was caused by a lack of mounting a proc filesystem at the proper point before chrooting. Ex:

mount /dev/hda1 /mnt/gentoo
mount /dev/hda2 /mnt/gentoo/boot
chroot /mnt/gentoo /bin/bash

Will most likely cause this bug. You need to issue the

mount -t proc none /mnt/gentoo/proc

command before you chroot.

As such, it doesn't appear to be bug. Unless proc was mounted at the time and this wasn't mentioned.
Comment 3 Robert Moss (RETIRED) gentoo-dev 2004-07-11 23:13:34 UTC
Please close as RESOLVED NEEDINFO, unless the reporter can tell us whether or not he remembered to mount /proc. If /proc is not mounted, no boot partition will show up in /proc/mounts, leading to this bug.
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2004-07-12 11:33:19 UTC
Jake, please reopen this bug when you have the info that robert requested
Comment 5 Jake Walters 2004-07-13 15:43:15 UTC
Ok, I must have forgotten to mount /proc. Sorry about that :-). thanks for the info tho...