LinuxSir.cn,穿越时空的Linuxsir!

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

发现一个glibc的

[复制链接]
发表于 2007-4-9 05:35:20 | 显示全部楼层 |阅读模式
前面说到我的/dev下的东东全没了,一开始还以为是升级内核的时候断电造成的。重装了一次,发现升级glibc后,/dev下的东东又没了,吐血!!!
  1. Targets: glibc-2.5-8
  2. Total Package Size:   10.1 MB
  3. Proceed with upgrade? [Y/n] y
  4. :: Retrieving packages from current...
  5. glibc-2.5-8              [################] 100%   10337K    33.9K/s  00:00:49
  6. checking package integrity... done.
  7. loading package data... done.
  8. checking for file conflicts... done.
  9. upgrading glibc... done.
  10. reloading init: init: /dev/initctl: No such file or directory
  11. done.
  12.   ==> ATTENTION INTERNATIONAL USERS:
  13.   ==>
  14.   ==> Locales are no longer included in the glibc package.
  15.   ==> They are generated by /usr/sbin/locale-gen depending on the contents
  16.   ==> of /etc/locale.gen.
  17.   ==> glibc will try to autodetect the required locales now, if you need
  18.   ==> additional locales, please enable them in /etc/locale.gen and run
  19.   ==> /usr/sbin/locale-gen
  20.   ==>
  21. Generating locales...
  22.   en_US.UTF-8... done
  23. Generation complete.
复制代码
想不通,难道是我chroot的原因?今天用base盘装好个字符界面的系统就进ubuntu chroot过去pacmac -syu 因为觉得源的速度不理想,中途有几次用ctrl+c 然后换源,最后先升级了内核才升级的glibc,升级完内核的时候我还刻意看了一下/dev 里面的东东都还是有的,结果再升级glibc,升级完就XXOX了。。。郁闷
 楼主| 发表于 2007-4-9 05:59:53 | 显示全部楼层
.........无奈+无语  用chroot居然看不到/dev下的东东,重启一次就好了,但是今晚装系统的时候有次也是更新完进不了系统,还我紧张一晚上,一装个什么就看看/dev下的东西还在不在。
  1. winding@ubuntu:~$ cd /mnt/arch/dev/
  2. winding@ubuntu:/mnt/arch/dev$ ls
  3. console  null  zero
  4. winding@ubuntu:/mnt/arch/dev$ ls -a
  5. .  ..  console  null  zero
  6. winding@ubuntu:/mnt/arch/dev$ chroot /mnt/arch/
  7. chroot: cannot change root directory to /mnt/arch/: Operation not permitted
  8. winding@ubuntu:/mnt/arch/dev$ sudo chroot /mnt/arch/
  9. Password:
  10. bash-3.2# cd /dev
  11. bash-3.2# ls
  12. console  null  zero
复制代码
回复 支持 反对

使用道具 举报

发表于 2007-4-9 21:14:17 | 显示全部楼层
你chmod过去看不到/dev是很正常的

因为你没有用到arch的内核。只是用了arch的shell

所以/dev下的硬件信息当然就没有了。

其实你真实启动的时候看/dev的时候。里面的文件似乎都不是真实的文件。大小非常小。

有些是0
回复 支持 反对

使用道具 举报

发表于 2007-4-10 23:42:46 | 显示全部楼层
chroot之前,先mount -o bind /dev /mnt/dev
回复 支持 反对

使用道具 举报

发表于 2007-4-11 18:57:37 | 显示全部楼层
chroot下是没有内核的,所以chroot下的/dev就是物理挂载的/dev了,所以按理说/dev下应该是有东西在的~

其实这些挂载的东西是写在你的一个启动服务里面,譬如说arch64下chroot一个arch32,需要一个自己设置一个arch32的服务,楼主是否启动了该服务呢?
回复 支持 反对

使用道具 举报

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

本版积分规则

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