From owner-freebsd-questions@FreeBSD.ORG Sat Mar 6 22:10:43 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62ED316A4CF for ; Sat, 6 Mar 2004 22:10:43 -0800 (PST) Received: from spam2.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id C5FFB43D49 for ; Sat, 6 Mar 2004 22:10:42 -0800 (PST) (envelope-from nospam@users.sourceforge.net) Received: (snipe 19882 invoked by alias); 7 Mar 2004 06:10:37 +0900(KST) Received: from nospam@users.sourceforge.net with SpamSniper2.76 (Processed in 0.044026 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 7 Mar 2004 06:10:37 +0900(KST) X-RCPTTO: freebsd-questions@freebsd.org, Received: from users.sourceforge.net (cisr.snu.ac.kr [147.46.44.181]) by sis1.snu.ac.kr (8.12.10/8.12.10) with ESMTP id i27675Us314504 for ; Sun, 7 Mar 2004 15:07:05 +0900 Message-ID: <404ABCDF.90401@users.sourceforge.net> Date: Sun, 07 Mar 2004 15:10:39 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040207 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4049543D.1020300@users.sourceforge.net> In-Reply-To: <4049543D.1020300@users.sourceforge.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: mount floppy/cdrom on diskless PC: "vfsload: Exec format error" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2004 06:10:43 -0000 Rob wrote: > > > Hi, > > I have a diskless PC with a floppy and CDrom drive. > I can create a dos floppy without a problem, but the mount fails: > > # /usr/sbin/fdformat /dev/fd0.1440 > Format 1440K floppy `/dev/fd0.1440'? (y/n): y > Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done. > # /sbin/disklabel -B -r -w /dev/fd0 fd1440 > # /sbin/newfs_msdos /dev/fd0 > /dev/fd0: 2840 sectors in 355 FAT12 clusters (4096 bytes/cluster) > bps=512 spc=8 res=1 nft=2 rde=512 sec=2880 mid=0xf0 spf=2 spt=18 hds=2 > hid=0 > # mount_msdos /dev/fd0c /mnt > mount_msdos: vfsload(msdos): Exec format error > > > Same problem occurs for a CDrom: > > # mount -t cd9660 /dev/acd0c /cdrom > cd9660: vfsload(cd9660): Exec format error > > The diskless machine has: > /modules/msdos.ko > /modules/cd9660.ko > > Probably related to this are these lines in /var/log/messages: > Mar 6 13:09:33 diskless //kernel: link_elf: symbol s_lock_init undefined > > > Any ideas what's going wrong here? I'll answer my own question here: When I add two options to the KERNEL config file: options MSDOSFS options CD9660 and use that kernel for my diskless PC, I can mount floppy and CDrom. Strange, because usually this is not needed for casual mounts of these devices. Cheers, Rob.