[Q] Multiple /sdcard directories on ARHD 12.1 - One (M7) Q&A, Help & Troubleshooting

Hi Everyone,
I recently did a clean install of ARHD 12.1 on my rooted HTC One UL then did a couple of dirty reinstall (2~3) to change the software pack.
However, I realised there are 3 different /sdcard directories in the system.
First one is /sdcard. Second is /sdcard/legacy. Third and current is /sdcard/0.
Can anyone tell me why did was the /sdcard duplicated?
Is it because of the dirty install?

is all of your previous data in /sdcard/0?
It's because of android 4.2.2 you should when switching 4.1.2 to 4.2.2 backup sd -> install rom -> wipe sd before boot -> boot -> put files back

thom109 said:
is all of your previous data in /sdcard/0?
It's because of android 4.2.2 you should when switching 4.1.2 to 4.2.2 backup sd -> install rom -> wipe sd before boot -> boot -> put files back
Click to expand...
Click to collapse
Right! That makes sense! My old data is in /sdcard while the new ROM uses /sdcard/0.
Would I be able to merge them if I wipe /data, /sdcard and do a clean install of ARHD 12.2?

musezer said:
Right! That makes sense! My old data is in /sdcard while the new ROM uses /sdcard/0.
Would I be able to merge them if I wipe /data, /sdcard and do a clean install of ARHD 12.2?
Click to expand...
Click to collapse
I did the same thing as you unfortunately. It was hell to undo it.
What I did was put all the stuff in /sdcard, and then manually delete /sdcard/0 using adb. I can't remember the exact commands anymore, I googled ages for them.
I think easiest (but requires patience) option would be to move all the important data to your computer, then clean installl ARHD, and then wiping everything from sd using CWM or TWRP.
Or you could do it like me, google it for hell a long time

Related

[GUIDE] Android deep clean-up / wipe

