Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

error reading usb stick



On a dual boot windows 10 / netbsd laptop, a "STORE N GO" usb stick is
mounted and usable on windows, but not on netbsd.

windows claims that it is a FAT32 filesystem, so AFAICT this should just
work on netbsd, but on today's -current/amd64

# disklabel -t sd0
STORE N GO      |Automatically generated label:\
        :dt=SCSI:se#512:ns#32:nt#255:sc#8160:nc#3722:\
        :su#30320640:\
        :pd#30320640:od#0:\
        :pe#30312576:oe#8064:te=MSDOS:
disklabel: boot block size 0
disklabel: super block size 0
# mount /dev/sd0e /mnt
mount_msdos: /dev/sd0e on /mnt: Invalid argument

The end of a ktrace looks like:

   784      1 mount    CALL  ioctl(4,DIOCGDINFO,0x7f7fffffdcf0)
   784      1 mount    GIO   fd 4 read 408 bytes
       "WEV\M^B\^D\0\0\0STORE N GO      fictitious\0\0\0\0\0\0\0\^B\0\0 \0\0\0\
        \M^?\0\0\0\M^J\^N\0\0\M-`\^_\0\0\0\M-(\M-N\^A\0\0\0\0\0\0\0\0\^P\^N\^A\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\^A\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0WEV\M^B\M-%\^A\^E\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\M-(\M-N\^A\0\0\0\0\0\0\0\0\0\
        \0\0\0\M^@\M^H\M-N\^A\M^@\^_\0\0\0\0\0\0\b\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
   784      1 mount    RET   ioctl 0
   784      1 mount    CALL  close(4)
   784      1 mount    RET   close 0
   784      1 mount    CALL  __lstat50(0x7f7fffffcb80,0x7f7fffffbe40)
   784      1 mount    NAMI  "/mnt"
   784      1 mount    RET   __lstat50 0
   784      1 mount    CALL  __sysctl(0x7f7fffffc210,2,0x7f7ff7776488,0x7f7fffffc208,0,0)
   784      1 mount    RET   __sysctl 0
   784      1 mount    CALL  __sysctl(0x7f7fffffc148,2,0x7f7ff777f708,0x7f7fffffc140,0,0)
   784      1 mount    RET   __sysctl 0
   784      1 mount    CALL  readlink(0x7f7ff752b9ad,0x7f7fffffc230,0x400)
   784      1 mount    NAMI  "/etc/malloc.conf"
   784      1 mount    RET   readlink -1 errno 2 No such file or directory
   784      1 mount    CALL  mmap(0,0x1000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,,,>,0xffffffff,0,0)
   784      1 mount    RET   mmap 140187597234176/0x7f7ff7ef6000
   784      1 mount    CALL  mmap(0,0x1000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,,,>,0xffffffff,0,0)
   784      1 mount    RET   mmap 140187597230080/0x7f7ff7ef5000
   784      1 mount    CALL  mmap(0,0x100000,PROT_READ|PROT_WRITE,0x14001002<PRIVATE,,,ALIGN=1MB>,0xffffffff,0,0)
   784      1 mount    RET   mmap 140187593080832/0x7f7ff7b00000
   784      1 mount    CALL  fork
   784      1 mount    RET   fork 946/0x3b2
   784      1 mount    CALL  __wait450(0x3b2,0x7f7fffffcf80,0,0)
   784      1 mount    RET   __wait450 946/0x3b2
   784      1 mount    CALL  _lwp_self
   784      1 mount    RET   _lwp_self 1
   784      1 mount    CALL  __sigprocmask14(1,0x7f7fffffe630,0x7f7fffffe670)
   784      1 mount    RET   __sigprocmask14 0
   784      1 mount    CALL  __sigprocmask14(3,0x7f7fffffe670,0)
   784      1 mount    RET   __sigprocmask14 0
   784      1 mount    CALL  _lwp_self
   784      1 mount    RET   _lwp_self 1
   784      1 mount    CALL  __sigprocmask14(1,0x7f7fffffe580,0x7f7fffffe670)
   784      1 mount    RET   __sigprocmask14 0
   784      1 mount    CALL  __sigprocmask14(3,0x7f7fffffe670,0)
   784      1 mount    RET   __sigprocmask14 0
   784      1 mount    CALL  _lwp_self
   784      1 mount    RET   _lwp_self 1
   784      1 mount    CALL  __sigprocmask14(1,0x7f7fffffe580,0x7f7fffffe670)
   784      1 mount    RET   __sigprocmask14 0
   784      1 mount    CALL  __sigprocmask14(3,0x7f7fffffe670,0)
   784      1 mount    RET   __sigprocmask14 0
   784      1 mount    CALL  exit(1)

so not obvious to me where the error is. (/etc/malloc.conf indeed does not exist)


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index