mount_msdosfs oddity



Hello,

my Sony Ericsson W810i cell phone comes with a USB cable and presents
the internal memory and the memory stick as two umass devices (da0,
da1). When I try to mount one of them (mount -t msdosfs), I am getting
the error message:
(41) lars@ttyp6 # mount -t msdosfs /dev/da0 mnt/usb
mount_msdosfs: /dev/da0: Invalid argument
Which is okay because it's not possible to mount da0 directly.
But after that a new device da0s1 shows up, which returns the same
error message when I try to mount it.

=== fdisk ===

(43) lars@ttyp6 # fdisk /dev/da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=26 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=26 heads=64 sectors/track=32 (2048 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 4 (0x04),(Primary DOS with 16 bit FAT (< 32MB))
start 3, size 38509 (18 Meg), flag 80 (active)
beg: cyl 0/ head 0/ sector 4;
end: cyl 89/ head 2/ sector 18
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>


=== file ===

(44) lars@ttyp6 # file -s /dev/da0s1
/dev/da0s1: x86 boot sector

This does not look like an msdosfs partition...


=== dmesg ===

umass0: <Sony Ericsson Sony Ericsson W810, class 0/0, rev 2.00/0.00,
addr 2> on uhub0
umass1: <Sony Ericsson Sony Ericsson W810, class 0/0, rev 2.00/0.00,
addr 2> on uhub0
(probe0:umass-sim0:0:0:0): Uninitialized Transport 5:26?
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <SEMC Int.Memory 0000> Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
(probe0:umass-sim1:1:0:0): Uninitialized Transport 5:26?
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): Unretryable error
Opened disk da0 -> 6
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): Unretryable error
Opened disk da0 -> 6
da1 at umass-sim1 bus 1 target 0 lun 0
da1: <SEMC Mem-Stick 0000> Removable Direct Access SCSI-0 device
da1: 1.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): Unretryable error
Opened disk da0 -> 6
(da1:umass-sim1:1:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error
(da1:umass-sim1:1:0:0): SCSI Status: Check Condition
(da1:umass-sim1:1:0:0): NOT READY asc:3a,0
(da1:umass-sim1:1:0:0): Medium not present
(da1:umass-sim1:1:0:0): Unretryable error
Opened disk da1 -> 6
(da1:umass-sim1:1:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error
(da1:umass-sim1:1:0:0): SCSI Status: Check Condition
(da1:umass-sim1:1:0:0): NOT READY asc:3a,0
(da1:umass-sim1:1:0:0): Medium not present
(da1:umass-sim1:1:0:0): Unretryable error
Opened disk da1 -> 6
(da1:umass-sim1:1:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error
(da1:umass-sim1:1:0:0): SCSI Status: Check Condition
(da1:umass-sim1:1:0:0): NOT READY asc:3a,0
(da1:umass-sim1:1:0:0): Medium not present
(da1:umass-sim1:1:0:0): Unretryable error
Opened disk da1 -> 6


I assume that mount_msdosfs is lacking some way to mount these
partitions. Goggle told me that mounting it works on FreeBSD.
Not to mention that I can also mount it with Windows XP...

I also did not have any success with the mtools.

Lars

--
Lars Engels
E-Mail: lars.engels@xxxxxxxx

Attachment: pgpF8HHdDOvVg.pgp
Description: PGP signature



Relevant Pages

  • CAM disk I/O starvation
    ... I am convinced that there is a bug in the CAM code that leads to I/O starvation. ... da0 and da1 shows that both devices have 252 openings each. ...
    (freebsd-hackers)
  • random problem with 8.3 from yesterday
    ... # This script format a thumb drive connected to USB as da0. ... printf "You have to run this script as 'root' to succeed.\n" ... When I then try to mount the device on /dev/da0a it does not work always. ...
    (freebsd-stable)
  • USB pen drive not detected
    ... when I try to attach and mount my 16 GB USB pen drive. ... On the other hand: when I attach the drive and reboot I get: ... GEOM: da0: partition 1 does not start on a track boundary. ...
    (freebsd-questions)
  • Replacing hdd in multiboot system
    ... da0 is MS-DOS only. ... FreeBSD boots from da1, which also contains the root filesystem. ... needs to boot from da0 and FreeBSD needs to boot/root from da1. ...
    (freebsd-questions)
  • Re: problems mounting android htc
    ... da0: Attempt to query device size failed: NOT READY, ... GEOM: da0: partition 1 does not start on a track boundary. ... It refused to mount.. ...
    (freebsd-questions)