Now with the release of many JB leaks for our Galaxy Note, more and more people are starting to flash custom ROMs into their devices. However, many don't do a proper clean-up / wipe of their devices before doing so, complaining about supposed "bugs" that in fact are not real bugs, but just incompatibilities with previous app data and config left from the previous ROM or improperly restored from backups (TB etc.).
So, after facing that myself with the first ROMs I flashed, reading a lot of tips from the senior members, and experimenting different approaches, I came up with a method that I always follow before flashing a new ROM, which gives me less or no issues at all.
Pros: you minimize the chance of having issues when flashing a new ROM.
Cons: you have to manually reinstall your apps (can be somewhat automated from Google Play) and reconfigure everything.
Pre-reqs: I'm assuming you have CWM installed and know how to use it, and are not a complete noob. If you don't, search the forums and read the guides. Read this guide fully and make sure you understand everything before proceeding.
IMPORTANT: ONLY wipe your device if you have a SAFE (BRICK-FREE) KERNEL. Check your kernel and search the forums. Don't proceed if you are not sure! I'm not responsible for any bricks, unexpected issues that can happen to you or personal data loss because you forgot to backup that! If you want to stay safe, don't want to experiment with your cell phone, it's critical you have it working everytime, stay with the official Samsung ROMs updates you get OTA and don't proceed with this how-to.
How-to:
1) Boot into recovery and perform a full backup (a.k.a. nandroid) to your internal or external SD card.
2) Reboot, and create backups of personal data needed from your apps in your internal or external SD card. For instance, I backup data from apps which are not cloud-based; they usually have a "backup" menu for that.
3) Plug your device into your computer, and copy everything you need from your internal and external SD cards (including the backups done in 1) and 2)). Don't forget your pictures and MP3 files.
4) Delete any apps and data from your external SD card. Leave it as clean as possible (it's OK to leave personal data such as MP3s, pictures etc.).
5) Copy the ROM you are about to flash to your EXTERNAL SD Card (don't copy to internal, because we are going to wipe it).
6) Boot into CWM Recovery and do the following wipes:
6.1) Wipe data / factory reset
6.2) Wipe cache partition
6.3) Advanced -> Wipe dalvik cache
6.4) Mounts and Storage -> Format /system
6.5) Mounts and Storage -> Format /preload
6.6) Mounts and Storage -> Format internal SD card (make sure you know if your internal SD card if /emmc or /sdcard; see below!)
7) Install Zip -> Flash ROM from your external SD card.
8) Wipe cache partition again.
9) Advanced -> Wipe dalvik cache again.
10) Reboot
11) Don't restore anything from Titanium Backup. Reinstall and reconfigure everything from Google Play. I never tried but I think that if you just restore user apps, it should work. Just never restore system apps and data. The backups you created in step 2) and copied to your computer in step 3) can be safely restored from within the apps themselves.
Now you may ask why we format the internal SD card. Many apps store their configuration and app data there, so this way we ensure no old data and config are there which may be incompatible with the new ROM. In fact it might not be that important, since it's only related to user apps, but I prefer to clean everything before flashing a new ROM.
How to find if your internal SD card is mounted on /emmc or /sdcard in CWM Recovery:
1) Boot into CWM Recovery.
2) Install Zip -> Choose zip from internal sdcard. In the top you can see where yours is mounted (/emmc or /sdcard).
3) This is the partition you should format in step 6.6. Pay attention to not format the external SD card, because the ROM zip file is there!
If you still have issues after flashing a new ROM, try to reflash it without any wipes (i.e. just do step 7 again).
Hope it can help people with their flashing!
Good job
Is it any better to just install user apps from google play and then restore just the data from TB?
Sent from my GT-N7000 using xda app-developers app
allansy said:
Is it any better to just install user apps from google play and then restore just the data from TB?
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
No..the main purpose of the thread is to remove the incompatible app data and system data
Useful.
Sent from my GT-N7000 using xda premium
dbolivar said:
How-to:
6.1) Wipe data / factory reset
6.2) Wipe cache partition
6.3) Advanced -> Wipe dalvik cache
6.4) Mounts and Storage -> Format /system
6.5) Mounts and Storage -> Format /preload
6.6) Mounts and Storage -> Format internal SD card (make sure you know if your internal SD card if /emmc or /sdcard; see below!)
7) Install Zip -> Flash ROM from your external SD card.
8) Wipe cache partition again.
9) Advanced -> Wipe dalvik cache again.
10) Reboot
Click to expand...
Click to collapse
6.2 ---> unnecessary, because factory reset wipes user data and cache
6.6 ---> how on earth does formatting internal SD card help flashing any Rom?
8) ---> unnecessary, because your cache is already wiped
9) ---> see above
6.2) True, thanks for pointing out.
6.6) Some apps, including ones that usually give strange issues between ROM flashes like SNote, leave data there which may cause incompatibilities with a different version. This incompatibility is just a guess; as I said in the original post, it may not be that necessary to format the internal SD card, but I prefer to make sure there is no old data at all floating around, and this recommendation can also be useful when people are going to sell their devices (many think that just a factory reset is enough).
8) and 9) Is it possible that a new ROM can come with stuff in cache and dalvik cache, say, from the developer testing/cooking environment? If it is, can be useful to clean it again after flashing. Otherwise, I agree, it can be skipped.
Yeah total clean scenario is best. In my opinion. So also SD, but never efs
Sent from my GT-N7000 using Tapatalk 2
I too do things that are not necessary, I have a ritual when doing a deep clean lol
It involves things like the above method, but i do it twice.. No harm in that is there !
azzledazzle said:
I too do things that are not necessary, I have a ritual when doing a deep clean lol
It involves things like the above method, but i do it twice.. No harm in that is there !
Click to expand...
Click to collapse
Wel, better safe then sorry. Totally clean just feels right
Sent from my GT-N7000 using Tapatalk 2
Thank you very much. I will do this like you say.
I have CWM v6.0.1.2 and I don't have format/ preload. What can I do?
You can try to proceed without formatting it, or you can first flash a kernel with a more recent CWM. Always a safe kernel, of course. After flashing it, you can just select "reboot recovery" from your current CWM to boot into the new CWM. I'm not sure if the absence of /preload is due to an old CWM, or it's because you don't have a /preload partition. Anyway, trying a newer CWM won't harm.
i follow this guide , considering that i'm a noob it mean that is written really really clear. Thanks for all your job . i have a clean cooked rooted cell now.
error preload
Hello, I got error when formatting preload
it is said "make_extf4fs failed on/dev/block/mmcblk0p9
and when i'm trying to format/scard it pop up some type format
"deafult
"exfat
"fat
bla bla bla
so i choose default, am i right to choose it?
what should i do?
What device, what recovery, what rom?
dbolivar said:
flashing!
Click to expand...
Click to collapse
Hey bro,
i forgot to do step 9
9) Advanced -> Wipe dalvik cache again.
Phone is working fine, but just curious. will it have any effect ? or will it cause any problem later ?

