Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62649 - devfs should be mounted in new /mnt/gentoo system before chroot
Summary: devfs should be mounted in new /mnt/gentoo system before chroot
Status: RESOLVED WORKSFORME
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-02 12:12 UTC by Steve-o
Modified: 2004-10-20 02:04 UTC (History)
0 users

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 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.