Sdcard vs Sdcard2 vs Sd_ext - can this be fixed? - HTC Rezound

Why did they make the sdcard folder on the internal ram? All my apps write to arcade not ed_ext. Titaniumbackup, Rom manager, browser, you name it. Not to mention a factory wipe in cwm wipes the arcade folder. Am I missing something? Are the devs going to fix this within the Rom?

Great question... This gets on my nerves.... It wasn't this way on my Droid Charge and boom I saw it on my Bionic and now the Rezound...
Sent from my HTC Rezound using Tapatalk

That is because we are using a Unix file structure. (EXT/2/3/4) Unix (and its derivatives) see drives (USB drives, extra internal drives, SD cards, etc) as folders/files not as devices. There are ways to make these devices appear to show up as a device rather than a folder to the user, but at its core it is still treated as a folder by the kernel.
Desktop linux file structure has all extra storage devices listed as folders in the /media folder of the / (root) partition of the file system.
This structure is also why we have the /system and /data partitions in Android. Its another throw over from the linux base (desktop linux is usually / and /user or /home)
Seems there is no consistancy between OEMs and how they tell the file system to arrange user storage. Some have /SDCARD1 /SDCARD2 and HTC has the external card listed inside the internal memory. It could be that the internal memory is mapped to the /media of regular linux.

/sdcard is a symbolic link (shortcut) for /mnt/sdcard and /sdcard2 is a symlink for /mnt/sdcard/ext_sd

So really they are all the same, just how they choose to link the location is different. Either way, that is just how linux works.

Can this be remapped? Is so, how?

maniac2k said:
Can this be remapped? Is so, how?
Click to expand...
Click to collapse
vold.fstab modification EXPERIMENTAL
Read the whole thread first before you decide
http://forum.xda-developers.com/showthread.php?t=1383330

considering the available storage does it really matter where the data goes?
I've just htcdev unlocked my bootloader (which wipes the phone) and it didn't touch the internal sd card or sd card2. Installing a ROM that wipes the device did not either.
So what's the big deal where it goes? I use the internal storage for apps and game data and my 32gb sd card for media and roms.

nrfitchett4 said:
considering the available storage does it really matter where the data goes?
I've just htcdev unlocked my bootloader (which wipes the phone) and it didn't touch the internal sd card or sd card2. Installing a ROM that wipes the device did not either.
So what's the big deal where it goes? I use the internal storage for apps and game data and my 32gb sd card for media and roms.
Click to expand...
Click to collapse
And all that really means is that, if your application writes data to a different location, you just copy the data to your SD card. Not really a lot of work. Got used to it with my Dell Streak 7...
Sent from my ADR6425LVW using Tapatalk

When I did a few wipes, it did wipe my sdcard folder. That is problem 1. #2 is then I have to config all my apps that default to sdcard. #3 I have to now backup sdcard and sdcard2. #4 wah I don't want change.
nrfitchett4 said:
considering the available storage does it really matter where the data goes?
I've just htcdev unlocked my bootloader (which wipes the phone) and it didn't touch the internal sd card or sd card2. Installing a ROM that wipes the device did not either.
So what's the big deal where it goes? I use the internal storage for apps and game data and my 32gb sd card for media and roms.
Click to expand...
Click to collapse
Sent from my ADR6425LVW using XDA App

maniac2k said:
When I did a few wipes, it did wipe my sdcard folder. That is problem 1. #2 is then I have to config all my apps that default to sdcard. #3 I have to now backup sdcard and sdcard2. #4 wah I don't want change.
Sent from my ADR6425LVW using XDA App
Click to expand...
Click to collapse
That's what I read, so I backed it up, but htcdev didn't wipe it on my device (does a factory reset when unlocking), and it wasn't wiped when I installed chingy's rom (that auto wipes), so I don't know why some are experiencing this.
Not to mention that wiping with amon ra also does not delete the internal sd card.

md303 said:
vold.fstab modification EXPERIMENTAL
Read the whole thread first before you decide
http://forum.xda-developers.com/showthread.php?t=1383330
Click to expand...
Click to collapse
Modded the vold.fstab per your link and it worked. Thanks!

http://forum.xda-developers.com/showthread.php?t=2072751
enter here to fix default install location to sdcard2:
http://forum.xda-developers.com/showthread.php?t=2072751

