LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1252|回复: 14

[内核]freebsd5.4 编译内核后出现些问题,大家帮忙看看 谢谢

[复制链接]
发表于 2005-11-11 21:16:13 | 显示全部楼层 |阅读模式
编译内核后reboot
到最后就出现下面的错误: 不知道是为什么?

Mounting root from ufs:/dev/ad0s3a
setrootbyname faild
ffs_mountroot: can't find rootvp
Root mount failed: 6
Manual root filesystem specification
        <fstype>:<device> Mount <device> Using filesystem <fstype>
                eg. ufs:da0s1a
        ? List valid disk root devices
        <empty line> About manual input       


也不知道怎么加载文件系统
发表于 2005-11-11 21:26:30 | 显示全部楼层
内核配置文件呢?是不是把FFS也去掉了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-11 22:05:52 | 显示全部楼层
options          FFS               # Berkeley Fast Filesystem


我没有去掉
回复 支持 反对

使用道具 举报

发表于 2005-11-11 22:16:05 | 显示全部楼层
Post by border1985
options          FFS               # Berkeley Fast Filesystem


我没有去掉

请给出内核配置文件和/etc/fstab
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-11 22:20:16 | 显示全部楼层
我现在进不去freebsd
不知道还有怎么办法吗
回复 支持 反对

使用道具 举报

发表于 2005-11-11 22:24:20 | 显示全部楼层
boot /boot/kernel.old
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-12 19:27:58 | 显示全部楼层
内核配置文件



  1. #
  2. # GENERIC -- Generic kernel configuration file for FreeBSD/i386
  3. #
  4. # For more information on this file, please read the handbook section on
  5. # Kernel Configuration Files:
  6. #
  7. #    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
  8. #
  9. # The handbook is also available locally in /usr/share/doc/handbook
  10. # if you've installed the doc distribution, otherwise always see the
  11. # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
  12. # latest information.
  13. #
  14. # An exhaustive list of options and more detailed explanations of the
  15. # device lines is also present in the ../../conf/NOTES and NOTES files.
  16. # If you are in doubt as to the purpose or necessity of a line, check first
  17. # in NOTES.
  18. #
  19. # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.413.2.13 2005/04/02 16:37:58 scottl Exp $

  20. machine                i386
  21. cpu                I686_CPU
  22. ident                  BORDER               
  23. # To statically compile in device wiring instead of /boot/device.hints
  24. #hints                "GENERIC.hints"                # Default places to look for devices.

  25. options         SCHED_4BSD                # 4BSD scheduler
  26. options         INET                        # InterNETworking
  27. options         FFS                        # Berkeley Fast Filesystem
  28. options         SOFTUPDATES                # Enable FFS soft updates support
  29. options         UFS_ACL                        # Support for access control lists
  30. options         UFS_DIRHASH                # Improve performance on big directories
  31. options         MD_ROOT                        # MD is a potential root device
  32. options         NFSCLIENT                # Network Filesystem Client
  33. options         NFSSERVER                # Network Filesystem Server
  34. options         NFS_ROOT                # NFS usable as /, requires NFSCLIENT
  35. options         MSDOSFS                        # MSDOS Filesystem
  36. options                NTFS
  37. options         CD9660                        # ISO 9660 Filesystem
  38. options         PROCFS                        # Process filesystem (requires PSEUDOFS)
  39. options         PSEUDOFS                # Pseudo-filesystem framework
  40. options         GEOM_GPT                # GUID Partition Tables.
  41. options         COMPAT_43                # Compatible with BSD 4.3 [KEEP THIS!]
  42. options         COMPAT_FREEBSD4                # Compatible with FreeBSD4
  43. options         KTRACE                        # ktrace(1) support
  44. options         SYSVSHM                        # SYSV-style shared memory
  45. options         SYSVMSG                        # SYSV-style message queues
  46. options         SYSVSEM                        # SYSV-style semaphores
  47. options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
  48. options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
  49. options         ADAPTIVE_GIANT                # Giant mutex is adaptive.

  50. device                apic                        # I/O APIC

  51. # Bus support.  Do not remove isa, even if you have no isa slots
  52. device                isa
  53. device                pci


  54. # ATA and ATAPI devices
  55. device                ata
  56. options         ATA_STATIC_ID        # Static device numbering


  57. # atkbdc0 controls both the keyboard and the PS/2 mouse
  58. device                atkbdc                # AT keyboard controller
  59. device                atkbd                # AT keyboard
  60. device                psm                # PS/2 mouse
  61. device                vga                # VGA video card driver

  62. device                splash                # Splash screen and screen saver support

  63. # syscons is the default console driver, resembling an SCO console
  64. device                sc

  65. device                agp                # support several AGP chipsets

  66. # Floating point support - do not disable.
  67. device                npx

  68. # Add suspend/resume support for the i8254.
  69. device                pmtimer

  70. # Serial (COM) ports
  71. device                sio                # 8250, 16[45]50 based serial ports

  72. # Parallel port
  73. device                ppc
  74. device                ppbus                # Parallel port bus (required)
  75. device                lpt                # Printer
  76. device                plip                # TCP/IP over parallel
  77. device                ppi                # Parallel port interface device


  78. # PCI Ethernet NICs that use the common MII bus controller code.
  79. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
  80. device                miibus                # MII bus support
  81. device                rl                # RealTek 8129/8139

  82. # Pseudo devices.
  83. device                loop                # Network loopback
  84. device                mem                # Memory and kernel memory devices
  85. device                io                # I/O device
  86. device                random                # Entropy device
  87. device                ether                # Ethernet support
  88. device                sl                # Kernel SLIP
  89. device                ppp                # Kernel PPP
  90. device                tun                # Packet tunnel.
  91. device                pty                # Pseudo-ttys (telnet etc)
  92. device                md                # Memory "disks"

  93. # The `bpf' device enables the Berkeley Packet Filter.
  94. # Be aware of the administrative consequences of enabling this!
  95. # Note that 'bpf' is required for DHCP.
  96. device                bpf                # Berkeley packet filter


  97. device        sound
  98. device        snd_ich           # CMI 9738


  99. # USB support
  100. device                uhci                # UHCI PCI->USB interface
  101. device                usb                # USB Bus (required)


复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-12 19:29:07 | 显示全部楼层
/etc/fstab



  1. # Device                Mountpoint        FStype        Options                Dump        Pass#
  2. /dev/ad0s3b                none                swap        sw                0        0
  3. /dev/ad0s3a                /                ufs        rw                1        1
  4. /dev/ad0s3g                /home                ufs        rw                2        2
  5. /dev/ad0s3e                /tmp                ufs        rw                2        2
  6. /dev/ad0s3f                /usr                ufs        rw                2        2
  7. /dev/ad0s3d                /var                ufs        rw                2        2
  8. /dev/acd0                /cdrom                cd9660        ro,noauto        0        0


复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-12 19:31:15 | 显示全部楼层
用dmesg 看到的

/usr/obj/usr/src/sys/GENERIC


  1. Copyright (c) 1992-2005 The FreeBSD Project.
  2. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
  3.         The Regents of the University of California. All rights reserved.
  4. FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005
  5.     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
  6. Timecounter "i8254" frequency 1193182 Hz quality 0
  7. CPU: Intel(R) Celeron(R) CPU 1.80GHz (1814.01-MHz 686-class CPU)
  8.   Origin = "GenuineIntel"  Id = 0xf13  Stepping = 3
  9.   Features=0x3febf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
  10. real memory  = 267321344 (254 MB)
  11. avail memory = 251936768 (240 MB)
  12. npx0: <math processor> on motherboard
  13. npx0: INT 16 interface
  14. acpi0: <AMIINT INTEL845> on motherboard
  15. acpi0: Power Button (fixed)
  16. Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
  17. acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
  18. cpu0: <ACPI CPU> on acpi0
  19. acpi_throttle0: <ACPI CPU Throttling> on cpu0
  20. acpi_button0: <Power Button> on acpi0
  21. pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
  22. pci0: <ACPI PCI bus> on pcib0
  23. agp0: <Intel 82845G (845G GMCH) SVGA controller> mem 0xdff80000-0xdfffffff,0xd0000000-0xd7ffffff irq 11 at device 2.0 on pci0
  24. agp0: detected 892k stolen memory
  25. agp0: aperture size is 128M
  26. uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xec00-0xec1f irq 11 at device 29.0 on pci0
  27. usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
  28. usb0: USB revision 1.0
  29. uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  30. uhub0: 2 ports with 2 removable, self powered
  31. pci0: <serial bus, USB> at device 29.7 (no driver attached)
  32. pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
  33. pci3: <ACPI PCI bus> on pcib1
  34. rl0: <RealTek 8139 10/100BaseTX> port 0xcc00-0xccff mem 0xdfdfff00-0xdfdfffff irq 11 at device 1.0 on pci3
  35. miibus0: <MII bus> on rl0
  36. rlphy0: <RealTek internal media interface> on miibus0
  37. rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
  38. rl0: Ethernet address: 00:e0:4d:05:61:c5
  39. isab0: <PCI-ISA bridge> at device 31.0 on pci0
  40. isa0: <ISA bus> on isab0
  41. atapci0: <Intel ICH4 UDMA100 controller> port 0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
  42. ata0: channel #0 on atapci0
  43. ata1: channel #1 on atapci0
  44. pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
  45. pci0: <multimedia, audio> at device 31.5 (no driver attached)
  46. fdc0: <floppy drive controller> port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3 irq 6 drq 2 on acpi0
  47. sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
  48. sio0: type 16550A
  49. ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
  50. ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
  51. ppbus0: <Parallel port bus> on ppc0
  52. plip0: <PLIP network interface> on ppbus0
  53. lpt0: <Printer> on ppbus0
  54. lpt0: Interrupt-driven port
  55. ppi0: <Parallel I/O> on ppbus0
  56. atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
  57. atkbd0: <AT Keyboard> irq 1 on atkbdc0
  58. kbd0 at atkbd0
  59. psm0: <PS/2 Mouse> irq 12 on atkbdc0
  60. psm0: model IntelliMouse, device ID 3
  61. pmtimer0 on isa0
  62. sc0: <System console> at flags 0x100 on isa0
  63. sc0: VGA <16 virtual consoles, flags=0x300>
  64. sio1: configured irq 3 not in bitmap of probed irqs 0
  65. sio1: port may not be enabled
  66. vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
  67. Timecounter "TSC" frequency 1814014528 Hz quality 800
  68. Timecounters tick every 10.000 msec
  69. ad0: 38166MB <ST340810A/3.31> [77545/16/63] at ata0-master UDMA100
  70. acd0: CDROM <MATSHITA CR-585/ZP18> at ata1-master PIO3
  71. Mounting root from ufs:/dev/ad0s3a


复制代码
回复 支持 反对

使用道具 举报

发表于 2005-11-12 19:36:28 | 显示全部楼层
加入:
device                atadisk
device                atapicd
重新编译内核
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表