Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205704 - cp /proc/mounts is invalid
Summary: cp /proc/mounts is invalid
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: http://www.gentoo.org/doc/en/grub-err...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-13 20:13 UTC by Toby Murray
Modified: 2008-01-13 20:34 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 Toby Murray 2008-01-13 20:13:28 UTC
In code listing 12.2:
# cp /proc/mounts /etc/mtab

This gives you a zero byte file in /etc/mtab since /proc/mounts is not a regular file. This should read:
cat /proc/mounts > /etc/mtab
or as is found in the installation handbook:
grep -v rootfs /proc/mounts > /etc/mtab

Reproducible: Always

Steps to Reproduce:
Comment 1 Łukasz Damentko (RETIRED) gentoo-dev 2008-01-13 20:34:58 UTC
Done. Thanks for reporting.