[Q] Mount SDCard in console - Tilt, TyTN II, MDA Vario III Android Development

Hi.. how i can mount/remount sdcard in console? because something is wrong.. in every roms when i goes to sdcard in setting its show unavailable.. once time ago i wrote something in console as remount and it was okey.. but i forgot it how i can do that.. i tried many combination of command mount but nothing. maybe i can find in google with keyword "mount/remount in linux" can be possible?
but through astro i can explore sdcard.. its strange..
please help. And thanks for answers

Code:
mount /dev/block/mmcblk0pN /sdcard -t FSTYPE
N is number of partition (usually 1) and FSTYPE is vfat or ext2 (usually vfat)
Google is a good help so please use it!

i look on mount and sdcard is mounted.. but still i cannot explore it with anything except astro.. i think maybe is problem in kernel.. i have last kernel version... working sdcard full for everyone? maybe is problem only in my phone.. or its global error

Sd card works in latest kernel, probably is your problem, reformat the card.

Try this:
vdc volume mount /sdcard

Related

Formatted and partitioned SD card (fat32 and ext2) not mounting with Redux rom.

I've created a ~500mb ext2 partition on my sdcard on redux custom rom 1.0.2 on htc desire. However, Link2sd doesn't seem to like this partition (complains that it can't mount and can't write a script to automount at boot), but then I read that redux comes with something installed already. However, it doesn't seem to be using the partition properly.
Mount shows up thus:
#mount
...
/dev/block/mmcblk0p2 on /sd-ext type ext2 (rw,noatime,nodiratime,barrier=1,data=ordered)
...
Any suggestions about what I need to do to get this partition used as part of the system storage?
Thanks in advance.
Try ext3 / ext4.
AFAIK ext2 is no longer supported in the scripts.
According to EASEUS partition Manager this partition is already ext3, but according to my mount command above it's ext2 - now I'm really confused. . Any other suggestions?
Hi there,
I do have similar problems.
After flashing latest Redux2 Rom, my Desire refuses to mount my SD-Card. I'm not able to see it in the Settings, nor am i able to flash or Restore anything from it in Recovery mode.
After trying going to "Flash zip from sdcard" i get the Error:
E:Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0)
(No sich file or direktory)
E:Can't mount SDCARD:
I already tried the SD-Card in another phone and it's working proberly. I Already formated it on the other phone and tried formating it in Recovery.
As a result i'm also unable to reRoot it with unRevoked as the Phone won't go into USB mode...
Any suggestions how i might fix this problem?
MfG
Dominik
Use the search. Problem got solved very often.

[Dev Q] mount 2nd ext partition as mmcblk0p3?

Hope this is in the right section, I need help from a developer on this as I don't quite understand what is needed to do this.
I use Gingervillain and the DT a2sd. What I want to do is move my /cache (not dalvik cache but the partition itself) to ext.
I have the commands all ready to do this and that aspect works fine (thanks to help from droidzone).
However, as its sharing the ext partition with DT, when I mount cache there, the apps don't work. Added to which if a market app is downloaded, it downloads the apk to the cache folder I created on ext fine. When it attempts to intall, it fails.
I assume (with my limited knowledge) that there is a conflict here due to multiple mounts on the same partition. I initially thought my mount cache command needed to with the same options that DT mounts, but cant find that reference in his script or the files it calls.
So I have created a 2nd ext partition, but I dont know how to use it. I thought it would automatically be mmcblk0p3, but I cant find it that way using adb.
I know data2ext uses multiple partitions for sqlite etc, but cant for the life of me work this out.
Can anyone point me in the right direction please?
The aim of this is to develop myself a cache2sd solution. I have searched around a lot but can't find one. I thought CM had one but cannot find that either.
Further to this, ls /dev/block lists mmcblk0p3
However,
Code:
busybox mount -o noatime,nodiratime -t auto /dev/block/mmcblk0p3 /system/sd
Returns
Code:
failed: Invalid Argument
but
Code:
busybox mount -o noatime,nodiratime -t auto /dev/block/mmcblk0p2 /system/sd
Works fine.
Does anyone have any idea how I can use the second EXT partition at all or any tips or info please?
format
rootSU said:
Does anyone have any idea how I can use the second EXT partition at all or any tips or info please?
Click to expand...
Click to collapse
format mmcblk0p3 in ext4 format and mount it
susmaz said:
format mmcblk0p3 in ext4 format and mount it
Click to expand...
Click to collapse
Better 2.5 years late than never
Although that would not have been the answer.
Why do you need this 2nd partition??
If i understnad correctly you want the cache on a ext partition, so the play store can download to this partition and than install the apk to intern bzw. The prim ext??

