[Q] Internal Storage - Motorola Droid 4

Hi everyone this is my first topic, and I have a big issue with my Droid 4 (Maserati).
First I use the Link2SD app to get some free space in the internal memory and send some app's to my micro-sd card (8gb) but I dosen't work, so I get back all my apps to the internal memory and I erase the Link2SD app.
Then when I reboot my device I get a message "Internal Storage is unmounted" so I investigate and I found that could be a problem with the void.fstab file. So I edit the file to get the original code lines but after reboot I get the same message and when I try to see my files on the internal memory still show me the message "SD card is unmounted"
Please anyone can help me? :crying:
I also show you my void.fstab file
---------------------------------------------------------------
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point[:[asec_point]:[lun_point]]> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## asec_point - Whether asec mount is needed for this value, if not, use "none"
## Else, supply a folder name under /mnt/secure/
## If not supplied, "asec" will used by default
## If supplied, /mnt/secure/asec_point will be used
## This is for further extension, not needed now
## lun_point - The target lun device for this volume. If not supplied, will use
## /sys/devices/platform/usb_mass_storage/lun0/file
## else, will use /sys/devices/platform/usb_mass_storage/lun_point/file
## part - Partition # (1 based), or 'auto' for first usable partition.
## For a disk with only 1 partition, use '1' is different to 'auto'
## Using 1, will not re-write its partition table when formatting
## <sysfs_path> - List of sysfs paths to source devices
######################
# external sd card
dev_mount sdcard-ext /storage/sdcard1:none:lun1 auto /devices/platform/omap/omap_hsmmc.0/mmc_host/mmc0
# internal eMMC
dev_mount sdcard /storage/sdcard0:: 25 /devices/platform/omap/omap_hsmmc.1/mmc_host/mmc1
## Example of a dual card setup
# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
## Example of specifying a specific partition for mounts
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# flash drive connection through hub connected to USB3
dev_mount usbdisk_1.1.1 /storage/usbdisk_1.1.1 auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb3/3-1/3-1.1.1
dev_mount usbdisk_1.1 /storage/usbdisk_1.1 auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb3/3-1/3-1.1
dev_mount usbdisk_1.2 /storage/usbdisk_1.2 auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb3/3-1/3-1.2
dev_mount usbdisk_1.3 /storage/usbdisk_1.3 auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb3/3-1/3-1.3
dev_mount usbdisk_1.4 /storage/usbdisk_1.4 auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb3/3-1/3-1.4
dev_mount usbdisk_1.5 /storage/usbdisk_1.5 auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb3/3-1/3-1.5
dev_mount usbdisk_1.6 /storage/usbdisk_1.6 auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb3/3-1/3-1.6
dev_mount usbdisk_1.7 /storage/usbdisk_1.7 auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb3/3-1/3-1.7
---------------------------------------------------------------------------------
PD: Sorry for my bad english, im a noob trying to explain.

UPDATE: I also use RSD Lite to install the original Stock Rom but the problem continues.

Second update
I flash again with the RSD lite and the stock rom but this time I put out the microSD card and I finally get back access to my internal storage but I can't still get access to the Micro-Sd card and when I put it on the droid 4 I get the message "Sd card is unmounted"
Also If I restart the device with de microSd card In, I lost the access to both memories again.
Please I need some help.
PD: Sorry again for my english, Also Im speak spanish.

Angel_x19 said:
I flash again with the RSD lite and the stock rom but this time I put out the microSD card and I finally get back access to my internal storage but I can't still get access to the Micro-Sd card and when I put it on the droid 4 I get the message "Sd card is unmounted"
Also If I restart the device with de microSd card In, I lost the access to both memories again.
Please I need some help.
PD: Sorry again for my english, Also Im speak spanish.
Click to expand...
Click to collapse
I've never run into an issue like this but if your internal storage works when your microsd card is not inserted, maybe it's a problem with you microsd card? Have you tried reformatting it?

