歡迎您光臨本站 註冊首頁

問題:xen-kernel不能找到root fs

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

問題:xen-kernel不能找到root fs

請教:
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也不行,請高手們指點一下,非常感謝!

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

# 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

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

# 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

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

# cat /proc/partitions
major minor  #blocks  name

  22     0   78150744 hdc
  22     1     104391 hdc1
  22     2    1052257 hdc2
  22     3   76991512 hdc3
  
--------------------------------------------------------------
# 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
--------------------------------------------------------------
《解決方案》

orz,總算搞定!亂動了一下內核編譯選項,大概跟ext3和ide介面有關吧。

[火星人 ] 問題:xen-kernel不能找到root fs已經有586次圍觀

http://coctec.com/docs/service/show-post-8302.html