[Q] Internal Storage Unavailable

I am having problems with clockwork recovery.
When I open I get:
E:Can't mount /dev/block/mmcb1k0p2
(File exists)
E:Can't mount CACHE:recovery/command
E:Can't mount /dev/block/mmcb1k0p2
(File exists)
E:Can't mount CACHE:recovery/log
E:Can't mount /dev/block/mmcb1k0p2
(File exists)
I am running stock un-rooted, s-off. I ran OTA.
I know exactly what the problem is. My internal storage of my phone wont mount.
I have read a lot of things on how to mount your internal storage. A lot of people say you just have to reboot your phone.
That didn't work.
I know the problem is defiantly not the SD card. I tried 5 different ones.
I read somewhere to remount internal storage you have to take phone apart and put internal storage chip back in.
I can't format internal storage, because it is grayed out in the option under SD card setting.
What can I do. I think I have tried everything?
Please help.
cubusmybro said:
I am having problems with clockwork recovery.
When I open I get:
E:Can't mount /dev/block/mmcb1k0p2
(File exists)
E:Can't mount CACHE:recovery/command
E:Can't mount /dev/block/mmcb1k0p2
(File exists)
E:Can't mount CACHE:recovery/log/block/mmcb1k0p2
E:Can't mount /dev/block/mmcb1k0p2
(File exists)
I am running stock un-rooted, s-off. I ran OTA.
I know exactly what the problem is. My internal storage of my phone wont mount.
I have read a lot of things on how to mount your internal storage. A lot of people say you just have to reboot your phone.
That didn't work.
I know the problem is defiantly not the SD card. I tried 5 different ones.
I read somewhere to remount internal storage you have to take phone apart and put internal storage chip back in.
I can't format internal storage, because it is grayed out in the option under SD card setting.
What can I do. I think I have tried everything?
Please help.
Click to expand...
Click to collapse
Hi,
I don't understand how you can be running unrooted but using cwm?
But I'll guess you are rooted and having problems mounting /cache (dev: /dev/block/mmcb1k0p2) which is an ext3 fs.
I had same messages for the /emmc fs, but that is msdos/fat32, so a slightly different 'cure'.
I used adb shell (or you could use term emulator) to do something like this:
su ; fsck /dev/block/mmcb1k0p2 // look up the correct qualifiers, but I think it'll default to something acceptable. Tell it to repair as needed. Reboot.
For my case I used "fsck_msdos /dev/{whateverThePathWas} and it repaired it and it mounted.
Note: Replacing , replugging the internal storage sounds iffy because all of it is on a single chip which is soldered onto the board. /dev/block/mtd* are only offsets into flash, not anything separate. It seems like more of a format issue or bad blocks.
Good luck
Hashi
PS: Depending on ROMs (I baked my own) , you might not have fsck* but I think you will. Also, some ROMs may use init.d to force an fsck already and this won't work if it did that. Worth a shot.
hachamacha said:
Hi,
I don't understand how you can be running unrooted but using cwm?
But I'll guess you are rooted and having problems mounting /cache (dev: /dev/block/mmcb1k0p2) which is an ext3 fs.
I had same messages for the /emmc fs, but that is msdos/fat32, so a slightly different 'cure'.
I used adb shell (or you could use term emulator) to do something like this:
su ; fsck /dev/block/mmcb1k0p2 // look up the correct qualifiers, but I think it'll default to something acceptable. Tell it to repair as needed. Reboot.
For my case I used "fsck_msdos /dev/{whateverThePathWas} and it repaired it and it mounted.
Note: Replacing , replugging the internal storage sounds iffy because all of it is on a single chip which is soldered onto the board. /dev/block/mtd* are only offsets into flash, not anything separate. It seems like more of a format issue or bad blocks.
Good luck
Hashi
PS: Depending on ROMs (I baked my own) , you might not have fsck* but I think you will. Also, some ROMs may use init.d to force an fsck already and this won't work if it did that. Worth a shot.
Click to expand...
Click to collapse
I kind of have an idea what you mean, but I am just rooted on stock ROM, and I don't think that has fsck, but I don't even know what that is.
I punched in that command into terminal emulator as follows:
#su ; fsck /dev/block/mmcb1k0p2 //
#
All I got in return was a hash, I rebooted, and problem wasn't fixed yet.
I am also not sure what you mean by, "look up the correct qualifiers."
fsck: permission denied is what I get when I just type that in.
Thank you. I think that I am on the right track.

