免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2134 | 回复: 1
打印 上一主题 下一主题

问题:xen-kernel不能找到root fs [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-30 00:26 |只看该作者 |倒序浏览
请教:
fedora 3, hdc1 is /boot, hdc2 is swap, hdc3 is /, 下载的src包,根据里面README的说明进行编译:
make world
make install
然后发现grub被修改为:
title Xen 3.0 / XenLinux 2.6
        root (hd0,0)
        kernel /xen-3.gz dom0_mem=262144
       module /vmlinuz-2.6-xen root=/dev/sda4 ro console=tty0
我很奇怪为什么是sda4,我的/应该是hdc3呀!
启动xen内核,结果不能mount root 的文件系统:
  VFS: Cannot open root device "sda4" or unknown-block(0,0)
  Please append a correct "root=" boot option
把sda4改成/dev/hdc3也不行,请高手们指点一下,非常感谢!

其他相关信息如下:
--------------------------------------------------------------

[root@localhost xen-install]# fdisk -l

Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1          13      104391   83  Linux
/dev/hdc2              14         144     1052257+  82  Linux swap
/dev/hdc3             145        9729    76991512+  83  Linux

--------------------------------------------------------------

[root@localhost xen-install]# df -lh
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdc3              73G  4.4G   65G   7% /
/dev/hdc1              99M   29M   65M  31% /boot
none                  249M     0  249M   0% /dev/shm

--------------------------------------------------------------

[root@localhost xen-install]# cat /proc/partitions
major minor  #blocks  name

  22     0   78150744 hdc
  22     1     104391 hdc1
  22     2    1052257 hdc2
  22     3   76991512 hdc3
  
--------------------------------------------------------------
[root@localhost xen-install]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
#/dev/hdc3                 /                       ext3    defaults        1 1
LABEL=/                 /                       ext3    defaults        1 1
#/dev/hdc1             /boot                   ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
#/dev/hdc2         swap                    swap    defaults        0 0
LABEL=SWAP-hdc2         swap                    swap    defaults        0 0
/dev/hdd                /media/cdrom            auto    pamconsole,ro,exec,noauto,managed 0 0
  
--------------------------------------------------------------

/boot/grub/grub.conf:
default=0
timeout=8
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9-1.667)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.9-1.667.img

title Xen 3.0 / XenLinux 2.6
        root (hd0,0)
        kernel /xen-3.gz dom0_mem=262144
#       module /vmlinuz-2.6-xen ro root=LABEL=/
#       module /vmlinuz-2.6-xen root=/dev/sda4 ro console=tty0
        module /vmlinuz-2.6-xen root=/dev/hdc3 ro console=tty0
        module /xen.new.img
--------------------------------------------------------------

论坛徽章:
0
2 [报告]
发表于 2007-05-30 12:32 |只看该作者
orz,总算搞定!乱动了一下内核编译选项,大概跟ext3和ide接口有关吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP