LinuxSir.cn,穿越时空的Linuxsir!

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

[Help]FreeBSD 5.3 编译内核后无法进入系统

[复制链接]
发表于 2005-2-16 21:59:27 | 显示全部楼层 |阅读模式
FreeBSD 5.3 编译内核后无法进入系统,提示信息如下:
------------------------------------------------------------------------------
Mounting root from ufs:/dev/ad0s1a
Setrootbyname failed
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 boot devices
<empty line> Abort manual input
mountroot>
--------------------------------------------------------------------------------

请朋友们指教,谢谢!
发表于 2005-2-17 11:10:35 | 显示全部楼层
进入单用户模式使用以前的内核启动.

修改内核配置文件,里面应该有一项:ATA什么的你给删除掉了.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-17 14:35:35 | 显示全部楼层
解决了,重新编译了一次,后来好了。
可不小心把前次的配置文件删掉了,可惜没弄明白那个选项造成的。
这次的配置情况如下:
  1. ------------------------------------------------------------------------------------------------
  2. #
  3. # GENERIC -- Generic kernel configuration file for FreeBSD/i386
  4. #
  5. # For more information on this file, please read the handbook section on
  6. # Kernel Configuration Files:
  7. #
  8. #    [url]http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html[/url]
  9. #
  10. # The handbook is also available locally in /usr/share/doc/handbook
  11. # if you've installed the doc distribution, otherwise always see the
  12. # FreeBSD World Wide Web server ([url]http://www.FreeBSD.org/[/url]) for the
  13. # latest information.
  14. #
  15. # An exhaustive list of options and more detailed explanations of the
  16. # device lines is also present in the ../../conf/NOTES and NOTES files.
  17. # If you are in doubt as to the purpose or necessity of a line, check first
  18. # in NOTES.
  19. #
  20. # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.413.2.6.2.2 2004/10/24 18:02:52 scottl Exp $

  21. machine                i386
  22. cpu                I686_CPU
  23. ident                GENERIC

  24. # To statically compile in device wiring instead of /boot/device.hints
  25. #hints                "GENERIC.hints"                # Default places to look for devices.

  26. options         SCHED_4BSD                # 4BSD scheduler
  27. options         INET                        # InterNETworking
  28. options         INET6                        # IPv6 communications protocols
  29. options         FFS                        # Berkeley Fast Filesystem
  30. options         SOFTUPDATES                # Enable FFS soft updates support
  31. options         UFS_ACL                        # Support for access control lists
  32. options         UFS_DIRHASH                # Improve performance on big directories
  33. options         MD_ROOT                        # MD is a potential root device
  34. options         NFSCLIENT                # Network Filesystem Client
  35. options         NFSSERVER                # Network Filesystem Server
  36. options         NFS_ROOT                # NFS usable as /, requires NFSCLIENT
  37. options         MSDOSFS                        # MSDOS Filesystem
  38. options         CD9660                        # ISO 9660 Filesystem
  39. options         PROCFS                        # Process filesystem (requires PSEUDOFS)
  40. options         PSEUDOFS                # Pseudo-filesystem framework
  41. options         GEOM_GPT                # GUID Partition Tables.
  42. options         COMPAT_43                # Compatible with BSD 4.3 [KEEP THIS!]
  43. options         COMPAT_FREEBSD4                # Compatible with FreeBSD4
  44. options         SCSI_DELAY=15000        # Delay (in ms) before probing SCSI
  45. options         KTRACE                        # ktrace(1) support
  46. options         SYSVSHM                        # SYSV-style shared memory
  47. options         SYSVMSG                        # SYSV-style message queues
  48. options         SYSVSEM                        # SYSV-style semaphores
  49. options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
  50. options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
  51. options         AHC_REG_PRETTY_PRINT        # Print register bitfields in debug
  52.                                         # output.  Adds ~128k to driver.
  53. options         AHD_REG_PRETTY_PRINT        # Print register bitfields in debug
  54.                                         # output.  Adds ~215k to driver.
  55. options         ADAPTIVE_GIANT                # Giant mutex is adaptive.

  56. device                apic                # I/O APIC

  57. # Bus support.  Do not remove isa, even if you have no isa slots
  58. device                isa
  59. #device                eisa
  60. device                pci

  61. # Floppy drives
  62. #device                fdc

  63. # ATA and ATAPI devices
  64. device                ata
  65. device                atadisk                # ATA disk drives
  66. device                ataraid                # ATA RAID drives
  67. device                atapicd                # ATAPI CDROM drives
  68. device                atapifd                # ATAPI floppy drives
  69. device                atapist                # ATAPI tape drives
  70. options         ATA_STATIC_ID        # Static device numbering

  71. # SCSI Controllers
  72. #device                ahb                # EISA AHA1742 family
  73. #device                ahc                # AHA2940 and onboard AIC7xxx devices
  74. #device                ahd                # AHA39320/29320 and onboard AIC79xx devices
  75. #device                amd                # AMD 53C974 (Tekram DC-390(T))
  76. #device                isp                # Qlogic family
  77. #device                mpt                # LSI-Logic MPT-Fusion
  78. #device                ncr                # NCR/Symbios Logic
  79. #device                sym                # NCR/Symbios Logic (newer chipsets + those of `ncr')
  80. #device                trm                # Tekram DC395U/UW/F DC315U adapters

  81. #device                adv                # Advansys SCSI adapters
  82. #device                adw                # Advansys wide SCSI adapters
  83. #device                aha                # Adaptec 154x SCSI adapters
  84. #device                aic                # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
  85. #device                bt                # Buslogic/Mylex MultiMaster SCSI adapters

  86. #device                ncv                # NCR 53C500
  87. #device                nsp                # Workbit Ninja SCSI-3
  88. #device                stg                # TMC 18C30/18C50

  89. # SCSI peripherals
  90. device                scbus                # SCSI bus (required for SCSI)
  91. #device                ch                # SCSI media changers
  92. device                da                # Direct Access (disks)
  93. #device                sa                # Sequential Access (tape etc)
  94. #device                cd                # CD
  95. #device                pass                # Passthrough device (direct SCSI access)
  96. #device                ses                # SCSI Environmental Services (and SAF-TE)

  97. # RAID controllers interfaced to the SCSI subsystem
  98. #device                amr                # AMI MegaRAID
  99. #device                asr                # DPT SmartRAID V, VI and Adaptec SCSI RAID
  100. #device                ciss                # Compaq Smart RAID 5*
  101. #device                dpt                # DPT Smartcache III, IV - See NOTES for options
  102. #device                hptmv                # Highpoint RocketRAID 182x
  103. #device                iir                # Intel Integrated RAID
  104. #device                ips                # IBM (Adaptec) ServeRAID
  105. #device                mly                # Mylex AcceleRAID/eXtremeRAID
  106. #device                twa                # 3ware 9000 series PATA/SATA RAID

  107. # RAID controllers
  108. #device                aac                # Adaptec FSA RAID
  109. #device                aacp                # SCSI passthrough for aac (requires CAM)
  110. #device                ida                # Compaq Smart RAID
  111. #device                mlx                # Mylex DAC960 family
  112. #device                pst                # Promise Supertrak SX6000
  113. #device                twe                # 3ware ATA RAID

  114. # atkbdc0 controls both the keyboard and the PS/2 mouse
  115. device                atkbdc                # AT keyboard controller
  116. device                atkbd                # AT keyboard
  117. device                psm                # PS/2 mouse

  118. device                vga                # VGA video card driver

  119. device                splash                # Splash screen and screen saver support

  120. # syscons is the default console driver, resembling an SCO console
  121. device                sc

  122. # Enable this for the pcvt (VT220 compatible) console driver
  123. #device                vt
  124. #options         XSERVER                # support for X server on a vt console
  125. #options         FAT_CURSOR        # start with block cursor

  126. device                agp                # support several AGP chipsets

  127. # Floating point support - do not disable.
  128. device                npx

  129. # Power management support (see NOTES for more options)
  130. #device                apm
  131. # Add suspend/resume support for the i8254.
  132. device                pmtimer

  133. # PCCARD (PCMCIA) support
  134. # PCMCIA and cardbus bridge support
  135. device                cbb                # cardbus (yenta) bridge
  136. device                pccard                # PC Card (16-bit) bus
  137. device                cardbus                # CardBus (32-bit) bus

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

  140. # Parallel port
  141. device                ppc
  142. device                ppbus                # Parallel port bus (required)
  143. device                lpt                # Printer
  144. device                plip                # TCP/IP over parallel
  145. device                ppi                # Parallel port interface device
  146. #device                vpo                # Requires scbus and da

  147. # If you've got a "dumb" serial or parallel PCI card that is
  148. # supported by the puc(4) glue driver, uncomment the following
  149. # line to enable it (connects to the sio and/or ppc drivers):
  150. #device         puc

  151. # PCI Ethernet NICs.
  152. #device                de                # DEC/Intel DC21x4x (``Tulip'')
  153. #device                em                # Intel PRO/1000 adapter Gigabit Ethernet Card
  154. #device                ixgb                # Intel PRO/10GbE Ethernet Card
  155. #device                txp                # 3Com 3cR990 (``Typhoon'')
  156. #device                vx                # 3Com 3c590, 3c595 (``Vortex'')

  157. # PCI Ethernet NICs that use the common MII bus controller code.
  158. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
  159. device                miibus                # MII bus support
  160. #device                bfe                # Broadcom BCM440x 10/100 Ethernet
  161. #device                bge                # Broadcom BCM570xx Gigabit Ethernet
  162. #device                dc                # DEC/Intel 21143 and various workalikes
  163. #device                fxp                # Intel EtherExpress PRO/100B (82557, 82558)
  164. #device                lge                # Level 1 LXT1001 gigabit ethernet
  165. #device                nge                # NatSemi DP83820 gigabit ethernet
  166. #device                pcn                # AMD Am79C97x PCI 10/100 (precedence over 'lnc')
  167. #device                re                # RealTek 8139C+/8169/8169S/8110S
  168. #device                rl                # RealTek 8129/8139
  169. #device                sf                # Adaptec AIC-6915 (``Starfire'')
  170. #device                sis                # Silicon Integrated Systems SiS 900/SiS 7016
  171. #device                sk                # SysKonnect SK-984x & SK-982x gigabit Ethernet
  172. #device                ste                # Sundance ST201 (D-Link DFE-550TX)
  173. #device                ti                # Alteon Networks Tigon I/II gigabit Ethernet
  174. #device                tl                # Texas Instruments ThunderLAN
  175. #device                tx                # SMC EtherPower II (83c170 ``EPIC'')
  176. #device                vge                # VIA VT612x gigabit ethernet
  177. device                vr                # VIA Rhine, Rhine II
  178. #device                wb                # Winbond W89C840F
  179. #device                xl                # 3Com 3c90x (``Boomerang'', ``Cyclone'')

  180. # ISA Ethernet NICs.  pccard NICs included.
  181. #device                cs                # Crystal Semiconductor CS89x0 NIC
  182. # 'device ed' requires 'device miibus'
  183. #device                ed                # NE[12]000, SMC Ultra, 3c503, DS8390 cards
  184. #device                ex                # Intel EtherExpress Pro/10 and Pro/10+
  185. #device                ep                # Etherlink III based cards
  186. #device                fe                # Fujitsu MB8696x based cards
  187. #device                ie                # EtherExpress 8/16, 3C507, StarLAN 10 etc.
  188. #device                lnc                # NE2100, NE32-VL Lance Ethernet cards
  189. #device                sn                # SMC's 9000 series of Ethernet chips
  190. #device                xe                # Xircom pccard Ethernet

  191. # ISA devices that use the old ISA shims
  192. #device                le

  193. # Wireless NIC cards
  194. #device                wlan                # 802.11 support
  195. #device                an                # Aironet 4500/4800 802.11 wireless NICs.
  196. #device                awi                # BayStack 660 and others
  197. #device                wi                # WaveLAN/Intersil/Symbol 802.11 wireless NICs.
  198. #device                wl                # Older non 802.11 Wavelan wireless NIC.

  199. # Pseudo devices.
  200. device                loop                # Network loopback
  201. device                mem                # Memory and kernel memory devices
  202. device                io                # I/O device
  203. device                random                # Entropy device
  204. device                ether                # Ethernet support
  205. device                sl                # Kernel SLIP
  206. device                ppp                # Kernel PPP
  207. device                tun                # Packet tunnel.
  208. device                pty                # Pseudo-ttys (telnet etc)
  209. device                md                # Memory "disks"
  210. device                gif                # IPv6 and IPv4 tunneling
  211. device                faith                # IPv6-to-IPv4 relaying (translation)

  212. # The `bpf' device enables the Berkeley Packet Filter.
  213. # Be aware of the administrative consequences of enabling this!
  214. device                bpf                # Berkeley packet filter

  215. # USB support
  216. device                uhci                # UHCI PCI->USB interface
  217. device                ohci                # OHCI PCI->USB interface
  218. device                usb                # USB Bus (required)
  219. #device                udbp                # USB Double Bulk Pipe devices
  220. device                ugen                # Generic
  221. device                uhid                # "Human Interface Devices"
  222. device                ukbd                # Keyboard
  223. device                ulpt                # Printer
  224. device                umass                # Disks/Mass storage - Requires scbus and da
  225. device                ums                # Mouse
  226. device                urio                # Diamond Rio 500 MP3 player
  227. device                uscanner        # Scanners
  228. # USB Ethernet, requires mii
  229. #device                aue                # ADMtek USB Ethernet
  230. #device                axe                # ASIX Electronics USB Ethernet
  231. #device                cue                # CATC USB Ethernet
  232. #device                kue                # Kawasaki LSI USB Ethernet
  233. #device                rue                # RealTek RTL8150 USB Ethernet

  234. # FireWire support
  235. #device                firewire        # FireWire bus code
  236. #device                sbp                # SCSI over FireWire (Requires scbus and da)
  237. #device                fwe                # Ethernet over FireWire (non-standard!)
  238. ------------------------------------------------------------------------------------------------------------------------------------
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-17 14:44:07 | 显示全部楼层
我明白了,上次我把下面
-------------------------------------------------------------------------------------------------
# ATA and ATAPI devices
device                ata
device                atadisk                # ATA disk drives
device                ataraid                # ATA RAID drives
device                atapicd                # ATAPI CDROM drives
device                atapifd                # ATAPI floppy drives
device                atapist                # ATAPI tape drives
options         ATA_STATIC_ID        # Static device numbering
----------------------------------------------------------------------------------------------


---------------------------------------------------------------------------------------------
device                atadisk                # ATA disk drives
--------------------------------------------------------------------------------------------
去掉了
回复 支持 反对

使用道具 举报

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

本版积分规则

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