LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: zrael

[求助]升级 openrc 系统出问题了。

[复制链接]
 楼主| 发表于 2009-10-4 19:07:24 | 显示全部楼层
Post by 亞利艾爾;2033005
如果就是只有usr沒有掛上的話,你可能要檢查一下/etc/fstab中/usr那項寫的對不對了,仔細看看。而且好玩的是你的掛載發生在檢查之前。你是用genkernel的嗎?不是,把你的initramfs給看一下。我是說啟動的腳本。
  最後,hald在default還能滑鼠不動的話,看下INPUT_DEVICES……我說有hal的方法不只是hald在default。到FAQ把帖子看完吧……


/etc/fstab 里面的/usr 检查过没错的,而且在我升级openrc之前系统用了一天多,其中重启过好多遍都是正常的,内核不是genkernel编译的,是手动编译的,在升级openrc之前系统是一点问题都没有的。我进系统手动挂载 /usr 后root执行startx 进入桌面,但是鼠标键盘动不了,普通用户startx则不能启动闪一下就自动退出了(这个如果不是关键问题可以先不管),现在很痛苦的是/usr不能自己挂载,但是我有留意系统加载登录前的信息,/usr 是和其他目录一样有同过挂载的,到了登录系统那里就没有挂载就不知道原因了。
    因为我刚刚接触gentoo,很多命令信息还不会看,还希望你能给出具体命令或者文件路径查看信息。谢谢~
回复 支持 反对

使用道具 举报

发表于 2009-10-4 19:45:22 | 显示全部楼层
我只能說OpenRC用戶搞LVM這裡出問題的人不少。問題也是各式各樣。你的是手動編譯的話,有沒有自己製作initramfs?如果有製作的話,把init腳本給大家看一下吧。如果沒有製作initramfs,強烈建議你用genkernel編譯一下內核吧,順帶製作下提供lvm的initramfs。關於genkernel的lvm設置,只能到www.gentoo-wiki.com上找了。官方有一個小的筆記。

http://www.gentoo.org/doc/zh_cn/lvm2.xml

  關於X目前先不說吧。你最好把你的emerge --info發下。普通用戶那個確實好像不是關鍵問題,我的也是這樣,好像設置下.xinitrc就沒有問題了。
  我從你的/var/log/rc.log沒有看到你/usr被掛載的信息。你把你看到的信息也給一下,另外把/etc/fstab也給一下,謝謝。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-4 20:02:33 | 显示全部楼层
手動編譯沒有製作initramfs,我一会试试genkernel
fstab
  1. # /etc/fstab: static file system information.
  2. #
  3. # noatime turns off atimes for increased performance (atimes normally aren't
  4. # needed; notail increases performance of ReiserFS (at the expense of storage
  5. # efficiency).  It's safe to drop the noatime options if you want and to
  6. # switch between notail / tail freely.
  7. #
  8. # The root filesystem should have a pass number of either 0 or 1.
  9. # All other filesystems should have a pass number of 0 or greater than 1.
  10. #
  11. # See the manpage fstab(5) for more information.
  12. #
  13. # <fs>                        <mountpoint>        <type>                <opts>                <dump/pass>
  14. # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
  15. /dev/sda1                /boot                ext2                noauto,noatime        1 2
  16. /dev/sda2                /                reiserfs        noatime                0 1
  17. #/dev/sda5                none                swap                sw                0 0
  18. #Logical volumes
  19. /dev/vd/usr                /usr                reiserfs        noatime                0 2
  20. /dev/vd/home                /home                reiserfs        noatime                0 2
  21. /dev/vd/opt                /opt                reiserfs        noatime                0 2
  22. /dev/vd/var                /var                reiserfs        noatime                0 2
  23. /dev/vd/tmp                /tmp                reiserfs        noatime                0 2
  24. #/dev/sda7                /mnt/sda7        ntfs-3g                noatime                0 0
  25. /dev/sda5                none                swap                sw                0 0
  26. /dev/cdrom                /mnt/cdrom        auto                noauto,ro,user        0 0
  27. # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
  28. # POSIX shared memory (shm_open, shm_unlink).
  29. # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
  30. #  use almost no memory if not populated with files)
  31. shm                        /dev/shm        tmpfs                nodev,nosuid,noexec        0 0
复制代码

