Subject: [i386, netbsd1.2beta] ZIP drives, and mounting msdos..
To: None <netbsd-help@NetBSD.ORG>
From: Jeff Mitchell <skeezix@interlog.com>
List: netbsd-help
Date: 01/10/1997 16:39:45
	I've tried on and off for a couple of months, to no avail, to
mount a DOS drive (1 partition) onto a unix directory. Any help would be
appreciated, because I do need the DOS partition (so can't just newfs the
drive :), but am getting itchy as I've got no backups, and could use the
DOS filesystem to store some of the more critical files...

	The scene:	A 1.6gig EIDE drive one, and a 540mb EIDE drive as
a measly drive two. The first is of course NetBSD, 1.2beta. The second is
MSDOS 7, Win95, that crap. I boot it from floppy on the occasion I use it
(yeah, you can make Win95 boot from floppy, but its hellish).

	What are the actual steps to mounting the msdos filesystem onto a
NetBSD filesystem? I've done the usual mount commands (see below, but of
the form "mount -t msdos /dev/wd1X /mnt"). I've redone the MAKEDEV. I've
toyed with the fstab.

	I don't know a lot about "disklabel" though; I'm told that if I
"diaklabel /dev/wd1X" I'll get a faked-up disklabel. This appears
correct.. I do get a disklabel. If I do "disklabel -R /dev/wd1X" then it
states finely "no disk label". (I list the actual disklabel it provides at
the end of this message).

	Should this faked-up disklabel have an msdos partition on it? Is
that the problem? When I try the mount commands, all I get is "device not
configured" or "invalid device".  My guesses are that I've botched the
kernal configuration somewhere, or else I have to write a disklabel in the
/etc/disktab and push it onto the drive. Can this be done without
destroying the data on the drive?  Kernal configs, disklabel outputs, etc,
are listed at the tail of this message.

	Thanks for any help you can provide.

	Secondly, I was wondering if any luck has been had with ZIP drives
and the so-called parallel interface?  If I can't get the msdos stuff to
work, it would be tempting to get one of these silly things. It would
appear a driver exists for Free and (cough) linux.

	If all else fails, I guess its time to (finally) fork out some
dough and pick up a SCSI card and a tape backup... any good, inexpensive
(and thus not fast or large) tape drives and SCSI cards of note? Or is
Adaptec the only real way to go for cards?

		Jeff

-- the /dev/ list for wd1X
# ls -l /dev/wd1*
brw-r-----  1 root  operator    0,   8 Jan 10 04:30 /dev/wd1a
brw-r-----  1 root  operator    0,   9 Jan 10 04:30 /dev/wd1b
brw-r-----  1 root  operator    0,  10 Jan 10 04:30 /dev/wd1c
brw-r-----  1 root  operator    0,  11 Jan 10 04:30 /dev/wd1d
brw-r-----  1 root  operator    0,  12 Jan 10 04:30 /dev/wd1e
brw-r-----  1 root  operator    0,  13 Jan 10 04:30 /dev/wd1f
brw-r-----  1 root  operator    0,  14 Jan 10 04:30 /dev/wd1g
brw-r-----  1 root  operator    0,  15 Jan 10 04:30 /dev/wd1h

-- a typical disklabel report
# /dev/wd1e:
type: ST506
disk: saugerwd
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 32
sectors/cylinder: 2016
cylinders: 524
total sectors: 1056384
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

5 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    48384        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 23)
  b:    64512    48384      swap                        # (Cyl.   24 - 55)
  c:  1056384        0    unused        0     0         # (Cyl.    0 -523)
  d:  1056384        0    unused        0     0         # (Cyl.    0 -523)
  e:   943488   112896    4.2BSD     1024  8192    16   # (Cyl.   56 -523)

# disklabel -r /dev/wd1e
disklabel: no disk label

-- if I try and mount the devices..
# mount -t msdos /dev/wd1e /mnt
msdos: mount: Invalid argument
# mount -t msdos /dev/wd1c /mnt
msdos: mount: Device not configured

-- relevant portions of my kernal configuration
options         MSDOSFS         # MS-DOS file system
config          netbsd  swap generic
options         GENERIC		# heavily modified generic kernal

wdc0    at isa? port 0x1f0 irq 14       # ST506, ESDI, and IDE controllers
#wdc1   at isa? port 0x170 irq ?	# EIDE card - 3 units on wdc0 (?)
wd*     at wdc? drive ?


 SLvH            |     "Millions for nonsense; not one cent for entropy!"
 Jeff Mitchell   |          Alfred Bester, _The Stars My Destination_
 skeezix@acm.org |   All arcade games released since '82 must be destroyed.