In 2.12 "Emerging the LVM2 package", the lvm2 package must be installed statically. If not, a "mount: special device xxxxxxxxx does not exist" when rebooting and attempting to mount any of the LVM partitions. Using the following code worked for me. USE="static" emerge lvm2 Reproducible: Didn't try Steps to Reproduce: 1. Followng the existing directions 2. Reboot 3. run mount -a (errors thrown). Actual Results: Error from mount: "mount: special device xxxxxxxxx does not exist" Expected Results: partitions should have mounted Gentoo Base System version 1.4.16 Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808- r1, 2.6.11-gentoo-r3 i686) ================================================================= System uname: 2.6.11-gentoo-r3 i686 AMD Athlon(tm) XP 2800+ Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 11 2005, 13:17:01)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X apache2 apm arts avi berkdb bitmap-fonts crypt cups doc dvd emboss encode f77 foomaticdb fortran gd gdbm gif gnome gpm gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mpeg msql ncurses nls oggvorbis opengl oss pam pcre pdflib perl php png python qt quicktime readline samba sdl sharedmem spell ssl svga symlink tcpd threads truetype truetype-fonts type1-fonts vcd xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
uhh, no, lvm2 should work fine built dynamically
I'm quite sure this was the solution to my problem. (It is always *possible* that my initial instation of lvm2 was some how bad, but I have no evidence of that.) I should include that /usr is an lvm2 partition just like the HOWTO. Obviously, if /usr isn't an LVM partition, then there wouldn't be any linking issues. With a very quick google scan, I don't think I'm to only one who has had this issue. http://mperedim.serverhive.com/weblog/2005/03/10/static-or-dynamically-linking/ (Greek) http://gentoo- wiki.com/HOWTO_Install_Gentoo_on_an_LVM2_root_partition#The_Cowboy_Way
Newer ebuilds build lvm statically by default to avoid any linking issues. They can be built non-statically if you still wish.