Loading mfsroot read-write on FreeBSD 6.0-RELEASE

Dinesh Nair dinesh at alphaque.com
Sat Nov 12 13:02:32 GMT 2005

i'm attempting to create a stripped down implementation of FreeBSD 
6.0-RELEASE and have noticed some changes in how the loader loads mfsroot 
between 4.x and 6.x.

/boot/loader.rc has:
set console=comconsole
set hw.ata.atapi_dma="1"
set hw.ata.ata_dma="1"
set hw.ata.wc="0"
load /kernel
load -t mfs_root /mfsroot

however, upon a boot, i see the following:

/kernel text=0x4511b4 data=0x7cc94+0x33710 syms=[0x4+0x54750+0x4+0x696b2]
ACPI autoload failed - no such file or directory
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD 6.0-STABLE #1: Sat Nov 12 16:31:08 MYT 2005
dinesh at prophet.alphaque.com:/usr/src/sys/i386/compile/M0N0WALL_GENERIC_FREEB
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(TM) CPU 400MHz (400.91-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x6b4  Stepping = 4
real memory  = 133103616 (126 MB)
avail memory = 104087552 (99 MB)
ath_hal: (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Intel 82815 (i815 GMCH) Host To Hub bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 8 Entries> on motherboard
pci0: <PCI bus> on pcib0
pci0: <display, VGA> at device 2.0 (no driver attached)
pcib1: <PCIBIOS PCI-PCI bridge> at device 30.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <simple comms> at device 0.0 (no driver attached)
cbb0: <RF5C475 PCI-CardBus Bridge> mem 0xe5027000-0xe5027fff irq 12 at 
device 2.
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pci1: <serial bus, FireWire> at device 2.1 (no driver attached)
fxp0: <Intel 82559ER Embedded 10/100 Ethernet> port 0xa400-0xa43f mem 
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:04:5f:40:1c:bd
fxp1: <Intel 82801BA/CAM (ICH2/3) Pro/100 Ethernet> port 0xa800-0xa83f mem 
miibus1: <MII bus> on fxp1
inphy1: <i82562ET 10/100 media interface> on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:04:5f:40:1d:21
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH2 UDMA100 controller> port 
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcbfff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (irq)
unknown: <PNP0501> can't assign resources (irq)
Timecounter "TSC" frequency 400910637 Hz quality 800
Timecounters tick every 1.000 msec
Fast IPsec: Initialized Security Association Processing.
IP Filter: v4.1.8 initialized.  Default = block all, Logging = enabled
md0: Preloaded image </mfsroot> 16777216 bytes at 0xc09c0370
ad2: 123MB <Transcend 2N3-0925> at ata1-master BIOSPIO
Trying to mount root from ufs:/dev/md0
mkdir: /var/run: Read-only file system
mkdir: /var/log: Read-only file system
mkdir: /var/etc: Read-only file system
mkdir: /var/db: Read-only file system

i've judiciously ignored the SETFEATURES error on ad2 as it's a CF-IDE 
device and mounts perfectly fine from the command line. however, the mkdirs 
are failing due to the fact that mfsroot is mounted read only. using the 
same loader.rc commands in 4.x and 5.x seemed to load mfsroot read/write.

how does one specify a read/write mount of mfsroot in 6.0 in the bootloader ?

Regards,                           /\_/\   "All dogs go to heaven."
dinesh at alphaque.com                (0 0)    http://www.alphaque.com/
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |

More information about the freebsd-questions mailing list