LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2815|回复: 36

我的gentoo中毒了

[复制链接]
发表于 2009-5-9 12:35:23 | 显示全部楼层 |阅读模式
每次ls,都会在该目录下,自动生成一个名“10”,内容为空的文件

环境openbox 3.4.8_rc1
  1. Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r3 i686)
  2. =================================================================
  3. System uname: Linux-2.6.28-gentoo-r3-i686-Intel-R-_Celeron-R-_M_CPU_520_@_1.60GHz-with-gentoo-2.0.0
  4. Timestamp of tree: Fri, 08 May 2009 17:15:01 +0000
  5. ccache version 2.4 [disabled]
  6. app-shells/bash:     4.0_p17-r1
  7. dev-java/java-config: 2.1.7
  8. dev-lang/python:     2.4.4-r15, 2.5.4-r2, 2.6.2
  9. dev-python/pycrypto: 2.0.1-r8
  10. dev-util/ccache:     2.4-r8
  11. dev-util/cmake:      2.6.4
  12. sys-apps/baselayout: 2.0.0
  13. sys-apps/openrc:     0.4.3-r2
  14. sys-apps/sandbox:    1.9
  15. sys-devel/autoconf:  2.13, 2.63-r1
  16. sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
  17. sys-devel/binutils:  2.19.1-r1
  18. sys-devel/gcc-config: 1.4.1
  19. sys-devel/libtool:   2.2.6a
  20. virtual/os-headers:  2.6.28-r1
  21. ACCEPT_KEYWORDS="x86 ~x86"
  22. CBUILD="i686-pc-linux-gnu"
  23. CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
  24. CHOST="i686-pc-linux-gnu"
  25. CONFIG_PROTECT="/etc /usr/share/config"
  26. CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
  27. CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
  28. DISTDIR="/usr/portage/distfiles"
  29. FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
  30. GENTOO_MIRRORS="http://mirrors.163.com/gentoo ftp://gentoo.anheng.com.cn/gentoo http://mirror.averse.net/pub/gentoo/ http://mirror.gentoo.gr.jp"
  31. LANG="en_US.UTF-8"
  32. LDFLAGS="-Wl,-O1"
  33. LINGUAS="zh_CN en en_US"
  34. MAKEOPTS="-j2"
  35. PKGDIR="/usr/portage/packages"
  36. PORTAGE_CONFIGROOT="/"
  37. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
  38. PORTAGE_TMPDIR="/var/tmp"
  39. PORTDIR="/usr/portage"
  40. PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china"
  41. SYNC="rsync://mirror.averse.net/gentoo-portage"
  42. USE="X aac aalib acl alsa apache apache2 apm bash-completion bash-completion} bindist bzip2 chm cjk cleartype cli cracklib crypt curl dbus directfb disk-partition djvu dri dv emacs esd espeak fat fbcon festival ffmpeg flac fontconfig fortran fuse gdbm gif git glade gnome gnutls gpm gucharmap hal iconv id3tag imagemagick imlib isdnlog javascript jpeg jpeg2k kde kipi laptop libcaca lzma mmx mp3 mp4 mplayer mudflap multi-user ncurses nls nntp nptl nptlonly nsplugin ntfs ogg opengl openmp pam pch pcre php5 pmu png pppd profile pymacs python qt4 rar readline reflection reiser4 reiserfs rmvb rss session spl srt sse sse2 ssl ssse3 subversion svg sysfs tcpd theora threads tpctlir truetype ubuntu unicode vcd vdr vhosts vorbis webkit wubi x86 xcb xcomposite xfce xft xorg xosd xulrunner xvid zlib" ALSA_CARDS="intel8x0" 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 mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN en en_US" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev"
  43. Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2009-5-9 12:55:02 | 显示全部楼层
  1. lee@lab ~ $ eix coreu
  2. [D] sys-apps/coreutils
  3.      Available versions:  6.9-r1 6.10-r1 6.10-r2 (~)6.10-r3 (~)6.11 (~)6.12-r1 (~)6.12-r2 7.1 (~)7.2 {acl caps gmp nls selinux static vanilla xattr}
  4.      Installed versions:  7.4(06:56:10 AM 05/09/2009)(acl nls -caps -gmp -selinux -static -vanilla -xattr)
  5.      Homepage:            http://www.gnu.org/software/coreutils/
  6.      Description:         Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)
复制代码

已经试过重新安装coreutils了,不行
回复 支持 反对

使用道具 举报

发表于 2009-5-9 12:58:09 | 显示全部楼层
不能病急乱投医。

要是我,首先怀疑的是文件系统出毛病了。fsck一下看看?
回复 支持 反对

使用道具 举报

发表于 2009-5-9 13:39:27 | 显示全部楼层
这么有意思,呵呵,别的方面没有影响么? 看看是不是bash的问题
回复 支持 反对

使用道具 举报

发表于 2009-5-9 13:44:54 | 显示全部楼层
关注一下。。。
回复 支持 反对

使用道具 举报

发表于 2009-5-9 13:58:31 | 显示全部楼层
呵呵,没碰到过,看来只有楼主你自己想办法解决了
回复 支持 反对

使用道具 举报

发表于 2009-5-9 14:06:54 | 显示全部楼层
难道你的 ls 不是 /bin/ls?试试 /bin/ls
回复 支持 反对

使用道具 举报

发表于 2009-5-9 14:09:47 | 显示全部楼层
嗯,用楼上的办法先试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-9 15:09:21 | 显示全部楼层
  1. lee@lab ~ $ ls -l /bin/ls
  2. -rwxr-xr-x 1 root root 100276 2009-05-09 06:56 /bin/ls
  3. lee@lab ~ $ ls                                       
  4. 10                   feh_005523_000001_20090509_105424_1024x768.jpg  Pictures
  5. bin                  g                                               res.db
  6. desktop              gentoo-cn                                       shuge
  7. Desktop              local                                           TODO
  8. desktop-20090508.7z  lseed_template.lseed                            todo.txt
  9. desktop-and-online   Music                                           Videos
  10. Documents            my-wallet                                       wdesktop
  11. FBooks               online                                          zh-wiki
  12. lee@lab ~ $ rm 10
  13. lee@lab ~ $ /bin/ls
  14. 10                   feh_005523_000001_20090509_105424_1024x768.jpg  Pictures
  15. bin                  g                                               res.db
  16. desktop              gentoo-cn                                       shuge
  17. Desktop              local                                           TODO
  18. desktop-20090508.7z  lseed_template.lseed                            todo.txt
  19. desktop-and-online   Music                                           Videos
  20. Documents            my-wallet                                       wdesktop
  21. FBooks               online                                          zh-wiki
  22. lee@lab ~ $
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-9 15:10:41 | 显示全部楼层
另,超级用户不会有ls 自动生成 10这个问题

http://forum.ubuntu.org.cn/viewt ... ;p=1265901#p1265901
回复 支持 反对

使用道具 举报

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

本版积分规则

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