kwyrt said:
I've never run into an issue like this but if your internal storage works when your microsd card is not inserted, maybe it's a problem with you microsd card? Have you tried reformatting it?
Click to expand...
Click to collapse
Yes, actually the microsd card is formated to ntfs, I also try formating the micro-sd to FAT-32 but i can't mount both memories.
If I connect the micro-sd to my PC I can see my files. So I think the problem is with the void.fstab file I can't mount properly the external sd card.

New Info
I found a lot of info about my problem in the CheckRom forums.
It's from the member "Spider"
Sometimes the internal SD card mount point can get corrupted for a number of reasons, and your device will just refuse to mount the internal sd card no matter what you do to try and get out of it. You can go to mounts and storage and try to mount the internal SD card, but it still won't mount, once the mounting point is corrupted, its corrupted!!!
The main thing ive noticed is that people always use a wipe data/factory reset or they format the internal SD card in their attempts to try and get it to remount.
Well let me tell you now that you got no chance and your just waisting your time, in etc/vold.fstab down at root level is the script to mount your internal and external sd cards (see attached screen shot) now if this gets corrupted your device just won't mount no matter what you try to do to get out of it, because once corrupted it has to be over written in order to correct the codes in order for it to mount the sd card.
All three areas of codes the internal, external and USB storage don't have to all be correct in order for the device to work, but whichever area of code that is corrupted won't mount till the code is re written, as the mounting takes place during boot up of the device, and unmounting takes place when you switch off or reboot, its all done in the background automatically.
When you install a ROM these codes are written and remain in place until another different code that is not similar to the existing code is detected and re written, GB and ICS have the same codes/mounting points more or less, but Jelly bean is totally different, written in another way, hence the re pathing of the sd cards.
In GB/ICS the internal sd card path was /sdcard and on Jellybean its /sdcard0 its been re addressed.
For example installing a Jellybean rom on top of another won't fix or mount the internal sd card this way, you need to use a totally different base like go back to GB/ICS, or if your on a GB/ICS rom then you use a Jellybean rom, but what is more important is not to do a wipe data/factory reset or format the Internal sd card in haste, because you will lose all your data and personal files and it still won't mount up, so you lost everything on your internal sdcard for no gain.
When in a can't mount internal sd card situation you need to carry out the wipe method below
If you was on GB/ICS then you install a Jellybean rom
If you was on Jellybean then you install a GB/ICS rom
What will happen is it will re write the paths to the internal SD card and mount it upon boot up.
Click to expand...
Click to collapse
So it's says the I need go back to ICS or GB .. but I found that Its not possible do that once you upgrade to JB

I don't know What tha hell I did but
Finally after a lot of flashing process with diferrente roms I get my sd card an internal memory back :victory: :victory:
I do not know exactly how to solve the problem, but is related to repair the mount point of the internal or external memory
I think that flashing with the lastest rom available in motorolas sites fix the problem because I saw a file named "emmc flash" inside of the zip so I think that fix the mount points. And that file was not available in previous versions.
So thanks to all especially kwyrt for trying to help me :highfive:

Related

[Q] SD Card Questions

