*BSD News Article 59737


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!newsfeed.internetmci.com!news.kei.com!nntp.coast.net!news00.sunet.se!sunic!news99.sunet.se!news.uni-c.dk!cph-1.news.DK.net!dkuug!dknet!dkuug!ic.dk!kyklopen!kyklopen.ping.dk!staff
From: staff@kyklopen.ping.dk (Thomas Sparrevohn)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.os.linux.development.system
Subject: Re: Linux user's comments (since 0.98! :-) on FreeBSD 2.1
Date: 16 Jan 96 03:38:51 GMT
Organization: Grønsagens fremme
Lines: 44
Message-ID: <staff.821763531@kyklopen.ping.dk>
References: <4cr16t$obt@topcat.uk.gdscorp.com> <DKvHsK.G7@mail.physik.fu-berlin.de>
NNTP-Posting-Host: localhost.ping.dk
X-Newsreader: NN version 6.5.0 #1 (NOV)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:12588 comp.os.linux.development.system:15780

graichen@mail.physik.fu-berlin.de (Thomas Graichen) writes:

>:  - Loadable modules don't appear to work out of the box. Compiling the
>:    kernel without MSDOS support, and then saying mount_msdos gives
>:    '(vfs)cannot find msdos_module'. Sounds about as broken as Linux at
>:    the moment ;-)

>i don't use msdos - but for procfs & nfs it works fine - is there a
>file msdos_mod.o in /lkm ? - moment - no it works in 2.1.0-RELEASE at
>least - i installed it last weekend at a friend - i think you must do
>anything wrong


The lkm's depends on /usr/bin/ld, so you have to make sure that your
msdos slice gets mounted after /usr has been mounted. The 2.1 installation
script made my fstab look like this:

/dev/wd1s1b			none		swap	sw 0 0
/dev/sd0s1b			none		swap	sw 0 0
/dev/wd0a			/		ufs	rw 1 1
/dev/wd0s1			/dos		msdos	rw 0 0
/dev/wd1s1e			/usr		ufs	rw 1 1

...


which is clearly wrong if you want to use the lkm version of the 
msdos file system. It should be:

/dev/wd1s1b			none		swap	sw 0 0
/dev/sd0s1b			none		swap	sw 0 0
/dev/wd0a			/		ufs	rw 1 1
/dev/wd1s1e			/usr		ufs	rw 1 1
/dev/wd0s1			/dos		msdos	rw 0 0
...

otherwise mount_msdos will fail because it can't find the linker.

-- Thomas