Port-amd64 archive

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

Re: umass(4) broken on netbsd-7/amd64?



Nick Hudson <skrll%netbsd.org@localhost> writes:

> The problem is memory fragmentation.
>
> dd if=/dev/zero of=/dev/null bs=256m count=1
>
> Can help, I believe.

It didn't, but upping to 1024m did the trick:

: thuvia# ;dmesg
[...]
umass1 at uhub3 port 3 configuration 1 interface 0
umass1: SMI Corporation (0x90c) USB DISK (0x1000), rev 2.00/11.00, addr 7
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 1 lun per target
sd4 at scsibus1 target 0 lun 0: <S31B1103, USB DISK, 1100> disk removable
sd4: 3864 MB, 7872 cyl, 16 head, 63 sec, 512 bytes/sect x 7913472 sectors

However, I still can't mount the MS-DOS file system:

: thuvia# ;mount /dev/sd4e /m/stick
mount_msdos: /dev/sd4e on /m/stick: Invalid argument

This has always worked fine, and still did with 8.99.1.

: thuvia# ;disklabel sd4
[...]
5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:   7913472         0     unused      0     0        # (Cyl.      0 - 7850*)
 e:     58593         1      MSDOS                     # (Cyl.      0*-   58*)

: thuvia# ;fdisk sd4
[...]
Partition table:
0: DOS (16-bit FAT) - LBA (sysid 14)
    start 1, size 58593 (29 MB, Cyls 0/0/2-3/165/4), Active

Interestingly, if I attach an SD card reader, I can mount an MS-DOS file
system from that.  It shows up not as "USB DISK", but "Generic Mass
Storage Device":

umass1 at uhub3 port 4 configuration 1 interface 0
umass1: Generic (0x58f) Mass Storage Device (0x6362), rev 2.00/1.00, addr 7
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 4 luns per target
sd4 at scsibus1 target 0 lun 0: <Generic, USB SD Reader, 1.00> disk removable
sd4: drive offline
sd5 at scsibus1 target 0 lun 1: <Generic, USB CF Reader, 1.01> disk removable
sd5: drive offline
sd6 at scsibus1 target 0 lun 2: <Generic, USB SM Reader, 1.02> disk removable
sd6: drive offline
sd7 at scsibus1 target 0 lun 3: <Generic, USB MS Reader, 1.03> disk removable
sd7: drive offline

5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:     31424         0     unused      0     0        # (Cyl.      0 - 15*)
 e:     31392        32      MSDOS                     # (Cyl.      0*- 15*)

: thuvia# ;mount /dev/sd4e /m/stick
: thuvia# ;ls -l /m/stick/
total 8
drwxr-xr-x  1 tih  staff  4096 Sep 21  2008 palm
arwxr-xr-x  1 tih  staff    24 Sep 21  2008 volume.nam

(It's been a while since I last played with Palm devices...)

-tih
-- 
Most people who graduate with CS degrees don't understand the significance
of Lisp.  Lisp is the most important idea in computer science.  --Alan Kay


Home | Main Index | Thread Index | Old Index