Titanium backup was mentioned, it's really easy to go into preferences and edit the backup storage location. I used to walk a lot of people through it with the remote unlocking process I would do.
Sent from my ADR6425LVW using xda premium

Related

[APP] Root All to SD

Has anyone tried this app for Data2SD?
I stumbled upon this app while taking a stroll in the Market. And wanted to share it with y'all.
And, NO, I am not the dev of the app.
☞ The Dev is WindowsNT. ★
I would've tried it myself, but I already have Data2SD on my phone. It might help those who need Data2SD.
Root All to SD -
http://market.android.com/details?id=rappsd.v1
Sent From My Galaxy 3.
I 'm the dev.
I 'd be happy to answer any questions. The app simply creates and formats a storage in the SD, then links data from apps to that partition.
WindowsNT said:
I 'm the dev.
I 'd be happy to answer any questions. The app simply creates and formats a storage in the SD, then links data from apps to that partition.
Click to expand...
Click to collapse
Does it do all this automatically.. I mean is there any special script or kernel required..?
Sent from my GT-I5800 using XDA Premium App
1. You first use the "storage" menu to create a storage file (default 500MB) to be used as a partition. This partition is then automatically formatted to ext2 and mounted on the device startup.
2. From the "apps" menu you select an application and you have a list of the movable files.
3. You move/restore the files you wish.
Of course, don't do it for applications that start on boot, because the storage won't be mounted until the sd card is visible.
WindowsNT said:
1. You first use the "storage" menu to create a storage file (default 500MB) to be used as a partition. This partition is then automatically formatted to ext2 and mounted on the device startup.
2. From the "apps" menu you select an application and you have a list of the movable files.
3. You move/restore the files you wish.
Of course, don't do it for applications that start on boot, because the storage won't be mounted until the sd card is visible.
Click to expand...
Click to collapse
Is this only for 2.2 or can it be used for 2.1?
It can be used with 2.1 as it doesn't move the app itself (as the 2.2 system does), it moves the internal data in /data/data/<package>.
(requires root).
Glad to see the Dev himself here.
Hope many people benefit from this App.
Sent From My Galaxy 3.
Hell mate. I tried this with 500mb.
It stuck at 25mb which is like 5%
Then i formatted my sd card and tried with 50mb and again it stuck at 25mb.
Why is this problem occuring ? Also i have a 16gb sdhc which is class2
Hm, perhaps a problem with your SD card ?
Try this from shell:
dd if=/dev/zero of=/mnt/sdcard/rallsd/storage bs=1024 count=102400 (for 100MB).
this is similar to the command used by my app. If it also stucks, then it seems that there's an error with your SD card (chkdsk ?)
If it works, notify me and I 'll take a look.
WindowsNT said:
Hm, perhaps a problem with your SD card ?
Try this from shell:
dd if=/dev/zero of=/mnt/sdcard/rallsd/storage bs=1024 count=102400 (for 100MB).
this is similar to the command used by my app. If it also stucks, then it seems that there's an error with your SD card (chkdsk ?)
If it works, notify me and I 'll take a look.
Click to expand...
Click to collapse
This dint work too
Then, a storage card issue.
Perhaps a chkdsk would help.
hi,
i installed the app n also created the storage file of (1024) n it successfully finished,but it says that storage is not mounted n when i try to mount it, it says mount attempt n nothin happens.
please help.
sinahidden said:
hi,
i installed the app n also created the storage file of (1024) n it successfully finished,but it says that storage is not mounted n when i try to mount it, it says mount attempt n nothin happens.
please help.
Click to expand...
Click to collapse
I got the same issue also, thought it would be nice if the app was more transparent
SmallWalrus said:
I got the same issue also, thought it would be nice if the app was more transparent
Click to expand...
Click to collapse
Heh, reply to self, but I managed to work around the initial problem by simply deleting off the storage file, and creating a smaller (128mb) one
hi, i have 2 questions before ill give it a try.
is the app able to allocate free space from the sd card to create the partition
or do i have to wipe the sd completely before ?
will the app interfere in any way with already installed and normal moved apps ?
thanx in advanced, stavro
Doesn't work on my Archos 7ob eReader (Eclair 2.1). Once the second part created by Root All to SD, it doesn't recognize its job ! Worse, Windows can't at all read the SD Card.
WindowsNT said:
I 'm the dev.
I 'd be happy to answer any questions. The app simply creates and formats a storage in the SD, then links data from apps to that partition.
Click to expand...
Click to collapse
no answeres on my question ???
Sent from my HTC Wildfire using Tapatalk
in the meantime i am using link2sd on my rooted stock rom.
works perfect. i just had to create a second partition on my sd card
(no need to wipe the sd) and start the application. no "not enough memory" problems anymore
SmallWalrus said:
Heh, reply to self, but I managed to work around the initial problem by simply deleting off the storage file, and creating a smaller (128mb) one
Click to expand...
Click to collapse
i used 340mb and it work perfect!
Three questions
I have three questions:
1) How can I reduce size of allocated memory space (I have mount 2 GB but now I see that is to much for my needs)
2) What happens with files that are on mounted partition if I uninstall Root all to SD app? How can I move it back to the original place?
Thanks in advance!

