Mounted phone memory card shows incorrect disk size.

Thomas Kaiser ubuntu at kaiser-linux.li
Wed May 9 20:08:25 UTC 2007


Hello Johan

Thomas Kaiser wrote:
> Johan Grönqvist wrote:
>> Hello,
>>
>> I have a phone (SonyEricsson K550i) with a 2 GiB memory card, and try to
>> transmit files to the card by connecting the phone via USB and mounting
>> the phone card as a USB disk.
>>
>> My immediate problem is that copying to the memory card is unreliable.
>> It has not destroyed data that was previously on the card, but the files
>> I wish to copy do not always end up on the card.
>>
>> After lots of problems I recreated the filesystem on the disk and
>> created a partition of size 1.9 GiB. The size displayed by "df -h" is
>> (after some copying) much larger than the actual size of the memory
>> card. (Around 6 GiB.) The command "dmesg" shows some errors like this
>> (lots of them)
>>
>> [ 7788.752000] sdc: rw=0, want=3984117, limit=3984057
>> [ 7788.752000] attempt to access beyond end of device
>> [ 7788.752000] sdc: rw=0, want=3984118, limit=3984057
>> [ 7788.752000] attempt to access beyond end of device
>> [ 7788.752000] sdc: rw=0, want=3984119, limit=3984057
>> [ 7788.756000] attempt to access beyond end of device
>> [ 7788.756000] sdc: rw=0, want=3984058, limit=3984057
>> [ 7788.756000] attempt to access beyond end of device
>> [ 7788.756000] sdc: rw=0, want=3984059, limit=3984057
>> [ 7788.756000] attempt to access beyond end of device
>> [ 7788.756000] sdc: rw=0, want=3984060, limit=3984057
>> [ 7788.756000] attempt to access beyond end of device
>> [ 7788.756000] sdc: rw=0, want=3984061, limit=3984057

I see the same after mounting (automount, just by connecting and 
choosing USB).

thomas at LAPI02:~$ fdisk -l
Disk /dev/sdb: 1003 MB, 1003430400 bytes
48 heads, 48 sectors/track, 850 cylinders
Units = cylinders of 2304 * 512 = 1179648 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         851      979912+   6  FAT16


I did not format or repartition the memory card. It is original!


I copied a 130MB .avi file to the phone and did not get any error in the 
log. After copying I unmounted the phone and restarted the PC. After 
restart, I connected the phone again and copied the .avi file back to my 
PC. Again no errors in the log during copy. The file was played OK. So, 
I assume there is no problem with copy from/to the memory card of the phone.

But I could not see the phone memory when I connect as USB. Only 
/dev/sdb1 showed up.


> I have found a package called wammu in ubuntu, and I think it claims an
> ability to copy SMS messages from certain phones. I used it for the
> contact list, and it seemed to work fine.

I install wammu and did a scan for my phone (phone is in "phone" mode 
NOT USB). wammu did report 2 phones (ttyACM0 and ttyACM1)!

All retrieve options (Conntacts, Calendar, ....) did work, except 
Messages :-(. wammu did start doing something when I choose to retrieve 
"Messages" but It failed with an error:
Description: Invalid location. Maybe to high?
Function: GetSMS
Error Code: 24

That's all what I did so far for testing.

Wammu looks quite nice to sync the phone with Linux, so I will 
investigate more ;-)

Thomas

PS: All this was done with Ubuntu Feisty.


-- 
http://www.kaiser-linux.li




More information about the ubuntu-users mailing list