Hi! And yes I did use search function but all result didn't really help me out.
I just bought this phone and I will replace mine HTC HD2, which I already miss. Oh well this LG seems to be a good phone but I have notice like many people about SD Card problem.
When you check settings and storage info you see that phone have partitioned in to two partition. One for I don't know Intern Memory? And second one seems to be for saving apps/games.
I now have a SD Card 16gb that I mount in and when I use USB connection I get 2 storage to play with, one is around 5gb I think that is phone intern memory?
And second is 14gb that should be external sd card?
I have install several games and apps but I really want them to be on external 16gb and not intern 5gb, I tried Apps2SD but it only move to phone 5gb storage instead of 16gb external. And I don't want to use CM7, I just want to use original firmware until they release 2.3.
Are there any solution for this?
I don't even get to choose where to install games/apps, they just install on phone and than I try to move with Apps2SD but it only go in to phone's memory.
//Cheers
May I ask why you want to do this?
The way this phone mounts your storage cards, you can only use the external card for storage. movies, music and such things, while the internal is used for applications.
the internal card is mounted at /mnt/sdcard, while the external card is mounted in /mnt/sdcard/_ExternalSD. that way you access your external through your internal, and applications will see it as one card. Problem is, most applications don't use _ExternalSD explicitly, they all use the sdcard root directory and take it from there.
For most users this way is the preferred. They save music and such things on external and that way keep the internal from clogging up. 5,5GB for application data is more than enough for most of us.
This phone has a large data partition (1,4GB) where ALL applications are installed (this is android default, and probably nothing to do about). This partition will hold thousands of applications.
But if you would like to switch, it is possible by editing a system file. This will require you to install clockworkmod, preferably a version with adb support.
This may void your warranty, and there is always a slight possibility of bricking the device when working with system files. And I can not guarantee it will work.
I will tell you exactly what to do if you choose to try.
The reason why I want to do this is because I want as much storage as possible, sure 5.5gb might be enough but game like Spectral Souls just took around 1gb data to download. I mean it's kinda stupid not to use SD Card as storage for application also. That's why I kinda miss my old HTC HD2, I could move apps/games to my SD Card without using intern storage.
If there's the only way to install a custom rom I think I will pass.
I like to use it the firmware it come with, using Launcher PRO Plus atm and I love it. Fast and smooth. Oh well.... This is kinda annoying not to be able to use full out of SD Card. But thanks for the info.
Stikkontakt said:
May I ask why you want to do this?
The way this phone mounts your storage cards, you can only use the external card for storage. movies, music and such things, while the internal is used for applications.
the internal card is mounted at /mnt/sdcard, while the external card is mounted in /mnt/sdcard/_ExternalSD. that way you access your external through your internal, and applications will see it as one card. Problem is, most applications don't use _ExternalSD explicitly, they all use the sdcard root directory and take it from there.
For most users this way is the preferred. They save music and such things on external and that way keep the internal from clogging up. 5,5GB for application data is more than enough for most of us.
This phone has a large data partition (1,4GB) where ALL applications are installed (this is android default, and probably nothing to do about). This partition will hold thousands of applications.
But if you would like to switch, it is possible by editing a system file. This will require you to install clockworkmod, preferably a version with adb support.
This may void your warranty, and there is always a slight possibility of bricking the device when working with system files. And I can not guarantee it will work.
I will tell you exactly what to do if you choose to try.
Click to expand...
Click to collapse
You don't need a custom rom, but you need clockworkmod recovery to update the system file needed to change the mounts.
But I still don't see the reason why you need this.. your card is probably also waaay slower than the internal memory
anyways, here's the steps.
create a folder called _ExternalSD in your external SD card
install clockworkmod recovery, download a version supporting adb here on the forum
connect your phone to your computer via usb and make sure drivers are installed.
download ADB: http://dl.dropbox.com/u/27197205/ADB.rar
extract archive, open command prompt on that folder
reboot into recovery by holding vol down and power until the second lg logo appears, then release both
go to mounts and storage in CWM and mount /system
run pull.bat from command prompt. you should get confirmation that one file was transferred
in the files folder inside ADB folder there is a file called vold.fstab. make a copy for backup. Open it in a text editor
i don't have the original vold.fstab available, so not sure exactly what it says, but there are two lines on the bottom.
They probably says (not necessarily in this order)
dev_mount sdcard /mnt/sdcard auto (and something more here)
dev_mount sdcard /mnt/sdcard/_ExternalSD auto (and something more here)
switch this part, leaving everything from auto where it is.
save file and run push.bat from command prompt, you should get a confirmation that file is transferred.
reboot and check if everything is OK. This should work, but if you or some reason get memory card errors after boot, restore the original vold.fstab and I'll look into it.
Hmm I get stuck on part where I run ADB on PC and use pull, it doesn't give me any file in files folder.
On command Promp:
C:\ADB>adb pull /system/etc/vold.fstab /files
*daemon not running. starting it now on port 5037 *
* daemon started successfully *
111 KB/s <682 bytes in 0.006s>
That's what I get, but no file in files folder.
Stikkontakt said:
anyways, here's the steps.
create a folder called _ExternalSD in your external SD card
install clockworkmod recovery, download a version supporting adb here on the forum
connect your phone to your computer via usb and make sure drivers are installed.
download ADB: http://dl.dropbox.com/u/27197205/ADB.rar
extract archive, open command prompt on that folder
reboot into recovery by holding vol down and power until the second lg logo appears, then release both
go to mounts and storage in CWM and mount /system
run pull.bat from command prompt. you should get confirmation that one file was transferred
in the files folder inside ADB folder there is a file called vold.fstab. make a copy for backup. Open it in a text editor
i don't have the original vold.fstab available, so not sure exactly what it says, but there are two lines on the bottom.
They probably says (not necessarily in this order)
dev_mount sdcard /mnt/sdcard auto (and something more here)
dev_mount sdcard /mnt/sdcard/_ExternalSD auto (and something more here)
switch this part, leaving everything from auto where it is.
save file and run push.bat from command prompt, you should get a confirmation that file is transferred.
reboot and check if everything is OK. This should work, but if you or some reason get memory card errors after boot, restore the original vold.fstab and I'll look into it.
Click to expand...
Click to collapse
I see I did something wrong in the pull.bat file
it should say
adb pull /system/etc/vold.fstab files
Hmm.... What should I do now? I mean what should I type in command prompt? just pull? or more command? to get vold file.
Should I re-download your ADB? XD
EDIT: Hm I reboot phone both intern memory and extern memory doesnt show up.
Stikkontakt said:
I see I did something wrong in the pull.bat file
it should say
adb pull /system/etc/vold.fstab files
Click to expand...
Click to collapse
just type
adb pull /system/etc/vold.fstab files
EDIT: Hm I reboot phone both intern memory and extern memory doesnt show up.
Aaah I got file now:
## Vold 2.0 NVIDIA Whistler fstab
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
## 20100725, [email protected], Add 2nd external memory
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
It's those up lines there dev_ right?
Stikkontakt said:
just type
adb pull /system/etc/vold.fstab files
Click to expand...
Click to collapse
Try:
## 20100725, [email protected], Add 2nd external memory
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
or if that fails
## 20100725, [email protected], Add 2nd external memory
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
Stikkontakt said:
or if that fails
## 20100725, [email protected], Add 2nd external memory
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
Click to expand...
Click to collapse
I tried this one, so I just run push, how do I know if it have upload to phone?
you should get a confirmation if you ran it from a command prompt.
Stikkontakt said:
you should get a confirmation if you ran it from a command prompt.
Click to expand...
Click to collapse
I did on second and when I boot in to phone, both memory extern and intern got no recognize both dont show up. Im gonna try first one you post now.
when I type push it say:
55 KB/s <679 bytes in 0.012s>
Is this confirmation?
EDIT: Both don't work. My Intern and external doesn't show in phone. Did I do something wrong?
that means something transferred, so yes, it's kind of a confirmation..
Stikkontakt said:
that means something transferred, so yes, it's kind of a confirmation..
Click to expand...
Click to collapse
Both don't work. My Intern and external doesn't show in phone. Did I do something wrong?
Probably not. I have CM7 installed, so I'm not able to test myself. Therefore hard to get it right
Try this:
Code:
dev_mount extsdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
Stikkontakt said:
Probably not. I have CM7 installed, so I'm not able to test myself. Therefore hard to get it right
Try this:
Code:
dev_mount extsdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
Click to expand...
Click to collapse
Doesn't work but I have a question, maybe I did wrong. Should it say like this?
## 20100725, [email protected], Add 2nd external memory
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
or
## 20100725, [email protected], Add 2nd external memory
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
I mean should I replace what you give me? or add them 2 more extra line?
you should only have two dev_mount lines after ## 20100725, [email protected], Add 2nd external memory
just like your original file..