[Q] Flash rom with adb (no sdcard)

I googled the question quite extensively but have found no conclusive answers
Is there a way to flash a rom without first transferring it to the SD card (specifically for DHD)? There seems to be something wrong with my SD bay as my phone cannot mount the SD card successfully (it works fine on my computer), so I'm looking for a way to flash a new rom on the phone to rule out the possibility that the ROM is what's causing the SD card failures.
Google turned up a couple of results that seemed promising, but they all say you have to use Amon_RA recovery, which (to my knowledge) does not exist for DHD, and following the same steps while using CWM recovery leads to an error.
Unfortunately, as a new user I can't post the link to the method. It basically involves pushing the rom to /data/ on the phone then executing the command
recovery --update_package=DATA:ROM.zip
this should flash the rom. But because I'm using CWM there is an error, because CWM doesn't allow you to flash that way (or something to that effect)
Currently running IceColdSandwich 3.0.test4
Is there any way I can flash a rom without needing the SD card?? I don't wanna have to buy a new SD bay :/
Maybe this helped .. googled some more
http://forum.xda-developers.com/showthread.php?t=625950
Mount /sdcard
Just like you mounted /data try to mount sdcard using this adb comments,
./adb shell
su
# mount -o rw,remount rootfs /
# chmod 777 /mnt/sdcard
and push your ROM form computer, i.e ("adb push d:\adb directory\Your ROM /sdcard")
and try to mount sdcard in CWM....
I hope this would work for you,
NOT TESTED BY ME !! Pl replay

[Q] USB Brick And No Rom Access

