ubuntu PE (8.10)

Ubuntu各种衍生版本
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: ubuntu PE (8.10)

#31

帖子 billbear » 2008-12-11 23:01

你说你那里网卡是 eth1,然而,正常的话,应该从 eth0开始,所以,可能系统中残留了我电脑的网卡信息
是这样的,应该没有关系。 ghost ubuntu 里 eth0 也被母机的网卡占据,用户网卡也是从 eth1 开始的,并没有出现麻烦。
我猜应该是无线网卡的问题。等我从出差地返回的时候找一台没有无线的机器试试。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: ubuntu PE (8.10)

#32

帖子 billbear » 2008-12-11 23:04

我觉得等待 15s 20s 已经是可以接受的了。2分钟就很难接受。
dhcp 的 timeout 5s 应该足够了,默认设置是 1 分钟。
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

Re: ubuntu PE (8.10)

#33

帖子 ptptptptptpt » 2008-12-11 23:15

billbear 写了:
你说你那里网卡是 eth1,然而,正常的话,应该从 eth0开始,所以,可能系统中残留了我电脑的网卡信息
是这样的,应该没有关系。 ghost ubuntu 里 eth0 也被母机的网卡占据,用户网卡也是从 eth1 开始的,并没有出现麻烦。
我猜应该是无线网卡的问题。等我从出差地返回的时候找一台没有无线的机器试试。
ghost ubuntu 启动时不会运行那个脚本。只有在 casper 模式启动时才会运行。

改了下 initrd,删除了那个脚本,你可以试试

http://ftp.ubuntu.org.cn/home/ptptptptp ... mg-2.6.zip
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: ubuntu PE (8.10)

#34

帖子 billbear » 2008-12-12 14:12

改了下 initrd,删除了那个脚本,你可以试试
倒是不卡了,也上不了网了。等等,我在 /etc/rc.local 里加一句 dhclient 试试。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: ubuntu PE (8.10)

#35

帖子 billbear » 2008-12-12 14:51

我在 /etc/rc.local 里加一句 dhclient 试试
好了。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: ubuntu PE (8.10)

#36

帖子 billbear » 2008-12-12 15:12

不过在未接入网线时运行 rc.local 还会默认等待 dhcp 60秒。因此还是要在 /etc/dhcp3/dhclient.conf 加入
timeout 5
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: ubuntu PE (8.10)

#37

帖子 想入非非 » 2008-12-12 15:45

看看pe版 :em06
Ubuntu User
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

Re: ubuntu PE (8.10)

#38

帖子 ptptptptptpt » 2008-12-12 17:17

billbear 写了:
改了下 initrd,删除了那个脚本,你可以试试
倒是不卡了,也上不了网了。等等,我在 /etc/rc.local 里加一句 dhclient 试试。
启动后,从 主菜单 --- system --- 网络 配置一下,看行不行?

还有,网卡信息似乎存在 /etc/network/interface 里面。把它清空,再用旧的 initrd ,看看如何?
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: ubuntu PE (8.10)

#39

帖子 billbear » 2008-12-12 21:22

启动后,从 主菜单 --- system --- 网络 配置一下,看行不行?
那自然是可以的。
还有,网卡信息似乎存在 /etc/network/interface 里面。把它清空,再用旧的 initrd ,看看如何?
有可能,我试试。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: ubuntu PE (8.10)

#40

帖子 billbear » 2008-12-12 21:28

还有,网卡信息似乎存在 /etc/network/interface 里面。把它清空,再用旧的 initrd ,看看如何?
无效。这个文件是在启动时动态改变的。因此我的修改是白费的。
你原先的:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

iface eth0 inet dhcp

auto eth0
我把 eth0 行都删掉了。但是启动后变成了这样:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet dhcp

auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

Re: ubuntu PE (8.10)

#41

帖子 ptptptptptpt » 2008-12-12 21:51

billbear 写了:
启动后,从 主菜单 --- system --- 网络 配置一下,看行不行?
那自然是可以的。
既然如此,干脆就把 initrd 中的网络配置脚本去掉。我觉得也不必在 /etc/rc.local 里加 dhclient ,以免耽误时间 —— 并非所有人都用都用 dhcp ,而且并非每一次都会用到网络。有需要的话可以从 主菜单 --- system --- 网络 来配置。

现在我好奇的是,旧的网卡信息到底存在哪里??
notdiebird
帖子: 52
注册时间: 2007-08-24 16:35

Re: ubuntu PE (8.10)

#42

帖子 notdiebird » 2009-01-09 15:31

看起来6pt大大的pe还是不够prayaya好,我还是==吧
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: ubuntu PE (8.10)

#43

帖子 billbear » 2009-02-06 3:36

请教一下,initrd 应该修改些什么,才能从 squashfs 启动呢。
我用你的方法,把以前做的 ghost ubuntu 8.10 打包成了 squashfs,用他里面的 vmlinuz 和安装光盘的 initrd,借鉴你的 menu.lst,成功地启动了。我的疑虑是,当时做 ghost 镜像时内核尚未更新,也就是 gho 里面的 vmlinuz 和光盘上的 initrd 是同一时期的,启动成功了;可是假如用更新的内核和光盘里老的 initrd 搭配使用行吗?是不是最好还是自己修改和内核配套的 initrd 为好呢?
另外,我这样的制作过程是不是合乎规范呢,首先在虚拟机安装 ghost ubuntu 在 sda1,然后从 livecd iso 启动,直接把 sda1 打包,接着拷贝 sda1 里的 vmlinuz 和 iso 里的 initrd。
因为想用 ext4,所以打算摒弃 ghost 了,以后就用 squashfs 来复制系统。他的压缩率确实令我印象深刻,比最高压缩的 ghost 映像文件要小 15%。
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

Re: ubuntu PE (8.10)

#44

帖子 ptptptptptpt » 2009-02-06 9:17

billbear 写了:可是假如用更新的内核和光盘里老的 initrd 搭配使用行吗?是不是最好还是自己修改和内核配套的 initrd 为好呢?
对,最好还是用新的 initrd。给系统安装 casper、casper-lupin 等几个包,会自动给 initrd 添加上启动脚本。参考这个 viewtopic.php?f=77&t=174719&start=0

可以解开initrd,稍加定制。参考这里2楼 viewtopic.php?f=86&t=51997
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

Re: ubuntu PE (8.10)

#45

帖子 ptptptptptpt » 2009-02-06 9:25

不过,似乎不需要定制 initrd 。可以把装好的系统打包成 squashfs 。要恢复到硬盘,随便找个 live cd 启动,就可以操作。 当然要想用 ext4 可能需要比较新的 live cd 。

写过一个脚本来恢复 squashfs 映像到硬盘分区,就是那个 ghost for ubuntu ,不过很粗糙。等我完善下发上来。
回复