Still no improvement with Slackware 13.1 (kernel 2.6.33.4, libusb-1.0.6).
Here's more detail:
I'm looking at the microSD card I use in the phone. It says 2GB. I put it into the phone, turn it back on.
I press, "Connect to PC" on the phone's menu. I get the following in /var/log/messages:
Code:
Aug 2 17:07:06 bowman kernel: usb 2-5: new full speed USB device using ohci_hcd and address 9
Aug 2 17:07:07 bowman kernel: usb 2-5: New USB device found, idVendor=05c6, idProduct=1000
Aug 2 17:07:07 bowman kernel: usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 2 17:07:07 bowman kernel: usb 2-5: Product: USB MMC Storage
Aug 2 17:07:07 bowman kernel: usb 2-5: Manufacturer: Qualcomm, Incorporated
Aug 2 17:07:07 bowman kernel: usb 2-5: SerialNumber: 000000000002
Aug 2 17:07:07 bowman kernel: scsi9 : usb-storage 2-5:1.0
Aug 2 17:07:12 bowman kernel: scsi 9:0:0:0: Direct-Access Samsung Mass Storage 2.31 PQ: 0 ANSI: 2
Aug 2 17:07:12 bowman kernel: sd 9:0:0:0: Attached scsi generic sg4 type 0
Aug 2 17:07:12 bowman kernel: sd 9:0:0:0: [sdc] 1985025 512-byte logical blocks: (1.01 GB/969 MiB)
Aug 2 17:07:12 bowman kernel: sd 9:0:0:0: [sdc] Write Protect is off
Aug 2 17:07:12 bowman kernel: sdc: sdc1
Aug 2 17:07:12 bowman kernel: sd 9:0:0:0: [sdc] Attached SCSI removable disk
Aug 2 17:07:13 bowman hald: mounted /dev/sdc1 on behalf of uid 1000
The above shows it's only 1GB.
Code:
lyle@bowman:/tmp$ df | egrep 'sdc|File'
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 1983360 1291744 691616 66% /media/disk
# The above shows it to be 2GB.
Code:
lyle@bowman:/tmp$ echo '1024 * 691616' | bc
708214784
So, according to df, it has 708214784 bytes free.
Here's a file that should fit on the device.
Code:
lyle@bowman:/tmp$ ls -l should_fit
-rw------- 1 lyle lyle 690000000 2010-08-02 17:22 should_fit
So, I copy it on.
Code:
lyle@bowman:/tmp$ cp should_fit /media/disk/
lyle@bowman:/tmp$ echo $?
0
It copied successfully, although I get reams of messages of the form:
Code:
Aug 2 17:27:55 bowman kernel: attempt to access beyond end of device
Aug 2 17:27:55 bowman kernel: sdc1: rw=1, want=3925911, limit=1984776
in /var/log/messages. But cp did exit without error.
It appears to be there; the device in nearly full as seen below. The phone's UI agrees.
Code:
lyle@bowman:/tmp$ df | egrep 'sdc|File'
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 1983360 1965600 17760 100% /media/disk
I'll attempt to copy it back off:
Code:
lyle@bowman:/tmp$ cp /media/disk/should_fit should_fit.copy
cp: reading `/media/disk/should_fit': Input/output error
So, it didn't read it back off.
Code:
lyle@bowman:/tmp$ ls -l should_fit.copy
-rwx------ 1 lyle lyle 36962304 2010-08-02 17:46 should_fit.copy*
So, I get some of it back, but not all. I also get a few more 'attempt to access beyond end of device' in /var/log/messages.
This all works properly with Windows. It fails the same way on another Slackware 13.1 box I have.
In conclusion:
- There are two subsystems that aren't agreeing about the size of the device.
- What are these two subsystems?
- How does each of them determine the size of devices?
Thanks,
Lyle.