[REQ] [SOLVED] For Internal / External SD SWAP

Hi guys, I believe that this has been bumped numerous times. But I would appreciate it if some one could upload a .zip for cwm to patch the system.
Basically I would like to swap the internal sd dir to external sd dir vice versa so that I can install games and applications on my external sd card. I tried to mod the vold. but in the end it shows that both drives are unavailable.
Please help.
Code:
## Vold 2.0 NVIDIA Whistler fstab
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
## 20100725, [email protected], Add 2nd external memory
#LGE_CHANGE_S[[email protected]] change for issue: not able to boot with corrupted SD card
#dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc0
After I did this, the device can't mount either the internal or external sd. It says unavailable in the storage page.
Sorry mate I have only tried it to Django Manouche ROM.
raz0r9199 said:
After I did this, the device can't mount either the internal or external sd. It says unavailable in the storage page.
Click to expand...
Click to collapse
bro post up ur original vold.fstab file and ill edit it to make it work
Swap on internal sdcard is very much risky and not at all recommended. Because swap write very often reduntantly which can damage phone internal flask memory . You can use it on external card which is if cause damage then even cost-effective. Best idea would be zram/compcache
Sent from my LG-P990 using Tapatalk
raz0r9199 said:
Hi guys, I believe that this has been bumped numerous times. But I would appreciate it if some one could upload a .zip for cwm to patch the system.
Basically I would like to swap the internal sd dir to external sd dir vice versa so that I can install games and applications on my external sd card. I tried to mod the vold. but in the end it shows that both drives are unavailable.
Please help.
Click to expand...
Click to collapse
Why would you wanna do it the hard way?
There's a setting for this:
Check the Settings->Cyanogenmod Settings->Application->Use Internal Storage setting and that should swap your internal and external SD.
Hope this helps
Hi bro, I'm using stock gingerbread from LG and thats the problem. I'm on fps 0.2a kernel for now and this is my vold.fstab.
## Vold 2.0 NVIDIA Whistler fstab
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
## 20100725, [email protected], Add 2nd external memory
#LGE_CHANGE_S[[email protected]] change for issue: not able to boot with corrupted SD card
#dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.3/mmc_host/mmc0
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
Click to expand...
Click to collapse
#dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.3/mmc_host/mmc0
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
I have the same and here it works and external sdcard is on_ExternalSD. What else did you do and what is your ROM.
Playing with that is always risky, and to be honest I can't see your point.
3 out of 6 people can't read correct the first post
orlox said:
3 out of 6 people can't read correct the first post
Click to expand...
Click to collapse
I read and understood and I still don't catch the point.
I think the point is to swap InternalSD (about 4GB) with ExternalSD (or microsdcard) that may be more than 32GB up to each user can buy microsdcard.
So you can do like this
1.make dirrectory /mnt/sdcard/_InternalSD
2.edit vold.fstab to
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /mnt/sdcard/_InternalSD 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
3.add or edit build.prop to
ro.additionalmounts=/mnt/sdcard/_InternalSD
after reboot you will get sdcard map to your microsdcard (see picture) and use all total space may be 32GB as sdcard BUT one problem is you will not use the original 4GB it will say empty and unaviable (let I try to seek how to solve this and will update later)
k101d said:
I think the point is to swap InternalSD (about 4GB) with ExternalSD (or microsdcard) that may be more than 32GB up to each user can buy microsdcard.
So you can do like this
1.make dirrectory /mnt/sdcard/_InternalSD
2.edit vold.fstab to
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /mnt/sdcard/_InternalSD 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
3.add or edit build.prop to
ro.additionalmounts=/mnt/sdcard/_InternalSD
after reboot you will get sdcard map to your microsdcard (see picture) and use all total space may be 32GB as sdcard BUT one problem is you will not use the original 4GB it will say empty and unaviable (let I try to seek how to solve this and will update later)
Click to expand...
Click to collapse
so its not possible to make use of both the internal storage 5 gigabyte and the external sd card at the same time rite
lopiop said:
so its not possible to make use of both the internal storage 5 gigabyte and the external sd card at the same time rite
Click to expand...
Click to collapse
Sorry I not use stock now but modify of vold.fstab work perfect with MiUI rom it only can't use internalsd space for stock rom like V20 may be depend on android version 2.3.4 (CM7 and MiUI is 2.3.7X) so I give up now and look forward to use CM7 or MiUI instead.
Thanks guys finally managed to get it to work. The reason why I'm doing this. Some applications, although you can move to the external sd card, but some files still reside in the internal sd card, so when you have loads of apps, the available storage for your internal memory will go down.
Correct me if I'm wrong.

