编译2.6.24内核的奇怪问题,高手请进来指点一下,谢谢

编译打包和其他
jerome_cheung
帖子: 5
注册时间: 2008-05-22 10:45

#16

帖子 jerome_cheung » 2008-05-28 11:58

我怀疑是虚拟机的问题,正在测试
yoyu007
帖子: 195
注册时间: 2007-09-02 10:08

#17

帖子 yoyu007 » 2008-05-29 0:37

编绎时选上:
include IDE/ATA-2 DISK support
SCSI device support
SCSI disk support

否则启动时会出现“waiting for root file system”的提示而停滞不前。
cloudice
帖子: 19
注册时间: 2006-04-06 22:04

#18

帖子 cloudice » 2008-05-29 11:52

回楼上:
这些选项都选上了~
启动的时候也确实是停在“waiting for root file system”这句提示后面~
还有什么其他建议不??
chasye
帖子: 333
注册时间: 2007-05-13 15:20

#19

帖子 chasye » 2008-05-31 10:17

kernel /boot/vmlinuz-2.6.24 root=/dev/**** ro quiet nosplash
头像
cnkilior
论坛版主
帖子: 4984
注册时间: 2007-08-05 17:40

#20

帖子 cnkilior » 2008-05-31 11:07

和我的问题差不多。。

把sda改成hda

不过fsck会出错
启动后
原内核启动也会出错,报告日志不完整。。不知道我的情况和LZ的是不是一样》!
jerome_cheung
帖子: 5
注册时间: 2008-05-22 10:45

虚拟机的问题

#21

帖子 jerome_cheung » 2008-06-10 12:19

同样的方法,我终于实现了
关键是虚拟机的问题,安装ubuntu的时候不能按虚拟机的预定义配置(Ubuntu系统),创建虚拟workstation选择系统的时候选“linux”->"other linux",安装ubuntu就可以
mandagod
帖子: 13
注册时间: 2007-01-21 10:47

Re: 编译2.6.24内核的奇怪问题,高手请进来指点一下,谢谢

#22

帖子 mandagod » 2008-08-24 0:15

http://ryan.blog.ubuntu.org.cn/
看这篇blog!



cloudice 写了:环境:vmware+ubuntu7.01
grub:

title Ubuntu, kernel 2.6.24
root (hd0,0)
kernel /boot/vmlinuz-2.6.24 root=UUID=ca6f5676-9c11-4aad-8dbc-1a977487b66c ro quiet splash
initrd /boot/initrd.img-2.6.24
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=ca6f5676-9c11-4aad-8dbc-1a977487b66c ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=ca6f5676-9c11-4aad-8dbc-1a977487b66c ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet

grub配置不知道是否有错,但是我想我用的是跟原来系统一样的配置参数,原来系统可正常启动,现在的应该也可以吧

不用initrd启动的时候会出现kernel panic,错误提示不能正确mount根文件系统,用了initrd启动后不会出错,但是出现的内容如下图:

好象并没有mount到根文件系统,而是直接进到了initrd里面了。

用df查看:

Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7.5G 4.3G 2.9G 60% /
varrun 126M 104K 125M 1% /var/run
varlock 126M 0 126M 0% /var/lock
procbususb 126M 72K 125M 1% /proc/bus/usb
udev 126M 72K 125M 1% /dev
devshm 126M 0 126M 0% /dev/shm
lrm 126M 33M 93M 27% /lib/modules/2.6.20-15-generic/volatile
[/img]

不知道我的/boot在哪个分区的哦,是不是也是sda1?

请大家指点下哈~谢谢了!
回复