/mnt/sdcard AND sdcard problem--> Need Help - Nexus One Q&A, Help & Troubleshooting

Sorry if this is in the wrong thread-mod can move.
Yesterday I was trying to install Mobile Defense as a system app as reccommended by MD website and instructions using adb push. Somehow it didn't work real well and I ended up with TWO sdcard directories.
In Root Explorer, one is /mnt and one is /sdcard (like always). The/mnt also has /mnt/sdcard, /mnt/asec and /mnt/secure. The /mnt/sdcard has duplicate entries of /sdcard and is screwing up loading/flashing kernels, etc. I have tried to delete this /mnt directory after Mount R/W in Root Explorer, but it keeps coming back!
I'm not very good at the whole coding/language thing and could use some instructions (4 noobies) as to how to get rid of this file without a total wipe. THANKS in advance

Wrong section.

I believe /sdcard is a link (shortcut) to /mnt/sdcard.
So, depending on your ADB commands, anything that says /sdcard, try changing that to /mnt/sdcard and see if that works better.

mindfrost82 said:
I believe /sdcard is a link (shortcut) to /mnt/sdcard.
So, depending on your ADB commands, anything that says /sdcard, try changing that to /mnt/sdcard and see if that works better.
Click to expand...
Click to collapse
Ok, thanks. The problem is that I downloaded IR's lastes 0524 925 BFS kernel and it shows in recovery as on the sdcard, but when I tried to flash it, the flash failed and said it couldn't find the file on the sdcard. I assumed it was looking in two places at once and got confused/conflicted, therefore it quit?

Related

Switching SD Cards

