[1051] in netbsd-help mailing list archive

home help back first fref pref prev next nref lref last post

Re: mounting msdos

daemon@ATHENA.MIT.EDU (Daniel P Kamalic)
Thu Oct 3 22:34:07 1996

From: Daniel P Kamalic <pocky@MIT.EDU>
To: Leonard Kimble Jr <lkimble@MIT.EDU>
Cc: netbsd-help@MIT.EDU
In-Reply-To: Your message of "Thu, 03 Oct 1996 21:12:58 EDT."
             <199610040112.VAA00442@da-bulls.MIT.EDU> 
Date: Thu, 03 Oct 1996 22:33:42 EDT

> But I tried the above and it mounted the dos partition that's on the same
> physical drive as I have netbsd.  How do I mount other logical drives? and
> how do I assign a name to them (dosc, dosd, etc...)


	Yes, Weaverj was in a similar situation.  Greg's Dospart script is
configured to use wd0.  We made a quick fix by hacking the script a bit.

#!/bin/sh
# $Id: dospart.sh,v 1.1 1996/01/27 00:23:49 ghudson Exp $

if [ $# -le 1 ]; then
        disk=`mount | sed -n '/ on \/ /s|^/dev/\([^ ]*\)[^ ] .*$|\1|p'`
else
        disk=$1
fi

#and so on...




	Changing the disk=foo, where foo=wd1 or wd2 or whatever, seemed to do
the trick, but we encountered a problem in that our wd1 drive did
not have any netbsd partition.  As of NetBSD 1.1, you cannot mount
a DOS partition of a drive that has no NetBSD partition.  Make a minimal
netbsd partition on your other drive, and then try it.  We weren't in
the mood to do that to Josh's machine at the time.

	As far as I know, NetBSD 1.2 will support mounting of DOS
drives without a NetBSD partition on them.  I think 1.2A and 1.2B already
support that.

	Let me know if it works out.  And if I said anything incorrect, I
hope somebody more experienced will chime in.



-Dan

home help back first fref pref prev next nref lref last post