Sdcard as internal storage

Hey! I'm new here, and I've just got my brand new droid 3 which works nicely in france using CM9. The only problem i've been encountering is that I have a 32 GB memory card i used to have plugged in on my last phone (a HTC Desire HD), and all of my data was on it. So when i saw the sdcard was actually mounted to /mnt/sdcard-ext and that therefore i would not be able to access my data, i got a little upset. So i worked to find a way to make it mount to /mnt/sdcard every time it boots. I looked up on google and on every forum i could think of, but no signs of help. So now that i've found a way, i'm giving it here so you folks can do it easily. I'm not a great big dev, so it's not a big tweak or hack or something, and so tell me if it's not appropriate to put it here.
So, basically what you have is your phone with your sdcard plugged in, and CM9 installed. I have not tested this method on other ROMs, so i don't know how that will turn out (even though normally it should work, because it's based on android system itself).
I am not responsible for bricking your phone (i did it a few times (happy i had RSDLite)), nor any damage you could cause to your system or anything else. It worked on my phone though, so it should work on yours.
So, basically, what you have to do is open a Terminal Emulator session, become root by tapping su , then go to /etc by typing cd /etc/, then edit your /etc/vold.fstab file using vi or any other text editor you want (i use vi because nano does not work on my phone) : mount -o rw,remount /system && vi ./vold.fstab . Then you will find a text file which looks like this :
Code:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point[:[asec_point]:[lun_point]]> <part> <sysfs_path1...>
...
# internal eMMC
dev_mount sdcard /mnt/sdcard 25 /devices/platform/mmci-omap-hs.1/mmc_host/mmc1
# external sd card
dev_mount sdcard-ext /mnt/sdcard-ext auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc0
...
So what we wanna do is changing this part to this :
Code:
# internal eMMC
dev_mount sdcard /mnt/sdcard-ext 25 /devices/platform/mmci-omap-hs.1/mmc_host/mmc1
# external sd card
dev_mount sdcard-ext /mnt/sdcard auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc0
DO NOT TOUCH TO ANYTHING ELSE, IT COULD DAMAGE YOUR PHONE!
and then that's it, just reboot and your phone's internal storage is now 28 GB if you have a 32 GB card like me (because of software limitations, it actually still is 32 GB but is only shows 28.)
[attachment=20540:Screenshot_2012-03-16-18-23-18.png]
So that was it! thanks for reading, and again tell me if anything's wrong!

