Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2005 06:49:44 -0500
From:      William Richter <wrichter@texaslife.com>
To:        freebsd-questions@freebsd.org
Subject:   mdconfig problem on make release of 5_4_0_RELEASE
Message-ID:  <20050520064944.79881857.wrichter@texaslife.com>

next in thread | raw e-mail | index | archive | help
i'm attempting to make a release and the build of the mfs image is failing (see below).

it's mdconfig that's failing:

+ mdconfig -a -t vnode -f /R/stage/mfsroot/mfsroot
mdconfig: ioctl(/dev/mdctl): Inappropriate ioctl for device

if fact i chroot'ed into the release directory and played around with mdconfig.  i cannot get it to function properly.  it always responds with 'mdconfig: ioctl(/dev/mdctl): Inappropriate ioctl for device'

i cannot get google to find anything related to this problem.  what gives?  i'm dumb-founded.  please help me!

sh -e /usr/src/release/scripts/doFS.sh bsdlabel "" /R/stage/mfsroot/mfsroot /R/stage /mnt  4320 /R/stage/mfsfd 8000 minimum3
+ export BLOCKSIZE=512
+ DISKLABEL=bsdlabel
+ shift
+ MACHINE=
+ shift
+ FSIMG=/R/stage/mfsroot/mfsroot
+ shift
+ RD=/R/stage
+ shift
+ MNT=/mnt
+ shift
+ FSSIZE=4320
+ shift
+ FSPROTO=/R/stage/mfsfd
+ shift
+ FSINODE=8000
+ shift
+ FSLABEL=minimum3
+ shift
+ [ 4320 -eq 0 -a minimum3 = auto ]
+ rm -f /R/stage/mfsroot/mfsroot
+ dd of=/R/stage/mfsroot/mfsroot if=/dev/zero count=4320 bs=1k
+ uname -r
+ [ -f /R/stage/trees/base/boot/boot ]
+ BOOT=-B -b /R/stage/trees/base/boot/boot
+ dofs_md
+ [ x != x ]
+ mdconfig -a -t vnode -f /R/stage/mfsroot/mfsroot
mdconfig: ioctl(/dev/mdctl): Inappropriate ioctl for device
+ MDDEVICE=
*** Error code 1
 
Stop in /usr/src/release.
+ umount /dev
*** Error code 1
 
Stop in /usr/w/FreeBSD_20050519/usr/src/release.




# uname -a
FreeBSD bsdmaster.hcs.tl 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


  mdconfig fails in chroot'ed environment:

-- 
Any opinions as lame as the ones expressed above could only belong to me,
and are not those of Texas Life Insurance Company.

The very powerful and the very stupid have one thing in common.
Instead of altering their views to fit the facts, they alter the facts
to fit their views ... which can be very uncomfortable if you happen to
be one of the facts that needs altering.
                -- Doctor Who, "Face of Evil"

Those who do not understand Unix are condemned to reinvent it, poorly.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050520064944.79881857.wrichter>