Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11750 - cannot use 'df' in chroot env during install
Summary: cannot use 'df' in chroot env during install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High minor (vote)
Assignee: Mark Guertin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-07 21:07 UTC by Rajiv Aaron Manglani (RETIRED)
Modified: 2007-05-30 19:10 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 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2002-12-07 21:07:22 UTC
during install, after you unpack the stagex tarball and chroot in, you cannot
use df to check the free space of your partitions:


df: cannot read table of mounted filesystems: No such file or directory

it would be useful to check free space before continuing with the install.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-08 10:41:06 UTC
did you mount /proc into the chroot destination?
Comment 2 Mark Guertin 2002-12-08 10:56:08 UTC
This is (somewhat) fixed with live cd environment 
 
to do it properly is impossible though, as the chroot doesn't keep track of a 
preivous /etc/mtab (nor can it really) 
Comment 3 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2002-12-08 13:13:05 UTC
yup, i did mount /proc. doesn't df get info from /proc/mounts ? looks identical
to /etc/mtab to me... though neither of these contain free/used space
information. where does df get that info from?
Comment 4 Mark Guertin 2002-12-12 11:25:31 UTC
I'm no tsure to be honest where it gets it from, I'll have to investigate that
further.

This is 100% fixed with live CD environment though, I tested last night.

I will close this once the live ISO is released.
Comment 5 Mark Guertin 2003-01-07 09:47:27 UTC
The live ISO is now released and this works in that environment, so closing this
one.

Thanks Rajiv