免费注册 查看新帖 |

Chinaunix

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

[操作系统] 求助,关于使用nfs挂载根文件系统到问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-08-06 21:15 |只看该作者 |倒序浏览
系统在启动到过程中总是出现这个错误
  1. ALSA device list:
  2.   No soundcards found.
  3. TCP cubic registered
  4. NET: Registered protocol family 17
  5. Registering the dns_resolver key type
  6. drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
  7. eth0: link down
  8. IP-Config: Complete:
  9.      device=eth0, addr=192.168.10.102, mask=255.255.255.0, gw=192.168.10.1,
  10.      host=192.168.10.102, domain=, nis-domain=(none),
  11.      bootserver=192.168.10.100, rootserver=192.168.10.100, rootpath=
  12. eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
  13. VFS: Unable to mount root fs via NFS, trying floppy.
  14. VFS: Cannot open root device "nfs" or unknown-block(2,0)
  15. Please append a correct "root=" boot option; here are the available partitions:
  16. 1f00             256 mtdblock0  (driver?)
  17. 1f01             256 mtdblock1  (driver?)
  18. 1f02            5120 mtdblock2  (driver?)
  19. 1f03          256512 mtdblock3  (driver?)
  20. 1f04          262144 mtdblock4  (driver?)
复制代码
请问各位大侠,这个问题怎么解决?


nfs服务器是可用到
  1. acsy@jacsy-PC$ ls /mnt/
  2. jacsy@jacsy-PC$ sudo mount -t nfs 192.168.10.100:/home/rootfs /mnt
  3. [sudo] password for jacsy:
  4. jacsy@jacsy-PC$ ls /mnt/
  5. bin  dev  etc  home  lib  linuxrc  mnt  proc  root  sbin  sys  tmp  usr  var
  6. jacsy@jacsy-PC$
