Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
lonelliott
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 20
Join Date: Dec 2011
Default mount: mounting /dev/block/mmcblk0p12 on /sdcard failed: Invalid argument

Any ideas?
 
jlocohustler
Old
#2  
Member
Thanks Meter 9
Posts: 61
Join Date: Dec 2011
Quote:
Originally Posted by lonelliott View Post
Any ideas?
Which command did you send?

Sent from my Kindle Fire using Tapatalk
 
gloos
Old
#3  
Member
Thanks Meter 7
Posts: 42
Join Date: Nov 2011
Location: London

 
DONATE TO ME
are you logged in on adb? Try to type "exit" then "adb shell".
You don't have to mount your sdcard after using adb shell. (at least I didn't have to on my mac)
 
lonelliott
Old
#4  
Junior Member - OP
Thanks Meter 0
Posts: 20
Join Date: Dec 2011
For some reason it will not mount my sdcard, at all. I can adb shell onto it, but when I try to run the update.zip from it, I get an error saying it cannot mount the sd card.
 
death2all110
Old
#5  
Senior Member
Thanks Meter 217
Posts: 292
Join Date: Sep 2010
Location: Illinois

 
DONATE TO ME
I had the same issue on mine. Heres the fix:

In TWRP with the fire connected to the pc run:

Code:
adb shell
echo /dev/block/mmcblk0p12 > /sys/devices/platform/usb_mass_storage/lun0/file
Windows will probably respond that the volume/device needs formatted before using it.

Thats okay. choose quick format and let it format it as fat32 block size 4096.

when its done

in twrp choose the mount option and mount USB storage then hit unmount again

tap the box next to Mount SDCard. It should now look like

[X] Unmount SDCard.

Download the 6.2.1 pre-rooted zip file from the thread in the dev section.

choose mount USB Storage

Place on SDCard

Turn off usb storage

choose wipe

choose cache
choose factory reset
choose dalvik cache
choose system

go back and choose install

choose the zip you placed on your sdcard

flash it.

reboot. if it reboots back into twrp

run

Code:
adb shell
idme ? <--that will probably tell you the bootmode is 0x5003
idme bootmode 0x4000
exit
in twrp choose reboot
choose system

enjoy! it may take a while to boot
The Following 3 Users Say Thank You to death2all110 For This Useful Post: [ Click to Expand ]
 
Dmitry_G
Old
#6  
Junior Member
Thanks Meter 2
Posts: 10
Join Date: Dec 2011
I have the same problem. Can't mount sdcard.

I'm doing your fix step by step in Win XP. I formatted partition into Fat32. Though it didn't allow me to select block size. It just has one option "Default allocation size". Capacity is 200MB.

After that I'm trying to tap on the Mount SDCard option, but it wouldn't change to [X] Unmount SDCard. So it wouldn't mount and I'm back to the problem.

Any ideas on what could go wrong?
 
Dmitry_G
Old
#7  
Junior Member
Thanks Meter 2
Posts: 10
Join Date: Dec 2011
I finally figured it out!

The key thing is that sdcard HAS to be formatted in a certain way - FAT32 (and presumingly block size 4096 as mentioned above).

Brief history:

I followed the above instruction and formatted sdcard on a mac with Disk Utility. That didn't work. It still wouldn't mount. I tried to do the same thing in Windows XP. No luck. It wouldn't mount with the same "Invalid argument" error.

I figured that I should try and format sdcard right from the TWRP shell. I deleted and recreated partition with fdisk. Then I learned that TWRP 2 comes with pretty old busybox which doesn't have mkfs or mkfs.vfat to format the partition to FAT 32. So took the busybox binary from the pre-rooted 6.2.1 and pushed it to the KF. And I used mkfs.vfat.

Instructions:
Download and unzip pre-rooted 6.2.1..

Rename busybox to busybox1 (just not to mess up existing version) and copy it to your KF.
Code:
adb push /path_to_unzipped_6.2.1/system/xbin/busybox1 /sbin
Go to shell:
Code:
adb shell
~ # chmod 755 /sbin/busybox1
~ # busybox1 mkfs.vfat /dev/block/mmcblk0p12 
~ # mount sdcard
There you go! Now your sdcard is mounted. And you can proceed with the instruction above.
The Following User Says Thank You to Dmitry_G For This Useful Post: [ Click to Expand ]
 
BradOKeefe
Old
#8  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Dec 2011
death2all110, thanks for the post. This solved my issues....beer money sent!

Brad
 
Muddquez
Old
#9  
Junior Member
Thanks Meter 1
Posts: 2
Join Date: Dec 2011
Thanks Dmitry_G, That was exactly what I needed!
 
lonelliott
Old
#10  
Junior Member - OP
Thanks Meter 0
Posts: 20
Join Date: Dec 2011
You guys are amazing and you have brought my Kindle back from the dead. Thank you sincerely.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more

Profile Flow: A Tasker Alternative

By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more

More Tips to Help Promote Your Android App

With over 700,000 apps in the Google Play store and more than 48 billion app installs, it’s … more