Subject: zip mount and msdosfs problem
To: UUCP <port-alpha@netbsd.org>
From: Tobias Ernst <tobi@bland.fido.de>
List: port-alpha
Date: 07/13/1999 00:52:38
Hallo!

As noted previously, I am trying to set up a DEC 3000 on NetBSD 1.4 (release)
to be a NFS server that can mount a (SCSI) zip drive and a (SCSI) floppy disk.
In doing so, I ran across two probably unrelated problems. The first is that I
think the system does not generate the (fake) disklabel for the ZIP correctly.
The second is that I think that the msdos filesystem does not behave right for
the floppy.

Problem #1: I am not able to mount a pristine ZIP disk as bought from the
vendor (i.E. a MSDOS-style partition table with a FAT parition in the 4th
slice). As I extracted from the mailing list archives, NetBSD is supposed to
generate a fake disk label in this case. Well, on my system it looks like this:

  # /dev/rsd1c:
  type: SCSI
  disk: ZIP 100
  label: fictitious
  flags:
  bytes/sector: 512
  sectors/track: 32
  tracks/cylinder: 64
  sectors/cylinder: 2048
  cylinders: 96
  total sectors: 196608
  rpm: 3600
  interleave: 1
  trackskew: 0
  cylinderskew: 0
  headswitch: 0                # milliseconds
  track-to-track seek: 0        # milliseconds
  drivedata: 0 
  
  3 partitions:
  #        size   offset     fstype   [fsize bsize   cpg]
    c:   196608        0     unused        0     0         # (Cyl.    0 - 95)
  disklabel: boot block size 0
  disklabel: super block size 0

The problem is that

  mount -t msdos -o rw /dev/sd1c /mnt

fails with "invalid argument". Anyway, I wonder why the fake disklabel does not
show a d parition with msdos flag.


Problem #2: If I write a proper NetBSD-style disklabel to the ZIP (which of
course is not what I want because the users will disklike it, but anyway), or
if I use the SCSI floppy, I can mount a msdos style file system, or create one
with mtools.

However, that file system works only in the root directory; in working with
subdirectories it has severe problems as illustrated by the command sequence
below:

  holmes# mkdir x
  mkdir: x: Is a directory
  holmes# cd x
  holmes# ls
  holmes# cp ../msdos.o .
  cp: ./msdos.o: Invalid argument
  holmes# ls ../msdos.o
  .../msdos.o
  
Here is how the kernel probes the SCSI bus (in this case, only with the ZIP
connected):

tcds0 at tc0 slot 2 offset 0x0: TurboChannel Dual SCSI (baseboard)
asc0 at tcds0 chip 0: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at asc0: 8 targets, 8 luns per target
probe(asc0:3:0): max sync rate 5.00Mb/s
sd0 at scsibus0 targ 3 lun 0: <DEC, RZ26L (C) DEC, 440C> SCSI2 0/direct fixed
sd0: 1001MB, 3117 cyl, 8 head, 82 sec, 512 bytes /sect x 2050860 sectors>
sd1 at scsibus0 targ 4 lun 0: <IOMEGA, ZIP 100, E.08> SCSI2 0/direct removable
sd1: drive offline

Thanks already.

Viele Gr=FC=DFe,
Tobias