emerge   --info
  1. Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r1 i686)
  2. =================================================================
  3. System uname: Linux-2.6.31-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_T5270_@_1.40GHz-with-gentoo-2.0.1
  4. Timestamp of tree: Thu, 01 Oct 2009 07:45:01 +0000
  5. app-shells/bash:     4.0_p28
  6. dev-java/java-config: 2.1.9-r1
  7. dev-lang/python:     2.6.2-r1
  8. dev-util/cmake:      2.6.4-r2
  9. sys-apps/baselayout: 2.0.1
  10. sys-apps/openrc:     0.4.3-r3
  11. sys-apps/sandbox:    1.6-r2
  12. sys-devel/autoconf:  2.63-r1
  13. sys-devel/automake:  1.9.6-r2, 1.10.2
  14. sys-devel/binutils:  2.18-r3
  15. sys-devel/gcc-config: 1.4.1
  16. sys-devel/libtool:   2.2.6a
  17. virtual/os-headers:  2.6.27-r2
  18. ACCEPT_KEYWORDS="x86"
  19. CBUILD="i686-pc-linux-gnu"
  20. CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer"
  21. CHOST="i686-pc-linux-gnu"
  22. CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
  23. CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
  24. CXXFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer"
  25. DISTDIR="/usr/portage/distfiles"
  26. FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
  27. GENTOO_MIRRORS="http://ftp.kaist.ac.kr/pub/gentoo/"
  28. LANG="zh_CN.UTF-8"
  29. LDFLAGS="-Wl,-O1"
  30. LINGUAS="zh_CN en"
  31. MAKEOPTS="-j3"
  32. PKGDIR="/usr/portage/packages"
  33. PORTAGE_CONFIGROOT="/"
  34. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
  35. PORTAGE_TMPDIR="/var/tmp"
  36. PORTDIR="/usr/portage"
  37. PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china"
  38. SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
  39. USE="X a52 aac ac3 acl acpi alsa arts audiofile berkdb branding bzip2 cgi cjk cleartype cli cracklib crypt cups dbus dir dri dvd encode esd ffmpeg fftw flac fortran gd gdbm gif gpm hal hddtemp iconv isdnlog jpeg jpeg2k jpg kde kontact lame laptop mad mkv mng modplug modules mpeg mudflap musepack mysql nas ncurses nls nptl nptlonly opengl openmp oss pam pcre pdf perl png pppd python q qt3support qt4 rar readline reflection session shorten smp spl sql sse2 sse3 ssl startup-notification svg sysfs tcpd timidity unicode usb vcd vorbis wavpack webkit wifi win32codecs wma x86 xcb xft xorg xulrunner zlib" ALSA_CARDS="hda-intel" 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="keyboard synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN en" USERLAND="GNU" VIDEO_CARDS="i810 intel"
  40. Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-10-5 00:41:44 | 显示全部楼层
既然OpenRC这么好为什么不把它整成默认的?

刚看了看,还是~x86呢。
回复 支持 反对

使用道具 举报

发表于 2009-10-5 01:41:58 | 显示全部楼层
目前變化比較多,而且bug清理工作沒有到可以發佈的程度,所有目前OpenRC還不是穩定可用。要知道Gentoo的穩定分支更多的面向生產環境,這裡可不想因為OpenRC的開發問題而出錯。
回复 支持 反对

使用道具 举报

发表于 2009-10-5 01:43:47 | 显示全部楼层
既然你沒有細看Faq我就說了吧,下次說要認真看文檔也要認真看FAQ。你把現在INPUT_DEVICES加上evdev,應該能解決你滑鼠和鍵盤的問題。

至於LVM我沒有想法。你再試試看。genkernel做initramfs不會影響你多少時間。不過我很關心你怎麼做到不做initramfs怎麼開lvm的……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-5 10:49:18 | 显示全部楼层
谢谢,昨天搜索资料的时候才发现有 INPUT_DEVICES加上evdev 这一项,以前浏览了一下FAQ,没仔细看。
/boot/grub/grub.conf

  1. title=Gentoo (kernel-2.6-31-r1)
  2. root (hd0,0)
  3. kernel /boot/kernel-2.6.31-r1 root=/dev/sda2 video=vesafb vga=792
复制代码

我是把lvm支持编进内核的,而且我的boot / 都不在lvm里面,是单独放了一个分区。我刚刚试过把usr这个逻辑卷删了重新建立格式化,问题还是一样,应该不是文件系统的问题导致不能自动挂载吧?

昨天本来想用genkernel,结果我装系统的时候没把这工具装上,现在进系统无线网卡又不能用(在宿舍只有无线),今天回公司接网线继续搞。。。

/etc/init.d/fsck start

  1. /dev/sda1: clean, 38/16064 files, 17737/64228 blocks
  2. Reiserfs super block in block 16 on 0xfe00 of format 3.6 with standard journal
  3. Blocks (total/free): 2621440/1629937 by 4096 bytes
  4. Filesystem is clean
  5. Replaying journal..
  6. Reiserfs journal '/dev/vd/usr' in blocks [18..8211]: 0 transactions replayed
  7. Checking internal tree..finished
  8. Reiserfs super block in block 16 on 0xfe01 of format 3.6 with standard journal
  9. Blocks (total/free): 5242880/4465153 by 4096 bytes
  10. Filesystem is NOT clean
  11. Partition /dev/vd/home is mounted with write permissions, cannot check it
  12. Reiserfs super block in block 16 on 0xfe02 of format 3.6 with standard journal
  13. Blocks (total/free): 1310720/1269641 by 4096 bytes
  14. Filesystem is NOT clean
  15. Partition /dev/vd/opt is mounted with write permissions, cannot check it
  16. Reiserfs super block in block 16 on 0xfe03 of format 3.6 with standard journal
  17. Blocks (total/free): 2621440/2578162 by 4096 bytes
  18. Filesystem is NOT clean
  19. Partition /dev/vd/var is mounted with write permissions, cannot check it
  20. Reiserfs super block in block 16 on 0xfe04 of format 3.6 with standard journal
  21. Blocks (total/free): 524288/516023 by 4096 bytes
  22. Filesystem is NOT clean
  23. Partition /dev/vd/tmp is mounted with write permissions, cannot check it
  24. * Filesystems couldn't be fixed
  25. * ERROR: fsck failed to start
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-10-5 13:01:58 | 显示全部楼层
Post by 亞利艾爾;2033096
不過我很關心你怎麼做到不做initramfs怎麼開lvm的……


根目录没有在 lvm 上。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表