[Q] vold.fstab appending an extra /devices/platform/s3c-sdhci.2(?)/mmc_host/mmc2

In short,
what should vold.fstab look like to link /sdcard/external_sd to the 2nd partition on the EMMC external sdcard? (/dev/block/mmcblk0p2 is a bad idea)
Background and why you might want to do this:
3 data partitions, how best to arrange? (/mnt/emmc /mnt/sdcard & 2nd emmc partition)
My internal memory has shrunk down from 8gb to about 4gb, which is annoying but natural for flash storage.
This is no longer enough space for apps such as Sygic to store it's maps in.
Sygic looks in /mnt/sdcard & /mnt/sdcard/external_sd. These older apps are always going to be a problem so I'm looking to make /mnt/sdcard/external_sd available somehow. But which way is best?
I have 2 partitions on the EMMC sdcard and the internal SDcard is just fat32:
Internal SD = ~4gb, /mnt/sdcard
External SD partition 1 = fat32, ~10gb, /mnt/emmc
External SD partition 2 = ext3, ~5gb, currently used by link2sd in /mnt/sec I think
Click to expand...
Click to collapse
/mnt/sdcard/external_sd is unused.
I would prefer to do:
Code:
ln -s /mnt/sec/external_sd_emulated /mnt/sdcard/external_sd
...but presumably because the /mnt/sdcard is only fat32 I have permission denied. I was hoping this would work since the source for the link is ext3 even if the destination is fat32.
I could edit fstab to change that but I'd rather not if possible because that's a bit too non standard for me. If I did though... what would that be?
I guess it would be adding to vold.fstab:
Code:
dev_mount emmc /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.[B]3[/B]/mmc_host/mmc[B]2[/B]
^ but should it be a 3 or a 1 at this line? fstab -l with no output and nothing in /devices makes it hard to figure out
I would normally experiment but in this case I don't want to get it wrong. How do I find out what /mnt/asec is mounted to because df isn't showing it
Just to show I have searched, a related thread:
http://forum.xda-developers.com/showthread.php?t=941443
&
http://forum.xda-developers.com/showthread.php?t=1524831
Also a note to anyone reading this; obviously backup your vold.fstab file... but also put it somewhere that you can access easily via adb and CWM recovery if it doesn't work. I guess mounting /dev/block/mmc... might work but that would then fail if the sdcard isn't present... which would be I guess when USB mass storage mode is turned on.
Some documentation on /devices on Android would be good:
http://miuiandroid.com/community/threads/vold-fstab-modding-need-help.15576/
Same problem.
I used Galaxy S 8GB and found that it's too less space for install many game.
So I buy micro sdhc 32 GB.
I added it in vold.fstab too but it seem like does not work.
Now I used workaround by run command.
mount -o /mnt/sdcard/Android /mnt/emmc/Android/
But it's not convenient to use because if you want to plug computer via USB you must umount first unless it might have problem when mount.
So If you can find solution to add it automount external sd (micro sdcard ) at startup same as internal sd feature please guide me.
Thanks
frankind said:
I used Galaxy S 8GB and found that it's too less space for install many game.
So I buy micro sdhc 32 GB.
I added it in vold.fstab too but it seem like does not work.
Now I used workaround by run command.
mount -o /mnt/sdcard/Android /mnt/emmc/Android/
But it's not convenient to use because if you want to plug computer via USB you must umount first unless it might have problem when mount.
So If you can find solution to add it automount external sd (micro sdcard ) at startup same as internal sd feature please guide me.
Thanks
Click to expand...
Click to collapse
you're gonna need an entry to whatever the sdcard is but from /devices so it ejects properly. the thing is I I'm not 100% the syntax in my first post is correct.... the only way is to try it unless we can find a command that is equivalent to fdisk -l on linux?
An app called directorybind can do this bit running an app all the time isn't ideal and it crashes for me from time to time