[Q]proper way to flash new base

Hi everyone. This is my first HTC so I don't know much about how to flash roms. There is no external sd like my s4...My question is.... I flashed ARHD 4.1.2 with no issues since the bases are the same. But what are the proper steps needed to flash a new base? I would love to flash ARHD 10 but don't want to turn this awesome phone to a paper weight....
ViciousLSD said:
Hi everyone. This is my first HTC so I don't know much about how to flash roms. There is no external sd like my s4...My question is.... I flashed ARHD 4.1.2 with no issues since the bases are the same. But what are the proper steps needed to flash a new base? I would love to flash ARHD 10 but don't want to turn this awesome phone to a paper weight....
Click to expand...
Click to collapse
Backup as much stuff as you can. ARHD and TrickDroid both include an option to either Dirty Flash or Wipe the phone prior to installing the new base. I highly suggest wiping the phone through TWRP/CWM prior to installing the new ROMs, then choosing the option within Aroma to wipe the device and install. It's best to nuke the phone from orbit--it's the only way to be sure.
Please note that Aroma SUCKS and it make take several attempts before the ROM installs and it can take up to 5-10mins afterwards for the device to boot with the new ROM/base. If Aroma fails or freezes a couple times, or gets stuck--don't panic. Hold the PWR + VOL Down button in a brightly lit room for about 10-15seconds. The capacities buttons will flash for at least half of the 10-15seconds to acknowledge the command. Once the screen goes dark, release, then IMMEDIATELY HOLD the PWR + VOL DOWN button again to boot into the bootloader and then choose to go back into recovery.
with the new ARHD 10.0 it seems that file folder construction has been modified so its been recommended that you wipe your SD card and then install. so the process in short should be
back up your sdcard stuff you want to keep > reboot into recovery > wipe the phone > wipe SD card (all data) > either push ARHD 10 to the phone or you can ADB sideload the zip over >
install ARHD 10.0 > boot up > put everything you want on your SD card back.
someone chime in and correct me if i'm wrong. though that seemed like the jist of the what mike was getting at i think...
syaoran68 said:
with the new ARHD 10.0 it seems that file folder construction has been modified so its been recommended that you wipe your SD card and then install. so the process in short should be
back up your sdcard stuff you want to keep > reboot into recovery > wipe the phone > wipe SD card (all data) > either push ARHD 10 to the phone or you can ADB sideload the zip over >
install ARHD 10.0 > boot up > put everything you want on your SD card back.
someone chime in and correct me if i'm wrong. though that seemed like the jist of the what mike was getting at i think...
Click to expand...
Click to collapse
Back up the info to the OP's computer, flash ARHD10.0, then wipe SD card, imo.
It'll make the OP's life easier. But all the information in the above post is correct. Welcome to Android 4.2.2--with it's support for multiuser, your information will start getting stored under /data/media/0 as opposed to /sdcard/ which can get confusing for the end user who isn't expecting it.
Thank you so much guys for the help. One more question though. Do I make a titanium back up and store that to pc to recover my apps? If not how do I actually backup using my pc? Sorry for the noobish questions...
ViciousLSD said:
Thank you so much guys for the help. One more question though. Do I make a titanium back up and store that to pc to recover my apps? If not how do I actually backup using my pc? Sorry for the noobish questions...
Click to expand...
Click to collapse
Titanium backup will backup your apps, you don't need to transfer this back to your PC svae son your internal sdcard
But with the steps taken above if you wipe sd doesn't that erase everything including backups?
Here's what I did:
Backup apps using Titanium > Move stuff in sdcard to pc > Wipe/factory reset phone > Install ARHD 10.0 > Format sdcard using CWM recovery > boot > move everything back to sdcard from the pc > download Titanium from play store > restore user apps > go through settings and set each stuff manually > Enjoy
Thanks I will give this a try!!
dakaringer said:
Here's what I did:
Backup apps using Titanium > Move stuff in sdcard to pc > Wipe/factory reset phone > Install ARHD 10.0 > Format sdcard using CWM recovery > boot > move everything back to sdcard from the pc > download Titanium from play store > restore user apps > go through settings and set each stuff manually > Enjoy
Click to expand...
Click to collapse
A question before I try this, I thought that if you format the sd card after installing ARHD 10.0 you would then have no operating system on your phone?
You'd lose the OS if you wipe /data/ or /system/. As long as you choose the option to wipe /sdcard/, your OS will remain.
Sent from my Galaxy Note 8
unremarked said:
You'd lose the OS if you wipe /data/ or /system/. As long as you choose the option to wipe /sdcard/, your OS will remain.
Sent from my Galaxy Note 8
Click to expand...
Click to collapse
Thanks very much I will format my sd card now:good:
Are you guys using twrp or cwm?
ViciousLSD said:
Are you guys using twrp or cwm?
Click to expand...
Click to collapse
I have twrp but I havnt done it yet.
Just installed!! All is working well! Thanks everyone for your suggestions!!!
maxal said:
A question before I try this, I thought that if you format the sd card after installing ARHD 10.0 you would then have no operating system on your phone?
Click to expand...
Click to collapse
No it would format the non root / user accessible part only (/sdcard/)
Sent from my HTC One using xda premium

