Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256012 - Quick Install Guide missing "mount -o bind /dev /mnt/gentoo/dev" before chroot
Summary: Quick Install Guide missing "mount -o bind /dev /mnt/gentoo/dev" before chroot
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-22 16:21 UTC by Grant Edwards
Modified: 2009-01-22 17:08 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 Grant Edwards 2009-01-22 16:21:57 UTC
The quick install guide omits the step where the /dev directory
is mounted to /mnt/gentoo/dev before chrooting (Code listing
2.16).  This step is present in the handbook installation
instructions before switching to the chroot environment:

   mount -o bind /dev /mnt/gentoo/dev

Mounting /dev like that is required because recent stage3
tarballs have very minimal /dev entries. Withough the above
mount command the chroot environment will be missing the /dev
files required for things like ssh, scp, grub installation,
etc.



Reproducible: Always
Comment 1 Xavier Neys (RETIRED) gentoo-dev 2009-01-22 17:01:32 UTC
It's usually not required, but I noticed a week ago that I had to bind-mount /dev if I wanted to install grub later on.

Fixed in CVS. Thanks for reporting.
Comment 2 Grant Edwards 2009-01-22 17:08:01 UTC
You're right.

In the past it wasn't require because the stage3 tarballs had a
full-up set of /dev entries.  That is no longer the case.
Starting with the most recent autobuilds of stage3, the /dev
directory is basically empty, and unless you mount /dev before
chroot'ing any app that uses any sort of device files other
/dev/null will fail.  Examples include /dev/random (required by
ssh and scp), /dev/sd* and /dev/hd* (required by fdisk, mount,
grub), and so on.