Format whole internal SD card as EXT2/3/4 to symlink /storage/sdcard1 on to it

Hi guys.
I looked for other threads on this matter but found only dead threads with no answers.
Is it possible to format the whole internal SDCARD to say EXT2 (no journalling) so I can symlink /storage/sdcard1 on to /storage/sdcard0/external_SD
I would try to busybox and format the internal sdcard but then I would be left without a recovery. I already tried modifying /etc/vold.fstab but managed to break the mount points went into an endless bootloop and without a recovery. This happened due to my modifying of both the mount points in there
Now I was thinking of modifying just the line mounting emmc on to /storage/sdcard1 but then again this would probably break /emmc and /mnt/emmc symlinks so I decided I could ask you about changing the whole FStype.
I have a Gentoo running on my laptop and I could always start dual booting my desktop if needed.
Also since right now on JB I should have trouble mounting external SD on the PC via PTP and I haven't tried MTP yet this whole operation if sucessful might leave me out of direct USB connection to the PC if the phone is not in recovery.
I'm currently on HellyBean 0708.
So do you have any input on my thoughts? I could also try mount binding the external sdcard also to /storage/sdcard0/external_SD but it would lead to more duplicates for the media scanner and a need to further unmount the card prior to every PC connection.
And I could try to modify vold.fstab to mount it straight on to /storage/sdcard0/external_SD and revise and edit the /sdcard and /mnt/emmc symlinks manually but I'm not sure if this will work out ok after all and if the location /storage/sdcard1 is actually important for JellyBean.
Please give me an advice if somebody has already tried one of these approaches.
Cheers,
Deyan

Categories

Resources