SD card and Permissions Error

Morning,
First of all:
s-off and bootloader unlocked
CWM touch 6.0.3.2 (latest)
InsertCoin 2.0.5 - first time installing custom ROM.
I have installed InsertCoin however whenever i click on the stock camera (or any camera downloaded) i get the following message: Unable to save to SD card due to insufficient file permissions. I have even tried to format and re-install the ROM however I still get the same issue. I have no idea how to fix it. If i download an image from google this works correctly and gets place in the download folder. I have tried clearing the data of the camera but this also did not work.
I moved all of my data from /data/media to the folder /data/media/0 as this is what a tutorial said regarding file paths if you move to the new 4.2.2. However for some reason now when i go into /data the folder is empty. All of my data is in the folder storage/emuated/0 (or /sdcard) I have taken 2 backups using CWM yet I have no idea where these are.
Also, when i was initially the recovery, when i first installed the recovery and entered it my computer stated 'usb device not recognised' and no adb commands would work, but as soon as i reboot manually to bootloader it was recognized. Is this normal?
Using the app 'disk usage' it states my storage card has a total size of 26206 MiB.
Clearly I have borked something up along the way.
If somebody could help that would be great, and this is rather annoying and starting to wreck my head haha.
Thanks,
Vizzy
Have you tried fix permissions in the advanced menu in CWM? Give that a go, if it doesn't work back everything up, wipe cache and SD card in CWM and re-install the rom via push or using a OTG
Okay I'll give it a go, when I'm hone tonight . Do I have to format the card into a specific format or is it just literally 'wipe SD card' like it is for cache etc.
Is the USB not recognised issue normal ? I don't fancy wiping everything then finding out I can't adb push.
Adb method: adb push ROM.zip /sdcard/ROM.zip
OTG doesn't work in the latest CWM, correct?
Sent from my HTC One using Tapatalk 4 Beta
Try with the TWRP...
Try what ? Everything in general ?
Sent from my HTC One using Tapatalk 4 Beta
vizzy said:
Try what ? Everything in general ?
Sent from my HTC One using Tapatalk 4 Beta
Click to expand...
Click to collapse
Yes, everything!
TWRP support OTG, and is better then CWM
It's clean and simple
From my point of view ..Any mistake occurred at migration with 4.1. on 4.2. symlinks for compatibility with the previous version 4.1 aren't created correctly. Be restored with nandroid backup and try to flash stock 4.2 ROM, and only then custom 4.2.2.
The only back up I have is when I booted into recovery and took a nandroid. The one I took after I installed recovery is lost.
Sent from my HTC One using Tapatalk 4 Beta
If I understand correct , you don't have 4.1 nandroid backup ,only 4.2 ?
If yes.. save you apps and data to PC and make factory reset with formating SD (under 4.2 ) and then restore your apps and data.
Nandroid backups in 4.2.2 can be found on phone (not SD card) under data/media btw