I just received my new class 6 SD card in the mail today, and I was wondering how I can transfer all my files over to it. I don't mean like music and stuff like that, but like my Apps2SD. I don't exactly know what all I have to transfer over, but if someone can give me the adb commands and what I'm trying to transfer, that would be great.
Go to the recovery console
mount /sdcard
mkdir /sdcard/ext
cp /system/sd/* /sdcard/ext/
the copy the ext folder to your new card, put it in your phone and go back to recovery
mount -o rw /dev/block/mmcblk0p2 /system/sd
cp /sdcard/ext/* /system/sd/
I've probably made a couple of mistakes with mounting the partitions correctly, so you may have to mount /sdcard on the second batch of commands.
Anartic said:
I just received my new class 6 SD card in the mail today, and I was wondering how I can transfer all my files over to it. I don't mean like music and stuff like that, but like my Apps2SD. I don't exactly know what all I have to transfer over, but if someone can give me the adb commands and what I'm trying to transfer, that would be great.
Click to expand...
Click to collapse
Use Adrian's method
awesome, i've been wanting to know how to do this myself so this will definitely come in useful.
B-man007 said:
pretty sure the adb command is
adb pull /system/sd/*
then use adb push to get it back on the new one.
that should get everything on your ext partition. (note: do this while phone is booted into the rom. else you will need to mount the ext partition)
(if you need clarification, dont mind asking)
Click to expand...
Click to collapse
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
AdrianK said:
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
Click to expand...
Click to collapse
i don't push i use adb install that way all of them get installed and i don't have the problem with certain apps not showing up right.
you say that like i want to type a really long command, i just use adb remount, or if i am forced to use my phones keyboard for command i just go to the recovery console and use mount system or mount system/sd depending on how specific i feel . (i hate typing commands on the g1s keyboard, and its and epic fail if you mess a long one up.)
david1171 said:
i don't push i use adb install that way all of them get installed and i don't have the problem with certain apps not showing up right.
you say that like i want to type a really long command, i just use adb remount, or if i am forced to use my phones keyboard for command i just go to the recovery console and use mount system or mount system/sd depending on how specific i feel . (i hate typing commands on the g1s keyboard, and its and epic fail if you mess a long one up.)
Click to expand...
Click to collapse
easiest way i have done this is do a switchrom backup, make sure its saved to your old sd, get your new sd partitioned correctly, and copy the switchrom folder from your old sd to your new one, then do the normal steps to restore a switchrom backup... this will restore your rom to the exact moment it was when you saved it. had me back up and running in 10 minutes after a new sd was here.
Thanks so much for the help guys, I just noticed that I left my USB cord at work :/, so tomorrow I'll get back to you guys about this.
AdrianK said:
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
Click to expand...
Click to collapse
ya i started my response and saw you already answered so i was like mehhhh
i wrote my own script to do all this stuff below for me, and its done through the recovery.
Back up apps
Remove app_s folder
Reformat ext3 partition
Restore apps
Enter Recovery
SwitchRom Backup/Restore
Clear Dalvik-Cache
adb push while booted works fine for me, it just slows the crap outta the phone for a good 2-3 minutes, but it works fine. i use push because adb install hasnt always worked 100% for me (i have ~130 apps, and some of them don't install.)
anyways ill edit out my post to stop confusion
i have no more then 40 apps so adb install doesn't really flunk out on me
the only thing i don't like is the protected apps that show up in the fugly system default app icon and the long name.

[Q]It shows there is no free space in system/lib in JP6!

Hi!
I flashed JP6 yesterday, and I want to do internet browser fix and One Click Lag Fix.
But when I copied libwebcore.so to /system/lib or Install EXT2 Tools, It always no free space /system/lib
Now I can only use update.zip to put the files into /system/lib, but OCLF still can not work.
Any help?
thanks!!
+1
Sent from my GT-I9000 using Tapatalk
I notice 2 things with JP6 (installed from Kies via registry mod). Not sure if everyone else is the same.
1. cp command is missing, but mv & rm are present
2. /system is mounted read only
So to make sure the internet browser fix works fine, you'll need to make sure your a.) phone is rooted, b) remount the /system as read write, c.) and then install busybox to use the cp command (if you're installing libwebcore.so by command line, otherwise you can use the file manager to copy files).
There is only about 10MB free space on /system with JP6 (with 803 pit, I believe).
Check this with:
df -h
Also, /system is mounted read-only so you have to remount it as rw before making any changes.
mount -o remount,rw /system
+1 and whenever I try to move an app to sd from the menu in settings>applications>manage applications>app name>Move to SD
It throws an error "Failed to move application. Not enough memory."
I wiped my entire phone clean and still it throws the same error. My internal memory (16 gb) has 10 gb free. The app that I'm trying with is Instant Buttons.
The dev has included move to sd option. Yet it does not work.
ive only got 300kb free in my /system partition on JP6. considering moving modules off to /data and adding it to the path to free up some space. its unworkable like this.

[Q] Honeycomb wont mount sdcard

I installed honeycomb v3 to emmc and it will detect the sd card but it wont mount it or allow me access to it on the nook color. Any suggestions?
bcorra19 said:
I installed honeycomb v3 to emmc and it will detect the sd card but it wont mount it or allow me access to it on the nook color. Any suggestions?
Click to expand...
Click to collapse
I had this problem before. I never got the chance to test it, but my thought was that it was trying to auto-mount /dev/block/mmcblk1p4 as /sdcard. Try running
mount -t vfat /dev/block/mmcblk0p1 /sdcard
and see if that works.
Also, how did you get v3 on emmc? I'm struggling hardcore with that
You need to update the vold files.
I reinstalled honeycomb and now it works fine. I used the tutorials provided under android development. And *do not* replace the vold files. It made the problem worse when I tried it and wouldn't even recognize the card after that
Ooglez said:
I had this problem before. I never got the chance to test it, but my thought was that it was trying to auto-mount /dev/block/mmcblk1p4 as /sdcard. Try running
mount -t vfat /dev/block/mmcblk0p1 /sdcard
and see if that works.
Click to expand...
Click to collapse
I tried this and it mounts the SD card but only shows 70MB of space
edit:
and it looks like you can't really do much with it. Going to the /sdcard space in astro gets me somewhere that's not my SDcard. I'll just reinstall honeycomb and try again
edit2: sorry I'll try what MattJ posted. I edited before i realized he made a post
blackderbyhat said:
I tried this and it mounts the SD card but only shows 70MB of space
Click to expand...
Click to collapse
Download these volds
http://forum.xda-developers.com/showthread.php?t=922024
then mount system as r/w
then type
adb push "Path to volds" /system/etc
then reboot

100% used space on /system and cannot mount as r/w, why?

Hi Guys,,
I have installed CF3D on my GNote but when I was about to install CF Drivers it says that my /system is insufficient, so I check it right away by using df -k on a terminal emulator and found out that 100% space used on /dev/block/mmcblk0p9. My solution to this is to remove some system app, I have tried Titanium backup but no good,so i decided to use root explorer and delete some app is system/app, the weird thing is that i could not mount the /system as r/w, so i decided to remount /system as rw using a terminal emulator, i used this command
mount -o rw,remount /dev/block/mmcblk0p9 /system
but still i could not delete data on /system/app... another weird thing is that I could not list the directories or files in the /system using "ls" command in terminal emulator, the error says, "value too large for defined data type".
My questions
1. is this part of the mmc_cap_erase bug, because if i remember very well, i have flashed something on cwm which causes FC's on my device right after that, my internal sd card and external sd card is unreadable , and then when it ask to reformat it and i click yes, then everything is ok, after that i changed ROM (from criskelo v8 to kingdroid v3) and i never encountered that bug again.
2. is there any way to mount /system as r/w? or is there any other way to uninstall system app. Ive tried every "free apps" on the market to uninstall system app but i could not find a successful one.
3. if this is part of the mmc_cap_erase bug, can i used the fix in this thread http://forum.xda-developers.com/showthread.php?t=1667886 to solve my problem??
Thanks to those who are willing to give me some advice.

[Q] /storage/emulated/0 missing

After upgrading to trickdroids 4.2.2. based release I have some problems. Only with Grooveshark so far. It crashes every time I run it.
Here is a pastbin for it.
http://pastebin.com/VEHkWvZQ
I understand that
/storage/emulated/0/: to my knowledge, this refers to the "emulated MMC" ("owner part"). Usually this is the internal one. The "0" stands for the user here, "0" is the first user aka device-owner. If you create additional users, this number will increment for each.
/storage/emulated/legacy/ as before, but pointing to the part of the currently working user (for the owner, this would be a symlink to /storage/emulated/0/). So this path should bring every user to his "part".
My app that is crashing since upgrading to 7.? is Grooveshark it requires storage in
/storage/emulated/0/Android/data/com.grooveshark.android.v1/files/cache/player
I have no
/storage/emulated/0
I do have
/storage/emulated/legacy/
How would I make the link to this.
I have tried this but it fails
ln -s /storage/emulated/legacy /storage/emulated/0
link failed Read-only file system
Can somebody help with the commands needed to make this link that is required.
I've got the same problem. Have u solved it? if yes, how?
I've struck similar problem after accidentally deleting internal storage. I had no /sdcard in storage.
Apparently you need to run ;
mount -w -o remount rootfs /
Then ;
ln -s /data/media/0 /sdcard
You can check with ;
ls -l -a /sdcard
I have /sdcard0 now in /storage which appears to be the correct description. I use X-plore file manager and it can now see the internal storage correctly.
However CM File Manager (CM11) indicates internal storage should be at /storage/emulated/0 where as mine is /storage/emulated/legacy. Of course I can create a bookmark in CM File Manager to the folder and can see the storage.
All my apps and phone appear to function normally but i can't help wondering if the structure I have in /root for my internal storage is not quite correct. If anyone can tell me the folder and symlinks I should have it would be of great use.
I've tried recreating symlinks with succes so that CM File Manager can see the internal storage at /storage/emulated/0 but the moment I reboot the phone it's back the to the way it was. Have yet to find a simple explanation for what controls the folder structure in /root and why I can't get the symlinks I create to stick.
Update 5Feb - Did another factory reset and flashed CM11 M2. Everything OK now. Maybe needed a couple of resets to sort the ghosts in the machine.

Categories

Resources