Question: Renaming sdcard and sdcard2

Certain apps tend to save data on the phone's internal storage which is named "sdcard". So in order to trick those apps to save data on my external sdcard(sdcard2), would it be okay to rename the "sdcard" to "internal storage" and rename "sdcard2" to "sdcard"?
Would that cause any problems?
I like to keep my apps stored on my phone's storage and keep everything else (music, videos, pictures, browser downloads) on my actual sd card.
do it in windows explorer; i renamed mine and it works well still
Could you explain how you did this. I have tried a couple different ways and i am having no luck renaming my sd card file.
I am sure with custom roms we can swap the mount points if we want.
jayochs said:
do it in windows explorer; i renamed mine and it works well still
Click to expand...
Click to collapse
But that's not renaming the folder itself as the phone sees it, that's just modifying what the computer knows to call it in Explorer when you hook it up.
OP, I tried changing it myself and it wouldn't work. I don't think it's possible until root comes along and we can modify file system data and the like. Sucks, and it's stupid that HTC thought it'd be a good idea to name it SDcard, but we're stuck with it for now
rboddy said:
But that's not renaming the folder itself as the phone sees it, that's just modifying what the computer knows to call it in Explorer when you hook it up.
OP, I tried changing it myself and it wouldn't work. I don't think it's possible until root comes along and we can modify file system data and the like. Sucks, and it's stupid that HTC thought it'd be a good idea to name it SDcard, but we're stuck with it for now
Click to expand...
Click to collapse
Not much worse than moto bionic Havering internel storage as sdcard, and the actual SD card, sdcard-ext.
Sent from my ADR6425LVW using XDA App
nosympathy said:
Not much worse than moto bionic Havering internel storage as sdcard, and the actual SD card, sdcard-ext.
Sent from my ADR6425LVW using XDA App
Click to expand...
Click to collapse
That's the exact case here. Internal storage on the Rezound is "SDCARD" and the acutal SD Card is "SDCARD2" or "ext_sd" - those two folders are mirrors of each other.

[Q] Internal /sdcard

