• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Can't mount the SD card in Linux Mint 11

Neophox

Lurker
Solved: Reformatted the sd card as fat32, 32 kb allocation. Thanks, guys.

So, I'm not having any luck mounting my HD's SD card via USB in mint. So far, I've set the phone to default to mounting as a USB device, enabled debug, tried a different cord, tried both the front and back usb ports, and tried the same cord on a windows machine (it worked). I've also added a rule to udev, with no luck. The computer sees that an android device is plugged in, but I can't access it. Watching it from Computer when it first connects, it will recognize it's an android phone, mount the file system (I believe. It will briefly display the size of the sdcard), then fail, and go back to saying HTC Android Phone. At the same time, the phone will prompt for a connection type. I can specify mass media storage, at which point it will try to mount, then revert to charging only. Pulling down the menu only gives me the options to charge, sync, tether, or share internet. lsusb returns a single device, ID 0bb4:0ca2 High Tech Computer Corp, located on a usb 2.0 hub. I think this may be part of my problem, as it seems like other forum posts mention two devices being mounted when the phone is plugged in. I'm out of ideas, and would appreciate any advice. It looks like it may be possible to install the android developer platform, and run the adp server with super-user privileges, and that may solve the issue. Anyone try this? If so, could you give simple advice? I'm pretty new to linux. Edit: I've also tried sudo mount -t vfat -U /media/droid, but that didn't do anything for me, either. Edit: There should be a Device Id in there. It's there, I swear. Really. I just put it in brackets, and it got interpreted as HTML, or some such.
 
Thanks, NightAngel. I'll give a bit more information then, since it's no longer a device-specific board. It's an HTC Desire HD, running Android 2.3.3
 
It *should* be working. I've been using linux with my Evo in disk mode since I got the evo, never had an issue. Try this from command line, then plug in phone in disk mode, then the command again.
Code:
 lsusb
Then look through the two outputs and see if the phone is showing up...

this lists all usb devices, so you'll begin the troubleshooting process.

EDIT: I see you've already tried that. Ooops... reading ftw right?

--

I guess you could try to mount the SD card by itself... using a micro SD adapter or whatever you have available to you.
 
Yeah, that's the impression I've been getting, that it Just Works. There's enough Mint users who also have an android that I can believe it, which makes it even more curious that my computer, and apparently my computer alone, can't mount the phone. I've started up a cross-post on the Mint forum, and we'll see where that takes me, as well. As far as using an SD card reader, I could do that, but it's definitely not the optimal solution. I don't really want to call this solved, when it's only a workaround.
 
Could you try to boot into a live disc for a different version, that way you can see if it's the phone or the computer. IE: boot into LM 10 or the 12 RC or ubuntu.

I guess it could be that something just went screwy with your set up, but it almost seems like a phone issue to me...?
 
Right, I hadn't thought of that. Downloading ubuntu right now. I'll have an update on the weekend, when I've got time to test it.
 
Well, a bit of an update. I've tried Mint 9, LMDE 2011/09, and Ubuntu 11.10, all with no luck. I also booted windows 7 on the same machine and mounted the phone successfully. Currently, my impression is that the phone unmounts the SD card so the computer can access it, then the computer forgets it was ever there. The end result is that the sd card sits in limbo, and I can't remount it on the phone, or mount it from the computer. Since it mounts successfully in Windows, I don't think it's a problem with the phone, sd card, or computer. I'm not a computer engineer, but I think that means there's a problem in mint's drivers, where it just won't work with some component of my computer. I'm on the lookout for another OS to test with, built on a completely different codebase. That would mean the drivers are also different. If the phone were to mount on this other OS, it would lend some weight to my idea of a driver issue. Anyone know of any distributions like that?
 
Another update. Using dmesg | grep sd, I got a long list of messages related to /dev/sdf.
Code:
[121645.464519] sd 13:0:0:0: Attached scsi generic sg6 type 0     
[121645.494370] sd 13:0:0:0: [sdf] Attached SCSI removable disk     
[121938.741259] sd 15:0:0:0: Attached scsi generic sg6 type 0     
[121938.770743] sd 15:0:0:0: [sdf] Attached SCSI removable disk    
[121988.014878] sd 15:0:0:0: [sdf] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)     
[121988.020861] sd 15:0:0:0: [sdf] No Caching mode page present     
[121988.020866] sd 15:0:0:0: [sdf] Assuming drive cache: write through     
[121988.030857] sd 15:0:0:0: [sdf] No Caching mode page present     
[121988.030865] sd 15:0:0:0: [sdf] Assuming drive cache: write through     
[121988.034119]  sdf: sdf1     
[121988.977984] sd 15:0:0:0: [sdf] Unhandled sense code     
[121988.977991] sd 15:0:0:0: [sdf]  Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE     
[121988.977999] sd 15:0:0:0: [sdf]  Sense Key : Medium Error [current]     
[121988.978011] sd 15:0:0:0: [sdf]  Add. Sense: Unrecovered read error     
[121988.978019] sd 15:0:0:0: [sdf] CDB: Read(10): 28 00 00 00 28 00 00 00 08 00     
[121988.978038] end_request: I/O error, dev sdf, sector 10240     
[121988.978049] Buffer I/O error on device sdf1, logical block 256     
[121989.004913] Buffer I/O error on device sdf1, logical block 1024     
[121989.004924] Buffer I/O error on device sdf1, logical block 1025     
[121989.004929] Buffer I/O error on device sdf1, logical block 1026     
[121989.004934] Buffer I/O error on device sdf1, logical block 1027     
[121989.004939] Buffer I/O error on device sdf1, logical block 1028     
[121989.004944] Buffer I/O error on device sdf1, logical block 1029     
[121989.004949] Buffer I/O error on device sdf1, logical block 1030     
[121989.004954] Buffer I/O error on device sdf1, logical block 1031     
[121989.008846] sd 15:0:0:0: [sdf] Device not ready     
[121989.008850] sd 15:0:0:0: [sdf]  Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE     
[121989.008859] sd 15:0:0:0: [sdf]  Sense Key : Not Ready [current]     
[121989.008865] sd 15:0:0:0: [sdf]  Add. Sense: Medium not present     
[121989.008874] sd 15:0:0:0: [sdf] CDB: Read(10): 28 00 00 00 40 00 00 00 08 00     
[121989.008888] end_request: I/O error, dev sdf, sector 16384
I pruned a lot of it out. The block from "Device not ready" to "end_request" repeats, with different sectors. How can I interpret this? Going by what I assume are the thrown exceptions, it looks like the phone is trying to send some kind of data to the computer, and the HTC driver isn't handling it. Any thoughts?

Edit: Some further research says that DRIVER_SENSE isn't an HTC Sense driver, but just something declared in the kernel. I'm still pretty sure /dev/sdf is my phone, as it's the only 8 GB drive I have.
 
I'm marking this as solved. Looks like the sd card hadn't been formatted properly, and mint wasn't able to mount it. Reformatting seemed to have worked.

Edit: I'm not seeing an option to change the thread title. Can a mod throw [solved] in the front of it?
 
Back
Top Bottom