|
|
在移动硬盘上做了个LVM上的Gentoo系统,把根分区也放在LVM里面了。
内核:hardened-gentoo-2.6.29。应用上fbcondecor补丁。内核配置采用通用配置(以Sabayon的配置为基础,把/usr/share/genkernel/arch/x86/modules_load中指定的模块尽可能地都编译进内核,其中包括dm-mod等)。
生成内核时所用的命令为genkernel --lvm --disklabel --menuconfig all。
名称为2.6.29-hardened(-010)。
系统中已经安装OpenRC 和 LVM2 两个包。rc-update add lvm boot 已经完成。
Grub条目后面的参数:slowusb dolvm udev real_root=/dev/LS5000/ROOT
症状:
完成模块载入后出现:- Loading modules
- ......
- Activating mdev
- Scanning for Volume Groups
- Reading all physical volumes. This may take a while...
- Activating Volume Groups
- Determine root device...
- !! Block device /dev/LS5000/ROOT is not a valid root device
- !! Could not find the root block device in.
- Please specify another value or: press Enter for the same, type "shell" for a shell, or "q" to skip...
- root block device():
复制代码 此时如果手动 vgscan && vgchange -a y,再指定/dev/LS5000/ROOT为根分区设备,可以加载 root分区,之后到- * Mounting local filesystem...
- mount: special device /dev/LS5000/HOME does not exist.
- mount: special device /dev/LS5000/TMP does not exist.
- mount: special device /dev/LS5000/USR does not exist.
- mount: special device /dev/LS5000/OPT does not exist.
- mount: special device /dev/LS5000/VAR does not exist.
- * Some local filesystem failed to mount
复制代码 值得留意的时,这期间没有看到/etc/init.d/lvm运行。
其它信息:
以下是chroot方式获得的移动硬盘上系统的emerge --info。内核名称对应的是笔记本上的内核。- Portage 2.1.6.13 (hardened/linux/x86/2008.0/desktop, gcc-4.3.3-hardenednopie, glibc-2.9_p20081201-r2, 2.6.29-hardened-007 i686)
- =================================================================
- System uname: Linux-2.6.29-hardened-007-i686-Genuine_Intel-R-_CPU_T2050_@_1.60GHz-with-gentoo-2.0.1
- Timestamp of tree: Sun, 12 Jul 2009 15:45:02 +0000
- ccache version 2.4 [enabled]
- app-shells/bash: 4.0_p24
- dev-lang/python: 2.5.4-r2, 2.6.2-r1
- dev-util/ccache: 2.4-r8
- sys-apps/baselayout: 2.0.1
- sys-apps/openrc: 0.4.3-r3
- sys-apps/sandbox: 2.0
- sys-devel/autoconf: 2.63-r1
- sys-devel/automake: 1.10.2, 1.11
- sys-devel/binutils: 2.19.1-r1
- sys-devel/gcc-config: 1.4.1
- sys-devel/libtool: 2.2.6a
- virtual/os-headers: 2.6.30
- ACCEPT_KEYWORDS="x86 ~x86"
- CBUILD="i486-pc-linux-gnu"
- CFLAGS="-O2 -fforce-addr -fomit-frame-pointer -fstack-protector-all -mtune=i686 -pipe"
- CHOST="i486-pc-linux-gnu"
- CONFIG_PROTECT="/etc /usr/share/config"
- CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
- CXXFLAGS="-O2 -fforce-addr -fomit-frame-pointer -fstack-protector-all -mtune=i686 -pipe"
- DISTDIR="/var/cache/portage/dist"
- EMERGE_DEFAULT_OPTS="--with-bdeps y"
- FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
- GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo"
- LANG="en_US.UTF-8"
- LC_ALL="en_US.UTF-8"
- LDFLAGS="-Wl,-O1 -Wl,--as-needed"
- LINGUAS="en_US en af am ar as_IN az be be_BY bg bn bn_IN bo br brx bs ca cs csb cy da de de_FR dgo dz el en en_GB en_US en_ZA eo es es_AR es_CR es_ES es_LA et et_EE eu fa fi fo fr fr_CA fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN hr hsb hu hy id is it ja ka kk km kn kn_IN ko kok ks ku la lb lo lt lv mai mk ml ml_IN mn mni mr mr_IN ms mt nb nb_NO nds ne nl nn nn_NO no nr ns nso oc or_IN pa pa_IN pl pt pt_BR pt_PT ro ru rw sa_IN sat sd se sh sh_YU si sk sl sq sr sr@Latn sr_CS ss st sv sv_SE sw_TZ ta ta_IN te te_IN tg th ti_ER tk tl tn tr ts uk ur_IN ur_PK uz uz@cyrillic ve vi wa xh zh zh_CN zh_HK zh_TW zu"
- MAKEOPTS="-j3"
- PKGDIR="/var/cache/portage/pkg"
- PORTAGE_COMPRESS="lzma"
- PORTAGE_COMPRESS_FLAGS="-7"
- PORTAGE_CONFIGROOT="/"
- PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
- PORTAGE_TMPDIR="/var/tmp"
- PORTDIR="/var/lib/repo/gentoo"
- PORTDIR_OVERLAY="/var/lib/repo/local"
- SYNC="rsync://mirror.averse.net/gentoo-portage"
- USE="X acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr cjk cli cracklib crypt cups dbus doc dri dvd dvdr dvdread emboss encode expat fam fontconfig gdbm gif git gnutls gpm gstreamer hal handbook hardened iconv ieee1394 isdnlog jpeg jpeg2k kde latex ldap libnotify lzo mad midi mikmod mng mp3 mpeg mudflap ncurses networkmanager nls nptl nptlonly ogg openexr opengl openmp pam pcre pdf perl pic png policykit ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode urandom usb vim-syntax vorbis webkit win32codecs x86 xcb xcomposite xml xorg xpm xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en af am ar as_IN az be be_BY bg bn bn_IN bo br brx bs ca cs csb cy da de de_FR dgo dz el en en_GB en_US en_ZA eo es es_AR es_CR es_ES es_LA et et_EE eu fa fi fo fr fr_CA fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN hr hsb hu hy id is it ja ka kk km kn kn_IN ko kok ks ku la lb lo lt lv mai mk ml ml_IN mn mni mr mr_IN ms mt nb nb_NO nds ne nl nn nn_NO no nr ns nso oc or_IN pa pa_IN pl pt pt_BR pt_PT ro ru rw sa_IN sat sd se sh sh_YU si sk sl sq sr sr@Latn sr_CS ss st sv sv_SE sw_TZ ta ta_IN te te_IN tg th ti_ER tk tl tn tr ts uk ur_IN ur_PK uz uz@cyrillic ve vi wa xh zh zh_CN zh_HK zh_TW zu" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
- Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
复制代码
/etc/fstab- # /etc/fstab: static file system information.
- #
- # noatime turns off atimes for increased performance (atimes normally aren't
- # needed; notail increases performance of ReiserFS (at the expense of storage
- # efficiency). It's safe to drop the noatime options if you want and to
- # switch between notail / tail freely.
- #
- # The root filesystem should have a pass number of either 0 or 1.
- # All other filesystems should have a pass number of 0 or greater than 1.
- #
- # See the manpage fstab(5) for more information.
- #
-
- # <fs> <mountpoint> <type> <opts> <D|P>
-
- # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
- /dev/LS5000/ROOT / ext4 noatime 0 1
- /dev/LS5000/USR /usr ext4 noatime 0 0
- /dev/LS5000/HOME /home ext4 noatime 0 0
- /dev/LS5000/VAR /var ext4 noatime 0 0
- /dev/LS5000/OPT /opt ext4 noatime 0 0
- /dev/LS5000/TMP /tmp ext4 noatime 0 0
- UUID=e73c7183-3ee7-4ded-96f0-ccf937c24be9 /boot ext4 noatime 0 0
- /dev/LS5000/SWAP none swap sw 0 0
- /dev/cdrom /mnt/cdrom auto noauto,ro 0 0
- #/dev/fd0 /mnt/floppy auto noauto 0 0
-
- # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
- # POSIX shared memory (shm_open, shm_unlink).
- # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
- # use almost no memory if not populated with files)
- shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
复制代码
LVM信息
2天了,实在没有精力了。希望能有朋友帮忙解决。十分感谢。
搜索历史:
http://www.google.cn/search?hl=z ... ce+in%22+gentoo+lvm
无有效信息。
官方 LVM2 指南已看过,没有找到相关信息。 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|