can the internal sdcard be formatted from a PC just like an external sdcard ?
I dont care about anything data I have on it, I just need to know if i wipe it I am not effing anything up that needs to run.
Thanks!
The "Internal SD" is not really an SD card in the sense of a removable or separate device. It is part of the internal memory, but from the stand point of the system is treated as a separate drive. Kind of like the way you can take a hard drive a partition it into two "logical" drives that can be separately addressed.
In any case the formatting of the internal SD is a function of the Android system and not the PC. I'm not sure what happens if you try to format while the device is plugged in via USB. I know there are several hidden directories that Android needs on the SD card and if you try to format from the PC they are likely to be destroyed.
If you look at "Settings-Storage" you should find the formatting tool.
mbamberg said:
The "Internal SD" is not really an SD card in the sense of a removable or separate device. It is part of the internal memory, but from the stand point of the system is treated as a separate drive. Kind of like the way you can take a hard drive a partition it into two "logical" drives that can be separately addressed.
In any case the formatting of the internal SD is a function of the Android system and not the PC. I'm not sure what happens if you try to format while the device is plugged in via USB. I know there are several hidden directories that Android needs on the SD card and if you try to format from the PC they are likely to be destroyed.
If you look at "Settings-Storage" you should find the formatting tool.
Click to expand...
Click to collapse
But, back to the original question: how do you format (wipe) the internal SD card?
This whole issue of the pictures and mp3s that can't be removed is really bugging me.
kevincwelch said:
But, back to the original question: how do you format (wipe) the internal SD card?
This whole issue of the pictures and mp3s that can't be removed is really bugging me.
Click to expand...
Click to collapse
did you try going into root explorer and mounting r/w and then try to delete the files? Just asking because there has been a few bricks on here from people formatting their internal.
Sent from my ADR6300 using xda premium
kevincwelch said:
But, back to the original question: how do you format (wipe) the internal SD card?
This whole issue of the pictures and mp3s that can't be removed is really bugging me.
Click to expand...
Click to collapse
If you remove those files, you may not be able to use the OTA updates....the updates don't seem to like changed or removed files.
Bob
monkey10120 said:
did you try going into root explorer and mounting r/w and then try to delete the files? Just asking because there has been a few bricks on here from people formatting their internal.
Sent from my ADR6300 using xda premium
Click to expand...
Click to collapse
Good thought: I did use Root Explorer to mount R/W. It did NOT let me delete those files.
(I really have no serious intentions of formatting my internal "SD" card; I'm just fuming that I have no control over the files, which show up in my Google music.)
I also can't seem to put a .nomedia file in the directory either.
---------- Post added at 12:27 AM ---------- Previous post was at 12:26 AM ----------
robertg9 said:
If you remove those files, you may not be able to use the OTA updates....the updates don't seem to like changed or removed files.
Bob
Click to expand...
Click to collapse
Not necessarily worried about that. I've found a ROM and kernel that work pretty well, and since this isn't my phone, I don't need it to be running 24-7.
There's nothing in System Settings-Storage?
Sent from my HTC Desire using XDA

"Waiting for SD card to mount (20sec)" on custom ROM installation

I have a (successfully) rooted Galaxy S2 GT-I9100 without external SD card and I wanted to install a custom ROM (tried both MIUI and CyanogenMod). I used the ROM manager app, via "Download ROM" and after the download has finished it prompted a menu and I selected 'Backup Exisiting ROM' and 'Wipe Dalvik Cache' and proceeded.
It booted the device into recovery mode and tried to mount SD card even though I don't have one. Then the installation failed, because the SD card mounting failed.
I also noticed that when I browse my files, the home directory is /sdcard, and all the files are there. I cannot navigate to the root folder (aka '/'). This is very odd considering I don't have an SD card.
How do I solve this issue?
Please help me.
/sdcard is your internal storage and to access root folder you need root explorer
Odoslané z GT-I9100 cez Tapatalk 2
Stileth said:
/sdcard is your internal storage and to access root folder you need root explorer
Odoslané z GT-I9100 cez Tapatalk 2
Click to expand...
Click to collapse
What about my other question? Can you help me? Why doesn't it mount?
It failed to mount your internal storage or external SD card which you don't have? Also ROM Manager have compatibility issues with SGS2 so I would avoid using it.
Odoslané z GT-I9100 cez Tapatalk 2
Stileth said:
It failed to mount your internal storage or external SD card which you don't have? Also ROM Manager have compatibility issues with SGS2 so I would avoid using it.
Odoslané z GT-I9100 cez Tapatalk 2
Click to expand...
Click to collapse
I see that I can't get you to answer helpfully, so I'll put it more clearly:
1. Why does it try to mount an SD card?
2. Can I tell it to install the ROM from the internal storage? If I do, then how?
3. Must I have an SD card to install ROMs?
4. If I do, is there a way to install ROMs without an SD card?
Thanks.
Ok, let's go back to start. What's your ROM and how have you rooted it?
Also seems to me there is little mixture of terms. The phone's internal storage is called USB storage if you go to settings and storage management. If you would have external memory card it would be there named SD Card. And now where probably comes the confusion. If you open file manager you will see folder called /sdcard. This is your internal storage aka USB Storage. So if you see message saying unable to mount /sdcard it's your internal storage.
Now to the rest of questions. If you have only stock recovery you can access only external SD card which you don't have, so to flash custom ROM from internal storage you need custom recovery like CWM.
The errors you have experienced after the reboot were caused by the ROM Manager. As I have mentioned before it has compatibility issues with SGS2 and I had my own problems with it ending in corruption of my internal memory which I needed to format at the end to solve the problem.
So my advice is to get rid of the ROM Manager and use instructions from their appropriate ROM threads to install them.
Odoslané z GT-I9100 cez Tapatalk 2
Thank you for clarifying the terminology which I obviously got wrong.
I did use CWM, but via ROM Manager. It turns out that this is what caused the problem. So I got rid of it and followed the instructions in those threads and it works!
Now that I have CyanogenMod 9.0.0, I have another problem:
It does not come with Google Play application. I tried to manually download and install Google Play with APK, and it didn't work.
If you know anything about it I appreciate if you take a look at this thread I opened.
1gnition said:
Thank you for clarifying the terminology which I obviously got wrong.
I did use CWM, but via ROM Manager. It turns out that this is what caused the problem. So I got rid of it and followed the instructions in those threads and it works!
Now that I have CyanogenMod 9.0.0, I have another problem:
It does not come with Google Play application. I tried to manually download and install Google Play with APK, and it didn't work.
If you know anything about it I appreciate if you take a look at this thread I opened.
Click to expand...
Click to collapse
After flash cm9, your need too flash gapps
Sendt fra min GT-I9300 med Tapatalk2
USB structure on i9100
Stileth said:
Also seems to me there is little mixture of terms. The phone's internal storage is called USB storage if you go to settings and storage management. If you would have external memory card it would be there named SD Card. And now where probably comes the confusion. If you open file manager you will see folder called /sdcard. This is your internal storage aka USB Storage. So if you see message saying unable to mount /sdcard it's your internal storage.
Click to expand...
Click to collapse
I think Stileth might have this a little wrong. He clearly knows what he is talking about, but like many of the very knowledgable people on this board, it is hard to remember all the details of every phone.
This is what I have on a i9100, exploring with adb shell:
There is a /sdcard directory, which is your internal sdcard
There is a /sdcard/external_sd, which is your external sdcard
There is a /sdcard/usbStorage, which appears to be ram based storage.
I can move files to the usbStorage, but they do not survive a power cycle. I looked at the mount structure, and there is no device mounted for usbStorage, but it is defined as a tmpfs (temperary file system?) same as the other two sdcard directories. Perhaps someone else can fill in more details.
My thinking is that it is this strange file structure that is throwing RomManager off. I am seeing similar behavior as you when using RomManager
usbStorage is used for pendrives.
przemcio510 said:
usbStorage is used for pendrives.
Click to expand...
Click to collapse
Thanks, I thought that might be it. Interesting that it lets you store stuff there in a ram cache even if no pendrive/thumbdrive is present.

[Q] Internal Storage? Which is which

What is the path for internal storage??
And does it wipe with system wipes?
I did a factory reset after I screwed up my telephony database and I was shocked to see some pics I had taken earlier that day still there after I had done the hard reset.
On my vivd it was "ext_sd" where I could put stuff that wouldn't get wiped,
When I put the HOX+ into the comp with the usb all I see is a drive called "Internal Storage" --- are you telling me this will never get wiped during all our flashing rooting wiping activities?? That would be awesome. Less awesome than having expansion drives for SD cards of course, but..
The HOX+ has no mock SD card. Because it uses MTP not mass storage. All 64GB are on the /data/ partition. If you go to /data/media/ that is the folder mounted when you connect to a PC.
Sent from my HTC One X+ using Tapatalk 2
grafik2 said:
What is the path for internal storage??
And does it wipe with system wipes?
I did a factory reset after I screwed up my telephony database and I was shocked to see some pics I had taken earlier that day still there after I had done the hard reset.
On my vivd it was "ext_sd" where I could put stuff that wouldn't get wiped,
When I put the HOX+ into the comp with the usb all I see is a drive called "Internal Storage" --- are you telling me this will never get wiped during all our flashing rooting wiping activities?? That would be awesome. Less awesome than having expansion drives for SD cards of course, but..
Click to expand...
Click to collapse
yes as long as you don't touch a WIPE DATA button, you will never lose the "sdcard" shizz this is all documented on the sticky in general
AndroHero said:
The HOX+ has no mock SD card. Because it uses MTP not mass storage. All 64GB are on the /data/ partition. If you go to /data/media/ that is the folder mounted when you connect to a PC.
Sent from my HTC One X+ using Tapatalk 2
Click to expand...
Click to collapse
Perfect -- thanks!
Cool good to know

Categories

Resources