复制代码
附内核启动信息
  1. Starting kernel ...

  2. Uncompressing Linux... done, booting the kernel.
  3. Linux version 2.6.37.6 (jacsy@jacsy-PC) (gcc version 4.4.5 (crosstool-NG-1.9.3) ) #21 Sat Aug 6 20:23:18 CST 2011
  4. CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
  5. CPU: VIVT data cache, VIVT instruction cache
  6. Machine: MINI2440
  7. Memory policy: ECC disabled, Data cache writeback
  8. CPU S3C2440A (id 0x32440001)
  9. S3C24XX Clocks, Copyright 2004 Simtec Electronics
  10. S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
  11. CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
  12. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
  13. Kernel command line: noinitrd init=/linuxrc console=ttySAC0 root=/dev/nfs rw nfsroot=192.168.10.100:/home/rootfs, nolock ip=192.168.10.102:192.168.10.100:192.168.10.1:255.255.255.0::eth0:off mem=64M
  14. PID hash table entries: 256 (order: -2, 1024 bytes)
  15. Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  16. Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  17. Memory: 64MB = 64MB total
  18. Memory: 60524k/60524k available, 5012k reserved, 0K highmem
  19. Virtual kernel memory layout:
  20.     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
  21.     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
  22.     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
  23.     vmalloc : 0xc4800000 - 0xf6000000   ( 792 MB)
  24.     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
  25.     modules : 0xbf000000 - 0xc0000000   (  16 MB)
  26.       .init : 0xc0008000 - 0xc0029000   ( 132 kB)
  27.       .text : 0xc0029000 - 0xc03e7678   (3834 kB)
  28.       .data : 0xc03e8000 - 0xc040b2c0   ( 141 kB)
  29. SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  30. NR_IRQS:85
  31. irq: clearing pending status 02000000
  32. irq: clearing subpending status 00000003
  33. irq: clearing subpending status 00000002
  34. Console: colour dummy device 80x30
  35. console [ttySAC0] enabled
  36. Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
  37. pid_max: default: 32768 minimum: 301
  38. Mount-cache hash table entries: 512
  39. CPU: Testing write buffer coherency: ok
  40. gpiochip_add: gpios 288..303 (GPIOK) failed to register
  41. gpiochip_add: gpios 320.
  42.                         s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
  43. s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
  44. s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
  45. brd: module loaded
  46. nbd: registered device at major 43
  47. S3C24XX NAND Driver, (c) 2004 Simtec Electronics
  48. s3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
  49. s3c24xx-nand s3c2440-nand: NAND soft ECC
  50. NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung )
  51. Scanning device for bad blocks
  52. Bad eraseblock 334 at 0x0000029c0000
  53. Creating 5 MTD partitions on "NAND":
  54. 0x000000000000-0x000000040000 : "bootloader"
  55. 0x000000040000-0x000000080000 : "parameters"
  56. uncorrectable error :
  57. 0x000000080000-0x000000580000 : "kernel"
  58. uncorrectable error :
  59. 0x000000580000-0x000040580000 : "root file system"
  60. mtd: partition "root file system" extends beyond the end of device "NAND" -- size truncated to 0xfa80000
  61. ftl_cs: FTL header not found.
  62. 0x000000000000-0x000040000000 : "whole nand flash"
  63. mtd: partition "whole nand flash" extends beyond the end of device "NAND" -- size truncated to 0x10000000
  64. dm9000 Ethernet Driver, V1.31
  65. eth0: dm9000e at c481c300,c4820304 IRQ 51 MAC: 00:08:11:18:12:27 (platform data)
  66. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  67. s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
  68. s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
  69. s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
  70. hub 1-0:1.0: USB hub found
  71. hub 1-0:1.0: 2 ports detected
  72. usbcore: registered new interface driver libusual
  73. mice: PS/2 mouse device common for all mice
  74. S3C24XX RTC, (c) 2004,2006 Simtec Electronics
  75. i2c /dev entries driver
  76. S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
  77. s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
  78. cpuidle: using governor ladder
  79. sdhci: Secure Digital Host Controller Interface driver
  80. sdhci: Copyright(c) Pierre Ossman
  81. usbcore: registered new interface driver usbhid
  82. usbhid: USB HID core driver
  83. ALSA device list:
  84.   No soundcards found.
  85. TCP cubic registered
  86. NET: Registered protocol family 17
  87. Registering the dns_resolver key type
  88. drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
  89. eth0: link down
  90. IP-Config: Complete:
  91.      device=eth0, addr=192.168.10.102, mask=255.255.255.0, gw=192.168.10.1,
  92.      host=192.168.10.102, domain=, nis-domain=(none),
  93.      bootserver=192.168.10.100, rootserver=192.168.10.100, rootpath=
  94. eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
  95. VFS: Unable to mount root fs via NFS, trying floppy.
  96. VFS: Cannot open root device "nfs" or unknown-block(2,0)
  97. Please append a correct "root=" boot option; here are the available partitions:
  98. 1f00             256 mtdblock0  (driver?)
  99. 1f01             256 mtdblock1  (driver?)
  100. 1f02            5120 mtdblock2  (driver?)
  101. 1f03          256512 mtdblock3  (driver?)
  102. 1f04          262144 mtdblock4  (driver?)
  103. Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
  104. [<c002e6d8>] (unwind_backtrace+0x0/0xf0) from [<c02f69ac>] (panic+0x54/0x184)
  105. [<c02f69ac>] (panic+0x54/0x184) from [<c0008e84>] (mount_block_root+0x1c8/0x208)
  106. [<c0008e84>] (mount_block_root+0x1c8/0x208) from [<c0008f64>] (mount_root+0xa0/0xc0)
  107. [<c0008f64>] (mount_root+0xa0/0xc0) from [<c00090e4>] (prepare_namespace+0x160/0x1b8)
  108. [<c00090e4>] (prepare_namespace+0x160/0x1b8) from [<c0008438>] (kernel_init+0x108/0x148)
  109. [<c0008438>] (kernel_init+0x108/0x148) from [<c002a8f0>] (kernel_thread_exit+0x0/0x8)
复制代码

论坛徽章:
0
2 [报告]
发表于 2011-08-08 12:40 |只看该作者
问:
1)你测试挂载的机器是不是服务器自己的机器,确保同网段可进入
2)你是使用虚拟机还是独立的PC作服务器,虚拟机的网卡链接使用桥接
3)开发板挂载的时候返回错误是立刻返回错误还是有一段延时?立刻返回证明链路通,但服务被拒绝,而有一段时间延时,就是链路不通。可能是服务器的防火墙,selinux等
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP