ubuntu 8.04.1 精简版 (2008.08.26更新)

Ubuntu各种衍生版本
回复
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#46

帖子 ptptptptptpt » 2008-07-31 18:40

证实了!确实是 initrd 的问题

换用 8.04.1 的内核,用官方 8.04.1 desktop iso 中的 initrd.gz 来引导,可以正常关机。

若按那文章,用 /boot/ 中的 initrd 引导,则不能正常关机,只能强制关机。提示 什么 squashfs 不能读取 , io 错误 ,

fat32 分区没问题。

看来问题应该就出在 ntfs 文件系统支持上
头像
yaska
帖子: 1169
注册时间: 2007-10-28 21:35

#47

帖子 yaska » 2008-07-31 19:01

提示 什么 squashfs 不能读取 , io 错误
这个我碰到过。

官方 8.04.1 desktop iso 中的 initrd.gz 是cpio格式吗?
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#48

帖子 ptptptptptpt » 2008-07-31 19:27

没错
头像
yaska
帖子: 1169
注册时间: 2007-10-28 21:35

#49

帖子 yaska » 2008-08-01 10:19

老兄,我找到原因了。

官方的filesystem.squahsfs 放到ntfs分区上,能正常关机,的确是因为关机时跳过了/sbin/mount.ntfs,和initrd没有关系的。

$ cat /etc/init.d/sendsigs
for pid in $(cat /var/run/sendsigs.omit); do
OMITPIDS="${OMITPIDS:+$OMITPIDS }-o $pid"
done

sengsigs会跳过 /var/run/sendsigs.omi里的进程。 你看一下这个文件的内容就知道了。

代码: 全选

ubuntu@ubuntu:/var/run$ cat /var/run/sendsigs.omit
3080
ubuntu@ubuntu:/var/run$ ps ax |grep 3080
 3080 ?        Ss     0:01 /sbin/mount.ntfs /dev/sdb1 /cdrom -o ro,noatime
 9674 pts/0    R+     0:00 grep 3080
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#50

帖子 leeaman » 2008-08-01 14:27

去除 quiet 参数后如图
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#51

帖子 ptptptptptpt » 2008-08-01 15:26

yaska 写了:老兄,我找到原因了。

官方的filesystem.squahsfs 放到ntfs分区上,能正常关机,的确是因为关机时跳过了/sbin/mount.ntfs,和initrd没有关系的。

$ cat /etc/init.d/sendsigs
for pid in $(cat /var/run/sendsigs.omit); do
OMITPIDS="${OMITPIDS:+$OMITPIDS }-o $pid"
done

sengsigs会跳过 /var/run/sendsigs.omi里的进程。 你看一下这个文件的内容就知道了。

代码: 全选

ubuntu@ubuntu:/var/run$ cat /var/run/sendsigs.omit
3080
ubuntu@ubuntu:/var/run$ ps ax |grep 3080
 3080 ?        Ss     0:01 /sbin/mount.ntfs /dev/sdb1 /cdrom -o ro,noatime
 9674 pts/0    R+     0:00 grep 3080

一定是 inuitrd 的问题

同一个 filesystem.squahsfs (我自己做的那个),用官方光盘里的 initrd.gz 引导,
ubuntu@ubuntu:~$ cat /var/run/sendsigs.omit
2506

ubuntu@ubuntu:~$ ps ax |grep 2506
2506 ? Ss 0:00 /sbin/mount.ntfs /dev/sda3 /cdrom -o ro,noatime
8186 pts/0 R+ 0:00 grep 2506
ubuntu@ubuntu:~$

用 /boot/initrd.img*** 引导,
ubuntu@ubuntu:/var/run$ cat /var/run/sendsigs.omit
cat: /var/run/sendsigs.omit: 没有该文件或目录

我再引导官方的 filesystem.squahsfs 试试
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#52

帖子 ptptptptptpt » 2008-08-01 15:43

试过了,结果一样
头像
yaska
帖子: 1169
注册时间: 2007-10-28 21:35

#53

帖子 yaska » 2008-08-01 15:45

就算是initrd,也是把/sbin/mount.ntfs的进程号写进/var/run/sendsigs.omit 而已。

这个没关系,写个简单的脚本就可以了。。 rc.local都可以搞定。 :D

你手动试试。我试过了。
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#54

帖子 ptptptptptpt » 2008-08-01 16:06

这个问题本身不是问题,就算不能正常关机也不影响使用

问题在于,会不会还有其它问题 ??比如 leeaman 所报告的,肯定是initrd 的问题,但具体出在哪里,完全不知道 :? :?

所以,搞到官方的制作脚本是正经,个人的力量太小了,常常顾此失彼……
头像
yaska
帖子: 1169
注册时间: 2007-10-28 21:35

#55

帖子 yaska » 2008-08-01 16:17

ptptptptptpt 写了:这个问题本身不是问题,就算不能正常关机也不影响使用

问题在于,会不会还有其它问题 ??比如 leeaman 所报告的,肯定是initrd 的问题,但具体出在哪里,完全不知道 :? :?

所以,搞到官方的制作脚本是正经,个人的力量太小了,常常顾此失彼……
你是说制作initrd的官方脚本? mkinitramfs算不

leeaman的问题,先检查MD5.。 :D
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#56

帖子 ptptptptptpt » 2008-08-01 16:26

是制作整个 live cd 的脚本。mkinitramfs 是不是有某些参数??还是装的软件会影响它??还是手动往 initrd中添加了某些文件??

我没给md5 :oops: 不过 csper打了zip包,都正常解开了,应该不会错
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#57

帖子 ptptptptptpt » 2008-08-01 23:05

修正版本已上传。

leeaman 兄可以再试试 :) :)
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#58

帖子 leeaman » 2008-08-02 5:30

这次就是运行到那个进度条在那里晃,最后一步是disabling resticted-manager ... ,半天没有反应然后就换成一个小光标在屏幕左上角闪了

提示:我的电脑在安装arch2008.04的时候如果选用新的硬盘模式也会这个样子,2008.06就没有这个问题了,不知道是不是我的双硬盘的数据线 or 跳线会不会有什么影响?我切换到控制台1显示是mount root file system失败(大概意思是这样的)


ps:不知道是我的rp jp出了问题,还是和你的八字不合, :cry: 第一次试你的东西就是这么麻烦的 :oops:
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#59

帖子 ptptptptptpt » 2008-08-02 8:14

哦,你是不是还是用的旧的 menulst ??把 splash 去掉试试??
头像
yaska
帖子: 1169
注册时间: 2007-10-28 21:35

#60

帖子 yaska » 2008-08-02 9:46

leeaman,启动加个break=mount
启动到控制台后:

代码: 全选

. /scripts/casper
mountroot
看看是不是这里出错。


ps:
我看了initrd,的确有这么一句:
scripts/local-bottom/ntfs_3g:pidof mount.ntfs >> /dev/.initramfs/varrun/sendsigs.omit
还有/boot/initrd.img**比/casper/initrd.gz少了 squashfs,unionfs这些模块,scripts目录下还少了casper casper-functions
等脚本,这些都是用于livecd的。
我估计/boot/initrd.img**是安装到硬盘之后,用update-initramfs生成的。
回复