[Q] Urgent: Phone Retarts with choosing format /data or format /data/media

Guys i need urgent help here as my battery is slowly draining away...
I was updating my Rom from ARHD 10.x to 11.0, while doing so I noticed there was sort of a ghost directory with 0/
I like to keep things clean so I thought for the ARHD 11.0 I will format EVERYTHING and do a clean install.
I went into CWM 6.0.3.1 and went ahead to format cache, data, sdcard (data/media) system
now I have a problem... I am able to mount data and cashe but not sdcard and system.
when i try to mount sdcard my phone will restart, when i try to format sdcard or data my phone will restart.
when i try to push anything into the sdcard my phone will restart...
what to do?
When i check my sdcard via shell (mind you i don't know much of the commands)
i parted and print.. all i get is can't have overlapping partitions....
i haven't changed the partitions so i have no idea why this is coming up.. i suspect it is from the weird ghost directory...
0/ is not a weird ghost directory, but the way Android is handling the SDcard under 4.2.2 JB to accommodate multiple users.
What you need to do now I cannot say. Can you still boot into recovery? Then you can sideload a rom.zip...
Sent from my HTC One using xda premium

[help] How to correct my SD card directory back to normal?

Hey I recently installed paranoindandroid ROM and played it for a while and flashed back to Viper ROM. But now the strange thing is paranoid created a partition or directory of some kind I'm not very familiar with this behavior which gives me a lot of error while flashing something. For example when I goto CWM my SD card directory looks like 'sdcard/0/' how do I get my sdcard directory back to normal? I want to remove the '0' directory and I tried root explorer but it detects '0' as the only sdcard. Please help! Thank you =)
anyone?
On Android 4.2 and up, the SD card is setup for multiple users. Sdcard/0 is your default directory for base 4.2.2. Mine did the same thing on Viper when they updated to 4.2.2 base in Viper 2.0. That being said, you should not be getting errors like you are. Did you clean install when you went back to Viper? Definitely should not be getting errors flashing things, something else might be the problem.
dgtiii said:
On Android 4.2 and up, the SD card is setup for multiple users. Sdcard/0 is your default directory for base 4.2.2. Mine did the same thing on Viper when they updated to 4.2.2 base in Viper 2.0. That being said, you should not be getting errors like you are. Did you clean install when you went back to Viper? Definitely should not be getting errors flashing things, something else might be the problem.
Click to expand...
Click to collapse
when I do a dalvik cache wipe from CWM I get this "E: unknown volume for path [/sd-ext]"
bornotty said:
when I do a dalvik cache wipe from CWM I get this "E: unknown volume for path [/sd-ext]"
Click to expand...
Click to collapse
That's normal(also irrelevant to your issue).
Like dgtii said, the /0/ folder is the correct set up for anything Android 4.2.2+. If you don't want to see the "0" folder and just your SD card contents when you open it on the computer, format internal storage(the Data partition) in TWRP, then factory reset and reboot into Android. If you need to adb push or adb sideload while in recovery another 4.2.2 ROM if you have any issues rebooting. If the whole /0/ thing REALLY irks you, then you're going to be stuck on 4.1.2.
Be sure to backup your stuff first though.

Categories

Resources