[62] in netbsd-help mailing list archive

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

Re: accessing a DOS drive

daemon@ATHENA.MIT.EDU (yoav@MIT.EDU)
Fri Feb 10 00:07:18 1995

From: yoav@MIT.EDU
Date: Fri, 10 Feb 1995 00:07:07 -0500
To: ericding@MIT.EDU, netbsd-help@MIT.EDU

Well what you want to do is mount it as a dos drive onto your
filesystem, the easiest way to do this, is as root, type:

mkdir /ms-dos
mount_msdos -m777 /dev/wd0a /ms-dos

which should hopefully do the right thing. the 777 is the
file permsissions for ALL the files, set it appropriately
(look at man mount_msdos) If you want this to
always default to doing that, you need to edit your
/etc/fstab file, to mount that filesystem. This is done by
adding the line:

/dev/wd0a /ms-dos msdos -m777
(try this and make sure it works, I haven't tested it)

other things you might want to add if they're not there include:

kernfs /kern kernfs rw 1 1
	(which will give you a kernfs directory, make sure to create /kernfs)

/proc /proc procfs rw 1 2
	(which will give you the proc file system, again, create /proc)

/dev/fd /dev/fd fdesc rw 1 2
	(for fdescfs)

/dev/wd0b /tmp mfs rw,-s=30000 1 2
	(to get a memory filesystem for /tmp. This speeds up access to /tmp by
putting files into memory. the -s=30000 means use UP TO 30 meg of swap. SET IT
appropriately.. i.e, no more than the size of your swap partition).
			yoav

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