Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 62649

Summary: devfs should be mounted in new /mnt/gentoo system before chroot
Product: [OLD] Docs-user Reporter: Steve-o <fnjordy>
Component: HandbookAssignee: Docs Team <docs-team>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6
Whiteboard:
Package list:
Runtime testing required: ---

Description Steve-o 2004-09-02 12:12:42 UTC
In order for RAID / LVM / etc devices to work correctly when performing Gentoo install, for example installing grub, the devfs file system needs to be mounted in /mnt/gentoo/dev before chroot'ing into it.

Reproducible: Always
Steps to Reproduce:
1.  Boot from livecd on machine with RAID controller
2.  Peform install steps from handbook to Chapter 6 and chrooting
3.  Try to install grub into a partition in /dev/ida/

Actual Results:  
device not found.

Expected Results:  
before chroot:

# mount -t devfs devfs /mnt/gentoo/dev
Comment 1 Arno Venner 2004-10-14 10:31:13 UTC
[PROBLEM]
appears also WITHOUT Raid Systems

e.g. lilo won't work properly (yes I'm oldfashioned ...)
message : "/dev/ide/ ... /disc  not found" 
so the device file for the alternative will not be found.

[CURE]
Alternative Solution to Original Post:

> mount --bind /dev /mnt/gentoo/dev

[WORKARROUND] you can manually cure it by making a
few dir's and symlinks to all your hdd / sdd 's and their
partitions ...

[HINT] in the installation manual Section 10.d.
the given umount commands when shutting down can be shortened to:

>    umount /mnt/gentoo /mnt/gentoo/*

... making the user not becoming confused ...

Comment 2 Kurt Lieber (RETIRED) gentoo-dev 2004-10-14 10:34:51 UTC
moving over to docs team
Comment 3 Kurt Lieber (RETIRED) gentoo-dev 2004-10-14 10:35:02 UTC
bah
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2004-10-20 02:04:18 UTC
Mounting devfs isn't needed for regular installations. RAID installations sometimes do (I didn't have any issues with my HP Array 5i controller though, using grub), but the bind-mounting isn't always valid.

We provide device files by default during the installation.