Problems mounting msdosfs

Jakob Breivik Grimstveit jakob at grimstveit.no
Sun Mar 12 02:54:35 UTC 2006


Lowell Gilbert wrote on Thu, 09 Mar 2006 08:00:

> Jakob Breivik Grimstveit <jakob at grimstveit.no> writes:
> 
> > I'm still experiencing same problems Christer Solskogen reported two years
> > ago on FreeBSD 5.2.1 with msdosfs mount failure upon boot making it go
> > into single-user-mode (having to press enter (into shell) and ctrl+d (to
> > continue booting) to get box up after reboot:
> > 
> > http://groups.google.no/group/mailing.freebsd.current/browse_thread/thread/4e660419935ea6e5/80580ef045e0e1d1
> > 
> > However, doing a `mount -a` after boot brings them both in.
> > 
> > I have the following in my fstab:
> > 
> > $ grep msdosfs /etc/fstab  
> > /dev/ad4s5 /mnt/share1 msdosfs rw 2 2
> > /dev/ad4s6 /mnt/share2 msdosfs rw 2 2
> > 
> > $ uname -r
> > 5.4-RELEASE-p7
> > 
> > $ grep 'boot.c' /usr/src/sbin/fsck_msdosfs/boot.c 
> > __RCSID("$NetBSD: boot.c,v 1.9 2003/07/24 19:25:46 ws Exp $");
> >   "$FreeBSD: src/sbin/fsck_msdosfs/boot.c,v 1.4 2004/04/20 11:41:57 tjr
> > Exp $";
> > 
> > Any suggestions as to what to do with this?
> 
> Maybe it's having trouble loading the msdosfs kernel module before
> boot?  Try building that into your kernel.

Actually, this seems to be a very strict parsing of the fstab when it comes to
msdosfs file systems. I Googled a lot (even further, I've been struggling
with this problem for several years now), and suddenly, the below worked
nicely. Case closed!

$ cat /etc/fstab | grep share
/dev/ad4s5 /mnt/share1 msdosfs rw,-m644,-M755,-ujakobbg,-gjakobbg 0 0
/dev/ad4s6 /mnt/share2 msdosfs rw,-m644,-M755,-ujakobbg,-gjakobbg 0 0

Thanks for a great list!

-- 
Jakob Breivik Grimstveit, <http://www.grimstveit.no/jakob/>, 48298152
Besøk Newsergalleriet: <http://www.newsergalleriet.no/>

All power corrupts, but we need electricity.


More information about the freebsd-questions mailing list