Corrupt files when BB8130 media card accessed via Linux, but not via MS Windows
Hello,
When I try accessing the JPEG photos on the MicroSD card in my BlackBerry 8130 over USB by mounting it as a Mass Storage Device under Linux (Fedora 8), the JPEG files are corrupted. However, when I try accessing the same files on the same card using the Windows Explorer under Microsoft Windows XP, the JPEG files are fine. Any suggestions to getting this working properly under Linux? Thanks! |
Well that's rather odd - you didn't mention, but do you have the SD card encryption turned on in the BlackBerry options?
If not, have you tried reformatting the SD card completely (from the device) to see if that fixes it? |
Quote:
I do/did not have encryption on. I have not yet tried reformatting the SD card completely. In fact, I never formatted it originally -- I just inserted it into my phone. I'll give this a try, but I wonder why I can properly access the files when the card is mounted as a Mass Storage Device under MS Windows, but not when it's mounted as a Mass Storage Device under Linux. |
Quote:
1) reformat the SD card from the phone itself. Theory: mass formatting at a factory used some sort of non-standard method that was off a bit. 2) replace SD card. Theory: SD card is either a cheap knockoff/counterfeit and/or has non-spec electronics in it that barely work under Windows and maybe not other standards-compliant OSes (Mac, FreeBSD, etc.). So just test #1 out, easy to do and quick to find out if it works... |
Quote:
I tried 1), but I still get the same thing: corrupt JPEG files when I try mounting the MicroSD card over USB under Linux. Weird. |
Quote:
|
Quote:
Hmmm .... |
Quote:
Just out of curiosity, have you tried swapping the cable, trying a different USB port, not using a USB hub, and other hardware switchups like that? Also there is a bug in F8 ("fixed" in F9) where the BB crashes/reboots when plugged into an external USB hub but works fine when plugged directly in to a machine. One thing you could also look at - there's a module called 'berry_charge' that messes with the USB mass storage sometimes; you could try unloading that module (rmmod berry_charge), then locate it on disk and physically rename the file so it won't load when you plug in your 8130; it lives in /lib/modules/<kernel version>/kernel/drivers/usb/misc/berry_charge.ko physically. Then try plugging in your 8130 and see what happens... |
Quote:
Thanks very much again for your suggestions. I have tried the different things you've suggested: different USB ports, I don't have a USB hub, and I have berry_charge in my modprobe blacklist file so that this kernel module doesn't get loaded. I've also tried this on a different computer, which is using a much older linux distro (Scientific Linux 3(?), which is a respin of Red Hat Enterprise Linux 3), and with a different USB cable. Same thing there. Very, very strange. If not for the fact that I can properly read over USB under MS Windows, I would think that my phone is somehow fubar. Thanks again for all the suggestions. |
I've run out of ideas here; This is pretty frustrating.
Can anybody who can properly mount and access the files on their BlackBerry's MicroSD card over USB under Linux let me know what "mount" options are being used? Also, can you tell me what BlackBerry OS version you're using. In particular, I'd be curious to hear from any 8130 owners. The problem doesn't appear to be distro-specific; I encountered the same problem using a much older Linux distro than the Fedora 8 distro I use on my primary-use computer. Thanks! |
I'm using Kubuntu Hardy. These are the mount options used when it automounts:
Code:
/dev/sdf1 on /media/disk type vfat (rw,nosuid,nodev,noatime,uhelper=hal,flush,uid=1000,utf8,shortname=lower) Are there any other files you can test with? song perhaps? Also, copy the file out first before opening it via terminal, so just do cp /media/disk/pic.jpg ~/ |
Quote:
It does not seem to matter whether I try loading the image file directly from the phone, or first copying it to disk. I tried copying an mp3 from my computer to the phone. While the mp3 seemed to play fine, the md5 checksum on the file on the phone was different than the md5 checksum of the source file on disk. So it seems that there are errors both moving a file from the phone to my computer, and vice-versa. My phone's OS is 4.3.0.97 (this is a Verizon Wireless phone), which is different from yours. I wonder if this is why you seem to have no problems with your phone, but I do? Thanks for your suggestions. |
Quote:
|
Quote:
My "file manager" ("cp -p") doesn't change the file modification date. Even if I did, however, I believe that the md5sum should be identical, as it's based on file content, not meta-data like the modification date. In fact, I just tested this by copying ("cp", without "-p") a file to another file: they have different modification dates, but the same md5 checksum. Thanks! |
Gotcha. I actually just experienced the incomplete file issue and my blackberry froze up on me :/
|
Anyone else have any other ideas/suggestions?
Thanks. |
I too, am having this very same issue. Works fine under Windows, JPEG corruption under Linux. :?
I'm using Ubuntu Hardy with an 8130, OS 4.3.0.97 US Cellular. Anyone have any new information to report? |
I know this might be a long shot, but...
a) are you guys using the same brand/size of SD card? b) have you tried using a different (brand, size) SD card? I just wonder if it's something weird - hardware wise - with the 8130 and a specific SD card, it's maybe reporting odd behaviour to Linux. |
Quote:
Have you tried with any other brand of microSD? asl have you tried to read the card directly in your computer through a card reader and not the BB? |
just wanted to give this a bump. I've more or less confirmed it is a kernel issue, this is what I did to test:
mounted blackberry, created symbolic link from the folder of pictures to one in my home folder. Launched virtualbox, (I have my home folder mapped through to the windows vm) Browsed to pictures, was able to see a few. I had thumbnail view on by accident, so after loading a few, I got a partial load then the phone rebooted twice (hard reboots). After reconnecting phone, tried browsing again, but all pictures either didn't load, or were partial/corrupy. This is in Kubuntu hardy 32-bit 2.6.24-21-generic |
All times are GMT -5. The time now is 04:17 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.