Hey Guys,
I've inherited a G2 from a good friend of mine, but it seems that USB access is bricked on the device. I'm unable to mount the SDCard through CWM which makes it unable to flash any rom.
Also, looks like he formatted the OS as I'm unable to boot up CM7 on the phone as it just sits at the HTC screen forever. I can access the device in Fastboot and ADB just fine however.
When I ran the 2 commands:
fastboot oem enableqxdm 0 (unblock your sd-card)
fastboot oem eraseconfig (fix misc partition)
I'm able to read and write files to the SDCard in ADB, but CWM is still unable to mount the SDCard. Anyone have any ideas on how to get the SDCard to read on this guy? It's currently S-OFF on HBOOT 0.84.2000.
Thanks!
Try pushing a zip file with adb push?
Can you see the external storage in your PC (even if it's not accessable) ?
Any kind of error messages while you trying to mount it?
Check the device tab in your PC, if the system have proper drivers for the device.
I guess you know following, but for the record:
If ADB works, use this:
adb push filename.zip /sdcard/filename.zip ......... (rename "filename.zip" twice to the proper name of your zip file)
If not, try to reflash the recorvery via:
fastboot flash recovery recovery.img ........... (unrar the archive first to get IMG file)
Turn device off, remove battery, put battery back, hold trackpad, push power btn. Choose recorvery -> u're back in CWM.
Or maybe ony the SD card have corrupted FAT table / unknown format for OS.
Try to remove the card from phone and connect it to PC via some kind of card reader, or another phone which can connect card as mass storage. Reformat the card to FAT32 (sometimes erase only does not help, so untick quick format and do it again).
Easy way to mount SD card in custom Recovery
ChristmasGT said:
Hey Guys,
... a G2 ... , ... USB access is bricked ...
... can access the device in Fastboot and ADB ...
When I ran the 2 commands:
... but CWM is still unable to mount the SDCard. Anyone have any ideas on how to get the SDCard to read on this guy? It's currently S-OFF on HBOOT 0.84.2000.
Thanks!
Click to expand...
Click to collapse
Mounting SD card in Recovery? Telling recovery to use internal fstab containing sdcard entry should work:
Code:
adb shell mount /sdcard
See what partitions are mounted now:
Code:
adb shell mount
See if the sdcard has some content that can be read from Recovery:
Code:
adb shell ls /sdcard/*
Best regards,
Catherall
Hey Guys thanks for the suggestions. I'm able to push ROMs to the SDCard, but it seems like they vanish after the phone's rebooted.
when pushing I use the following command:
adb push C:\<rom name> /sdcard/
after the upload is complete, I can do "ls /sdcard/" and see the rom inside. But I'm still not able to mount or see it inside of CWM.
Cahterall thanks for the suggestions on the commands, I've tried running them but everything seems to be not found when it comes to the SDCard, which makes it confusing as to how the ROM is even being pushed there. Below's the output of the commands you suggested, I'm also researching like mad to see If I can find any solution.
~EDIT
I think the underlying cause is that I'm getting the following error:
/dev/block/mmcblk1p1 no such file or directory
since /dev/block/mmcblk1p1 is missing it can't mount. Any suggestions?
"Mount and storage" menu in Recovery
ChristmasGT said:
Hey Guys thanks for the suggestions. I'm able to push ROMs to the SDCard, but it seems like they vanish after the phone's rebooted.
when pushing I use the following command:
adb push C:\<rom name> /sdcard/
after the upload is complete, I can do "ls /sdcard/" and see the rom inside. But I'm still not able to mount or see it inside of CWM.
Click to expand...
Click to collapse
Hello,
the output of mount shows that your sd card is NOT mounted at all.
However, Recovery has a directory called /sdcard on the ramdisk where the system is started.
This directory is used to mount the content of the sd card.
When the sd card is not mounted you still can write files into the directory /sdcard on the ramdisk, but they will be gone when you reboot the phone.
Usually in a custom ROM you can use the menu item "Mounts and storage" (engage with trackpad) and choose either to "mount /sdcard" or to "mount sd card to USB".
Mounting sd card to USB should connect the sd card as usb harddisk to your computer.
And mounting /sdcard (the partition) allows to push files on sd card using "adb push".
ChristmasGT said:
~EDIT
I think the underlying cause is that I'm getting the following error:
/dev/block/mmcblk1p1 no such file or directory
since /dev/block/mmcblk1p1 is missing it can't mount. Any suggestions?
Click to expand...
Click to collapse
When I remember correctly then the Desire Z uses "/dev/block/vold/179:33" to mount the sd card with type vfat.
Are you sure that your sd card is formatted using FAT?
Best regards,
Catherall
Hey Catherall, thanks for all the help man!
Unfortunately, trying to mount the /sdcard or mount USB storage gives me the following error:
"E:Unable to write to ums lunfile (No such file or directory)"
I've tried multiple SD Cards and long formatted all of them to FAT with the same results. Can't seem to find any resolution to this at all which is unfortunate.
Just wanted to update this:
I've gone ahead and updated the System / Data / Boot / Cache via fastboot (I'm S-Off) from the following thread:
http://forum.xda-developers.com/showthread.php?t=1572924
Also, it does NOT appear that my EMMC is corrupt and has 2.09GB free. Any ideas by chance?
Still looks like I'm unable to get past the White HTC Logo and still don't have any type of SDCard Access.

Categories

Resources