После пересборки мира, пересборки и установки ядра
/usr/src/ make buildworld
/usr/src/ make buildkernel KERNCONF=mykernel
/usr/src/ make installkernel KERNCONF=mykernel
/usr/src/ rebootзагрузка обрывается на етапе root mount
Root mount waiting for: usbus3
uhub3: 6 ports with 6 removable, self powered
Trying to mount root from ufs:/dev/ad0s2a
ROOT MOUNT ERROR:
if you have invalid mount options> reboot? and first try the following from
the loader promt:
set vfs.root.mountfrom.options=rw
and then invalid mount options from /etc/fstabLoad variables:
vfs.root.mountfrom=ufs:/dev/ad0s2a
vfs.root.mountfrom.options=Manual root filesystem specification:
<fstype>:<device> Mount <device> using filesystem <fstype>
eg .ufs:/dev/dao0s1a
eg .ufs:/dev/acd0
This is equivalent to: mount -t cd9660 /dev/acd0 /
? List valid disk boot devices
<empty line> abort manual input
пробовал заходить в режим лоадера
и вводил
>set vfs.root.mountfrom.options=rw
>но после перезагрузки в переменной vfs.root.mountfrom.options пусто
Loader variables:
vfs.root.mountfrom=ufs:/dev/ad0s2a
vfs.root.mountfrom.options=
>пробовал заходить в режим лоадера
>и вводил
>>set vfs.root.mountfrom.options=rw
>>
>
>но после перезагрузки в переменной vfs.root.mountfrom.options пусто
>Loader variables:
>vfs.root.mountfrom=ufs:/dev/ad0s2a
>vfs.root.mountfrom.options=загрузи генерик и собери ядро правильно
Правильно, это как?
>Правильно, это как?Вероятно с правильными опциями.
Зачем собственно ядро пересобирали, какой релиз был до сборки и на какой "обновились" ну и вывод diff GENERIC mykernel было бы интересно увидеть.
>>Правильно, это как?
>
>Вероятно с правильными опциями.
>Зачем собственно ядро пересобирали, какой релиз был до сборки и на какой
>"обновились" ну и вывод diff GENERIC mykernel было бы интересно увидеть.
>0a1,22
>[оверквотинг удален]
> #
> # An exhaustive list of options and more detailed explanations of the
> # device lines is also present in the ../../conf/NOTES and NOTES files.
> # If you are in doubt as to the purpose or necessity of a line, check first
> # in NOTES.
> #
> # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.519.2.4.2.2 2009/11/09 23:48:01 kensmith Exp $
>
> cpu I486_CPU
> cpu I586_CPU2c24
< ident mykernel
---
> ident GENERIC13,14c35
< #makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
<
---
> makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols16,23d36
< options IPFIREWALL
< options IPFIREWALL_VERBOSE
< options IPFIREWALL_VERBOSE_LIMIT=100
< options IPFIREWALL_FORWARD
< options IPFIREWALL_NAT
< options LIBALIAS
< options IPDIVERT
< options DUMMYNET
27,33c40,46
< #options INET6 # IPv6 communications protocols
< #options SCTP # Stream Control Transmission Protocol
< #options FFS # Berkeley Fast Filesystem
< #options SOFTUPDATES # Enable FFS soft updates support
< #options UFS_ACL # Support for access control lists
< #options UFS_DIRHASH # Improve performance on big directories
< #options UFS_GJOURNAL # Enable gjournal-based UFS journaling
---
> options INET6 # IPv6 communications protocols
> options SCTP # Stream Control Transmission Protocol
> options FFS # Berkeley Fast Filesystem
> options SOFTUPDATES # Enable FFS soft updates support
> options UFS_ACL # Support for access control lists
> options UFS_DIRHASH # Improve performance on big directories
> options UFS_GJOURNAL # Enable gjournal-based UFS journaling35,38c48,51
< #options NFSCLIENT # Network Filesystem Client
< #options NFSSERVER # Network Filesystem Server
< #options NFSLOCKD # Network Lock Manager
< #options NFS_ROOT # NFS usable as /, requires NFSCLIENT
---
> options NFSCLIENT # Network Filesystem Client
> options NFSSERVER # Network Filesystem Server
> options NFSLOCKD # Network Lock Manager
> options NFS_ROOT # NFS usable as /, requires NFSCLIENT43,44c56,57
< #options GEOM_PART_GPT # GUID Partition Tables.
< #options GEOM_LABEL # Provides labelization
---
> options GEOM_PART_GPT # GUID Partition Tables.
> options GEOM_LABEL # Provides labelization50c63
< #options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
---
> options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI67,68c80,81
< #options SMP # Symmetric MultiProcessor Kernel
< #device apic # I/O APIC
---
> options SMP # Symmetric MultiProcessor Kernel
> device apic # I/O APIC75c88
< #device eisa
---
> device eisa84c97
< #device ataraid # ATA RAID drives
---
> device ataraid # ATA RAID drives86c99
< #device atapifd # ATAPI floppy drives
---
> device atapifd # ATAPI floppy drives98,100c111,113
< #device amd # AMD 53C974 (Tekram DC-390(T))
< #device hptiop # Highpoint RocketRaid 3xxx series
< #device isp # Qlogic family
---
> device amd # AMD 53C974 (Tekram DC-390(T))
> device hptiop # Highpoint RocketRaid 3xxx series
> device isp # Qlogic family102c115
< #device mpt # LSI-Logic MPT-Fusion
---
> device mpt # LSI-Logic MPT-Fusion104,105c117,118
< #device sym # NCR/Symbios Logic (newer chipsets + those of `ncr')
< #device trm # Tekram DC395U/UW/F DC315U adapters
---
> device sym # NCR/Symbios Logic (newer chipsets + those of `ncr')
> device trm # Tekram DC395U/UW/F DC315U adapters107,115c120,128
< #device adv # Advansys SCSI adapters
< #device adw # Advansys wide SCSI adapters
< #device aha # Adaptec 154x SCSI adapters
< #device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
< #device bt # Buslogic/Mylex MultiMaster SCSI adapters
<
< #device ncv # NCR 53C500
< #device nsp # Workbit Ninja SCSI-3
< #device stg # TMC 18C30/18C50
---
> device adv # Advansys SCSI adapters
> device adw # Advansys wide SCSI adapters
> device aha # Adaptec 154x SCSI adapters
> device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
> device bt # Buslogic/Mylex MultiMaster SCSI adapters
>
> device ncv # NCR 53C500
> device nsp # Workbit Ninja SCSI-3
> device stg # TMC 18C30/18C50119c132
< #device ch # SCSI media changers
---
> device ch # SCSI media changers121c134
< #device sa # Sequential Access (tape etc)
---
> device sa # Sequential Access (tape etc)124c137
< #device ses # SCSI Environmental Services (and SAF-TE)
---
> device ses # SCSI Environmental Services (and SAF-TE)127,137c140,150
< #device amr # AMI MegaRAID
< #device arcmsr # Areca SATA II RAID
< #device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID
< #device ciss # Compaq Smart RAID 5*
< #device dpt # DPT Smartcache III, IV - See NOTES for options
< #device hptmv # Highpoint RocketRAID 182x
< #device hptrr # Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx
< #device iir # Intel Integrated RAID
< #device ips # IBM (Adaptec) ServeRAID
< #device mly # Mylex AcceleRAID/eXtremeRAID
< #device twa # 3ware 9000 series PATA/SATA RAID
---
>[оверквотинг удален]
> device arcmsr # Areca SATA II RAID
> device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID
> device ciss # Compaq Smart RAID 5*
> device dpt # DPT Smartcache III, IV - See NOTES for options
> device hptmv # Highpoint RocketRAID 182x
> device hptrr # Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx
> device iir # Intel Integrated RAID
> device ips # IBM (Adaptec) ServeRAID
> device mly # Mylex AcceleRAID/eXtremeRAID
> device twa # 3ware 9000 series PATA/SATA RAID140,146c153,159
< #device aac # Adaptec FSA RAID
< #device aacp # SCSI passthrough for aac (requires CAM)
< #device ida # Compaq Smart RAID
< #device mfi # LSI MegaRAID SAS
< #device mlx # Mylex DAC960 family
< #device pst # Promise Supertrak SX6000
< #device twe # 3ware ATA RAID
---
> device aac # Adaptec FSA RAID
> device aacp # SCSI passthrough for aac (requires CAM)
> device ida # Compaq Smart RAID
> device mfi # LSI MegaRAID SAS
> device mlx # Mylex DAC960 family
> device pst # Promise Supertrak SX6000
> device twe # 3ware ATA RAID171,173c184,186
< #device cbb # cardbus (yenta) bridge
< #device pccard # PC Card (16-bit) bus
< #device cardbus # CardBus (32-bit) bus
---
> device cbb # cardbus (yenta) bridge
> device pccard # PC Card (16-bit) bus
> device cardbus # CardBus (32-bit) bus179,183c192,196
< #device ppc
< #device ppbus # Parallel port bus (required)
< #device lpt # Printer
< #device plip # TCP/IP over parallel
< #device ppi # Parallel port interface device
---
> device ppc
> device ppbus # Parallel port bus (required)
> device lpt # Printer
> device plip # TCP/IP over parallel
> device ppi # Parallel port interface device192,199c205,212
< #device de # DEC/Intel DC21x4x (``Tulip'')
< #device em # Intel PRO/1000 Gigabit Ethernet Family
< #device igb # Intel PRO/1000 PCIE Server Gigabit Family
< #device ixgb # Intel PRO/10GbE Ethernet Card
< #device le # AMD Am7900 LANCE and Am79C9xx PCnet
< #device ti # Alteon Networks Tigon I/II gigabit Ethernet
< #:evice txp # 3Com 3cR990 (``Typhoon'')
< #device vx # 3Com 3c590, 3c595 (``Vortex'')
---
> device de # DEC/Intel DC21x4x (``Tulip'')
> device em # Intel PRO/1000 Gigabit Ethernet Family
> device igb # Intel PRO/1000 PCIE Server Gigabit Family
> device ixgb # Intel PRO/10GbE Ethernet Card
> device le # AMD Am7900 LANCE and Am79C9xx PCnet
> device ti # Alteon Networks Tigon I/II gigabit Ethernet
> device txp # 3Com 3cR990 (``Typhoon'')
> device vx # 3Com 3c590, 3c595 (``Vortex'')204,218c217,231
< #device ae # Attansic/Atheros L2 FastEthernet
< #device age # Attansic/Atheros L1 Gigabit Ethernet
< #device alc # Atheros AR8131/AR8132 Ethernet
< #device ale # Atheros AR8121/AR8113/AR8114 Ethernet
< #device bce # Broadcom BCM5706/BCM5708 Gigabit Ethernet
< #device bfe # Broadcom BCM440x 10/100 Ethernet
< #device bge # Broadcom BCM570xx Gigabit Ethernet
< #device dc # DEC/Intel 21143 and various workalikes
< #device et # Agere ET1310 10/100/Gigabit Ethernet
< #device fxp # Intel EtherExpress PRO/100B (82557, 82558)
< #device jme # JMicron JMC250 Gigabit/JMC260 Fast Ethernet
< #device lge # Level 1 LXT1001 gigabit Ethernet
< #device msk # Marvell/SysKonnect Yukon II Gigabit Ethernet
< #device nfe # nVidia nForce MCP on-board Ethernet
< #device nge # NatSemi DP83820 gigabit Ethernet
---
>[оверквотинг удален]
> device bfe # Broadcom BCM440x 10/100 Ethernet
> device bge # Broadcom BCM570xx Gigabit Ethernet
> device dc # DEC/Intel 21143 and various workalikes
> device et # Agere ET1310 10/100/Gigabit Ethernet
> device fxp # Intel EtherExpress PRO/100B (82557, 82558)
> device jme # JMicron JMC250 Gigabit/JMC260 Fast Ethernet
> device lge # Level 1 LXT1001 gigabit Ethernet
> device msk # Marvell/SysKonnect Yukon II Gigabit Ethernet
> device nfe # nVidia nForce MCP on-board Ethernet
> device nge # NatSemi DP83820 gigabit Ethernet220,230c233,243
< #device pcn # AMD Am79C97x PCI 10/100 (precedence over 'le')
< #device re # RealTek 8139C+/8169/8169S/8110S
< #device rl # RealTek 8129/8139
< #device sf # Adaptec AIC-6915 (``Starfire'')
< #device sis # Silicon Integrated Systems SiS 900/SiS 7016
< #device sk # SysKonnect SK-984x & SK-982x gigabit Ethernet
< #device ste # Sundance ST201 (D-Link DFE-550TX)
< #device stge # Sundance/Tamarack TC9021 gigabit Ethernet
< #device tl # Texas Instruments ThunderLAN
< #device tx # SMC EtherPower II (83c170 ``EPIC'')
< #device vge # VIA VT612x gigabit Ethernet
---
>[оверквотинг удален]
> device re # RealTek 8139C+/8169/8169S/8110S
> device rl # RealTek 8129/8139
> device sf # Adaptec AIC-6915 (``Starfire'')
> device sis # Silicon Integrated Systems SiS 900/SiS 7016
> device sk # SysKonnect SK-984x & SK-982x gigabit Ethernet
> device ste # Sundance ST201 (D-Link DFE-550TX)
> device stge # Sundance/Tamarack TC9021 gigabit Ethernet
> device tl # Texas Instruments ThunderLAN
> device tx # SMC EtherPower II (83c170 ``EPIC'')
> device vge # VIA VT612x gigabit Ethernet232,233c245,246
< #device wb # Winbond W89C840F
< #device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')
---
> device wb # Winbond W89C840F
> device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')238,244c251,257
< #device ed # NE[12]000, SMC Ultra, 3c503, DS8390 cards
< #device ex # Intel EtherExpress Pro/10 and Pro/10+
< #device ep # Etherlink III based cards
< #device fe # Fujitsu MB8696x based cards
< #device ie # EtherExpress 8/16, 3C507, StarLAN 10 etc.
< #device sn # SMC's 9000 series of Ethernet chips
< #device xe # Xircom pccard Ethernet
---
> device ed # NE[12]000, SMC Ultra, 3c503, DS8390 cards
> device ex # Intel EtherExpress Pro/10 and Pro/10+
> device ep # Etherlink III based cards
> device fe # Fujitsu MB8696x based cards
> device ie # EtherExpress 8/16, 3C507, StarLAN 10 etc.
> device sn # SMC's 9000 series of Ethernet chips
> device xe # Xircom pccard Ethernet247,261c260,274
< #device wlan # 802.11 support
< #options IEEE80211_DEBUG # enable debug msgs
< #options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
< #options IEEE80211_SUPPORT_MESH # enable 802.11s draft support
< #device wlan_wep # 802.11 WEP support
< #device wlan_ccmp # 802.11 CCMP support
< #device wlan_tkip # 802.11 TKIP support
< #device wlan_amrr # AMRR transmit rate control algorithm
< #device an # Aironet 4500/4800 802.11 wireless NICs.
< #device ath # Atheros pci/cardbus NIC's
< #device ath_hal # pci/cardbus chip support
< #3options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors
< #device ath_rate_sample # SampleRate tx rate control for ath
< #device ral # Ralink Technology RT2500 wireless NICs.
< #device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs.
---
>[оверквотинг удален]
> device wlan_ccmp # 802.11 CCMP support
> device wlan_tkip # 802.11 TKIP support
> device wlan_amrr # AMRR transmit rate control algorithm
> device an # Aironet 4500/4800 802.11 wireless NICs.
> device ath # Atheros pci/cardbus NIC's
> device ath_hal # pci/cardbus chip support
> options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors
> device ath_rate_sample # SampleRate tx rate control for ath
> device ral # Ralink Technology RT2500 wireless NICs.
> device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs.266c279
< #device random # Entropy device
---
> device random # Entropy device268c281
< #device tun # Packet tunnel.
---
> device tun # Packet tunnel.270,273c283,286
< #device md # Memory "disks"
< #device gif # IPv6 and IPv4 tunneling
< #device faith # IPv6-to-IPv4 relaying (translation)
< #device firmware # firmware assist module
---
> device md # Memory "disks"
> device gif # IPv6 and IPv4 tunneling
> device faith # IPv6-to-IPv4 relaying (translation)
> device firmware # firmware assist module278c291
< #device bpf # Berkeley packet filter
---
> device bpf # Berkeley packet filter288c301
< #device ulpt # Printer
---
> device ulpt # Printer291,294c304,307
< #device rum # Ralink Technology RT2501USB wireless NICs
< #device ural # Ralink Technology RT2500USB wireless NICs
< #device uath # Atheros AR5523 wireless NICs
< #device zyd # ZyDAS zb1211/zb1211b wireless NICs
---
> device rum # Ralink Technology RT2501USB wireless NICs
> device ural # Ralink Technology RT2500USB wireless NICs
> device uath # Atheros AR5523 wireless NICs
> device zyd # ZyDAS zb1211/zb1211b wireless NICs297,305c310,318
< #device u3g # USB-based 3G modems (Option, Huawei, Sierra)
< #device uark # Technologies ARK3116 based serial adapters
< #device ubsa # Belkin F5U103 and compatible serial adapters
< #device uftdi # For FTDI usb serial adapters
< #device uipaq # Some WinCE based devices
< #device uplcom # Prolific PL-2303 serial adapters
< #device uslcom # SI Labs CP2101/CP2102 serial adapters
< #device uvisor # Visor and Palm devices
< #device uvscom # USB serial support for DDI pocket's PHS
---
> device u3g # USB-based 3G modems (Option, Huawei, Sierra)
> device uark # Technologies ARK3116 based serial adapters
> device ubsa # Belkin F5U103 and compatible serial adapters
> device uftdi # For FTDI usb serial adapters
> device uipaq # Some WinCE based devices
> device uplcom # Prolific PL-2303 serial adapters
> device uslcom # SI Labs CP2101/CP2102 serial adapters
> device uvisor # Visor and Palm devices
> device uvscom # USB serial support for DDI pocket's PHS307,313c320,326
< #device aue # ADMtek USB Ethernet
< #device axe # ASIX Electronics USB Ethernet
< #device cdce # Generic USB over Ethernet
< #device cue # CATC USB Ethernet
< #device kue # Kawasaki LSI USB Ethernet
< #device rue # RealTek RTL8150 USB Ethernet
< #device udav # Davicom DM9601E USB
---
> device aue # ADMtek USB Ethernet
> device axe # ASIX Electronics USB Ethernet
> device cdce # Generic USB over Ethernet
> device cue # CATC USB Ethernet
> device kue # Kawasaki LSI USB Ethernet
> device rue # RealTek RTL8150 USB Ethernet
> device udav # Davicom DM9601E USB316c329
< #device firewire # FireWire bus code
---
> device firewire # FireWire bus code318,321c331,334
< #device fwe # Ethernet over FireWire (non-standard!)
< #device fwip # IP over FireWire (RFC 2734,3146)
< #3device dcons # Dumb console driver
< #device dcons_crom # Configuration ROM for dcons
---
> device fwe # Ethernet over FireWire (non-standard!)
> device fwip # IP over FireWire (RFC 2734,3146)
> device dcons # Dumb console driver
> device dcons_crom # Configuration ROM for dcons
#options FFS # Berkeley Fast Filesystem
красавчек!ваще все закоментил ))) песдес ))
>пробовал заходить в режим лоадера
>и вводил
>>set vfs.root.mountfrom.options=rw
>>
>
>но после перезагрузки в переменной vfs.root.mountfrom.options пусто
>Loader variables:
>vfs.root.mountfrom=ufs:/dev/ad0s2a
>vfs.root.mountfrom.options=что в /etc/fstab и не торчит ли флешка в usb?
ну и какой список ufs выдается в loader'е?
>Trying to mount root from ufs:/dev/ad0s2a
> ?
> List valid disk boot devicesНадо ввести "?" и посмотреть, что показывают в качестве доступных устройств.
Могу предположить, что достаточно на этапе менюшки нажать "6" и в лоадере
load ata
load atapci
load atadisk
load geom_mbr
load geom_bsd
load ufs
boot
Если загрузится - вставить соответствующие строки в /boot/loader.conf, а впоследствии - пересобрать ядро недостающими опциями.
Ну там же написано что
>> ? List valid disk boot devicesВведите "вопросик" в консоли, он вам список винтов выдаст и возможных разделов, слайсов. Сравните его с тем, откуда вы пытаетесь грузиться.
Если в этой части всё в порядке, загрузитесь с Frenzy, FreeNAS, FreeSBIE или даже с установочного диска с FreeBSD - там где-то режим fixit есть в котором можно выпасть в консоль, смонтировать винт и поправить "упавшую" систему.Смонтируйте / вашего винта и шутки ради добавьте пару переводов строки в /boot/loader.conf (т.е. тупо дважды Enter в любом редакторе).
Если не поможет, можно откатить ядро на старое
mv /boot/kernel /boot/kernel.broken
mv /boot/kernel.old /boot/kernel
Есть компетентные люди в данной ситуации???
> Есть компетентные люди в данной ситуации???Похоже, это был баг.
При обновлении 7.3 до 8.1 получил такую же пакость. Ядро generiс.
В итоге нашел единственно верное решение здесь:
http://www.bzzzz.biz/blog/freebsd/root-mount-error-after-upg...Подробнее о баге здесь:
http://lists.freebsd.org/pipermail/freebsd-current/2009-Janu...
> После пересборки мира, пересборки и установки ядраПоймал такой же прикол при обновлении ядра с 8.1 до 8.3... что сделал.
Набираем ? и видим что хард (у меня так было) определился как ad0. Перезагружаемся и заходим в консоль (восстанавливаем старое ядро или грузимся с лайв сд)... и смотрим что у нас в файлике /etc/fstab и видим, по крайней мере у меня было так, что грузится он с ad4. Меняем тут все на ad0. Перезагружаемя.
И вот оно счастье