[Q] swap internal to external sd- correct command line? - General Questions and Answers

Hi,
I wanna make my external sd my internal one without having the need to use an app. So Instead of having 8GB of internal storage I want to have 64GB (taken from the micro sd card). It worked on my previous phone Gt-i8530 if I changed the vold file to this:
# internal sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun0/file
secure_format = enable
discard = enable
}
dev_mount sdcard1 /storage/extSdCard 8 /devices/sdi2/mmc_host/mmc0/mmc0 encryptable_nonremovable
# external sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun1/file
supported_exfat = disable
android_secure_containers = enable
}
dev_mount sdcard /storage/sdcard0 auto /devices/sdi0/mmc_host/mmc1/mmc1
So now I want to do that same thing on my new phone SM-G3858. But I only have in vold:
#storage_struct = series, "/mnt/sdcard/extStorages"
#storage_struct = parallel
{
supported_exfat = yes
}
dev_mount sdcard /storage/extSdCard auto /devices/platform/sdhci-pxav3.0/mmc_host/mmc1
Now what do I need to change or add here to swap it as on the previous phone? I´m a bit confused that a) it right away says extsdcard here and b) that there is only one command line instead of 2 . I guess the reason is the #storage structure?
And suggestions please?

Related

[HELP] Bootloop Problem - Need guide on how to map my external sd card

I can't get out of this boot loop problem.
I'm 80% sure it's a hardware problem (Internal sd).
I've searched almost all threads with similar problems like:
Bootloop! & Can't mount SDCARD
and
Bootloop after flashing
but failed to find the answers.
But because of this thread, im having second thoughts.
[SOLVED]i9003 internal sd card unavailable
and
this post by anplugged
Maybe I could pull this out of that looping problem and probably will fix my I9003.
Now, does anyone can put a correct guide and procedure on how to map an extenal mmc?
This is what I followed:
1. Make partition using "parted" in adb shell. Is mmcblk0 refers to the external mmc?
2. Edit "vold.fstab". Is this a compulsory?
3. Modify /etc/fstab. How?
Please, I need you help. TIA
br,
Where are you guys....................
Experts?
Anybody?
......
Vold.fstab is in the /system/etc directory, I suppose it's compulsory.
Sent from my GT-I9003 using xda app-developers app
bscraze said:
Vold.fstab is in the /system/etc directory, I suppose it's compulsory.
Sent from my GT-I9003 using xda app-developers app
Click to expand...
Click to collapse
Thanks for the reply.
If so, do i have to pull the vold.fstab from the device or just push the one that i have and already edited.
Original vold.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
######################
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard1 /mnt/sdcard/external_sd 1 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = disable
discard = enable
mbr_policy = skip
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
#end line ## keep this line
Click to expand...
Click to collapse
Edited vold.fstab
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard1 /mnt/sdcard/external_sd 1 /devices/platform/mmci-omap-hs.1/mmc_host/mmc1
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = disable
discard = enable
mbr_policy = skip
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
#end line ## keep this line
Click to expand...
Click to collapse
Please check if i'm on the right track. It's important for me to understand rather than just following the other tutorials or guide without understanding. TIA..
br,
AFAIK, you have to replace it or you cannot have any access to either sd card and not delete and copy. Maybe that will work through adb push though.
Sent from my GT-I9003 using xda app-developers app
Okay. After pushing the vold.fstab to the device, the device is still in bootloop.
I think I didnt make it right(editing the vold.fstab)
This is where I edit the file. The one with color blue (change from 0 to 1) as per this post.
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard1 /mnt/sdcard/external_sd 1 /devices/platform/mmci-omap-hs.1/mmc_host/mmc1
One thing I've notice, pc has a problem detecting the USB mass storage.
Any idea everyone?
br,

Invert Internal SDCARD to my EXTERNAL USB DISK

Hello, i'm trying to make my external USB drive inverted with the INTERNAL SDCARD, for be able to use my external 160GB drive (external powered) to data files of my games and my media. I know this is possible, and i change in my /etc/VOLD.fstab to make this. But don't work.
Anyone know, if its necessary any other thing to make this change? I really need this, because i'm making a custom android box using a MK-808B and some tools/acessories to be my htpc.
I have this now:
INTERNAL SD: 4GB
EXTERNAL SD: 8GB
USB EXTERNAL: 160GB
This is how it is by default:
dev_mount flash /mnt/sdcard auto /devices/virtual/mtd/mtd9/mtdblock9
dev_mount sdcard /mnt/ext_sdcard auto /devices/platform/rk29_sdmmc.0/mmc_host/mmc0
dev_mount udisk0 /mnt/usb_storage/USB_DISK0 auto /devices/platform/usb
And this is how i changed:
dev_mount flash /mnt/usb_storage/USB_DISK0 auto /devices/virtual/mtd/mtd9/mtdblock9
dev_mount sdcard /mnt/ext_sdcard auto /devices/platform/rk29_sdmc0/mmc_host/mmc0
dev_mount udisk0 /mnt/sdcard auto /devices/platform/usb
But, the in the storage page (settings) its showed 00 bytes, but i can access /mnt/usb_storage/USB_DISK0/udisk0 without problems... why my disk can be used to mount the NAND STORAGE for my apps data?
Thanks for the help.

[Q] modified vold.fstab

is this mod available for galaxy ace plus?if yes please upload it. thanx
Yes.. it can be use..
Open vold.fstab
Replace this lines
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard/external_sd 23 /devices/platform/msm_sdcc.3/mmc_host/
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host/
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0
#end line ## keep this line
With this lines
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard/external_sd 23 /devices/platform/msm_sdcc.3/mmc_host/
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host/
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0
#end line ## keep this line
MAKE SURE YOU MAKE BACKUP FOR VOLD.FSTAB BEFORE PROCEED
Sent from my GT-S7500 using xda app-developers app
Just a quick question, what is the benefits of modding the vold.fstab?
this is a mod to swap between internal storage with external storage.. so you can use bigger game data like gameloft data.. for me, my external storage now 14.4GB and external storage is 1.89GB after use this mod
Sent from my GT-S7500 using xda app-developers app
mohdradzi84 said:
Yes.. it can be use..
Open vold.fstab
Replace this lines
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard/external_sd 23 /devices/platform/msm_sdcc.3/mmc_host/
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host/
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0
#end line ## keep this line
With this lines
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard/external_sd 23 /devices/platform/msm_sdcc.3/mmc_host/
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host/
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0
#end line ## keep this line
MAKE SURE YOU MAKE BACKUP FOR VOLD.FSTAB BEFORE PROCEED
Sent from my GT-S7500 using xda app-developers app
Click to expand...
Click to collapse
Do you have flashable zip of vold.fstab?
About this vold.fstab, I cant install anything when im using vold.fstab mod. Am I doing it wrong? I just switched the location. If I go back to original, it got no issues. Link2sd works fine in both original and mod vold.fstab. The original file had the same fixed lun number, just need to edit the location.
Now using:
Sony Xperia tipo ST21i
stock 4.0.4
11.0.A.4.22
(rooted, locked bootloader)
Current problem:
Cant get past installing flash drivers in xp.
zzztidurvirus said:
About this vold.fstab, I cant install anything when im using vold.fstab mod. Am I doing it wrong? I just switched the location. If I go back to original, it got no issues. Link2sd works fine in both original and mod vold.fstab. The original file had the same fixed lun number, just need to edit the location.
Now using:
Sony Xperia tipo ST21i
stock 4.0.4
11.0.A.4.22
(rooted, locked bootloader)
Current problem:
Cant get past installing flash drivers in xp.
Click to expand...
Click to collapse
I don't know about sony xperia.. Coz this mod works on custom rom for samsung galaxy ace plus.. Can u upload your original vold.fstab files?
mohdradzi84 said:
I don't know about sony xperia.. Coz this mod works on custom rom for samsung galaxy ace plus.. Can u upload your original vold.fstab files?
Click to expand...
Click to collapse
Its my friends galaxy ace plus s7500. Hes on stock root 2.3.6. I will upload the file later.
Now using:
Sony Xperia tipo ST21i
stock 4.0.4
11.0.A.4.22
(rooted, locked bootloader)
Current problem:
Cant get past installing flash drivers in xp.
mohdradzi84 said:
Yes.. it can be use..
Open vold.fstab
Replace this lines
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard/external_sd 23 /devices/platform/msm_sdcc.3/mmc_host/
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host/
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0
#end line ## keep this line
With this lines
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard/external_sd 23 /devices/platform/msm_sdcc.3/mmc_host/
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host/
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0
#end line ## keep this line
MAKE SURE YOU MAKE BACKUP FOR VOLD.FSTAB BEFORE PROCEED
Sent from my GT-S7500 using xda app-developers app
Click to expand...
Click to collapse
I cant find a single difference between both the lines...:/
they are perfectly same....
DUDE WHAT THE HELL???
prayagmukhi said:
I cant find a single difference between both the lines...:/
they are perfectly same....
DUDE WHAT THE HELL???
Click to expand...
Click to collapse
Open your eyes clearly at /lun1/ and /lun0/
You'll see the differences..
Sent from my GT-S7500 using my finger
Sent from my GT-S7500 using xda app-developers app
It must be root first right?
Sent from my ST26i using xda app-developers app
zzizikri said:
It must be root first right?
Sent from my ST26i using xda app-developers app
Click to expand...
Click to collapse
Of course it must be rooted.. u need root acces to modified files in 'system/etc' folder..
Sent from my GT-S7500 using my finger.
mohdradzi84 said:
Of course it must be rooted.. u need root acces to modified files in 'system/etc' folder..
Sent from my GT-S7500 using my finger.
Click to expand...
Click to collapse
i did changed lun0 to 1 but not getting anything changed
---------- Post added at 11:49 PM ---------- Previous post was at 11:39 PM ----------
can u upload ur vold.fstab which u modded!!!???
U need yo change both lun1 and lun0.. i can't upload yet.. coz im using mobile
Sent from my GT-S7500 using my finger.
mohdradzi84 said:
U need yo change both lun1 and lun0.. i can't upload yet.. coz im using mobile
Sent from my GT-S7500 using my finger.
Click to expand...
Click to collapse
Yes i changed both but still not working
It is changed but external is external it didn't get swaped
Sent from my GT-S7500 using Tapatalk 2
can u share the part that u modified in here? Just from
#internal storage
Part
Sent from my GT-S7500 using my finger.
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## Regular device mount
##
## Format: dev_mount
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## - List of sysfs paths to source devices
######################
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard 23 /devices/platform/msm_sdcc.3/mmc_host/
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/msm_sdcc.1/mmc_host/
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0
#end line ## keep this line
I'll try to online with CyberCafe here so i can upload my modified vold.fstab..
Sent from my GT-S7500 using my finger.
i have done successfully ...but 1 problem is their if the apps are in system storage and when i move them to sd card ..the error message is shown your sd card is full although there is 1.8 gb free
waiting
mohdradzi84 said:
I'll try to online with CyberCafe here so i can upload my modified vold.fstab..
Sent from my GT-S7500 using my finger.
Click to expand...
Click to collapse
waiting for your reply dude!!!

Internal and External memory mislabelled/swapped

I have searched the forums and I have seen guides for swapping internal and external memory, but I'm not sure they are referring to the same problem I'm having.
My phone thinks external is internal. I have no SD card inserted, phone boots and saves perfectly fine, but Windows (with the USB drivers) and Kies both think everything is being saved on external memory when there is no external memory!
In Windows it's listed as Card and Phone, card having everything on it, phone being completely empty.
It seems I can't copy files to either in Windows now, I could before.
How do I fix it? It happened after I put Jellybean Italian Job 1 on it.
Thanks.
http://d-h.st/L2j
Download this file and usig root explorer move it to /system/etc and change permissions to rw-r--r--
Next time post in Q&A
Rooobertinhooo said:
Download this file and usig root explorer move it to /system/etc and change permissions to rw-r--r--
Next time post in Q&A
Click to expand...
Click to collapse
Ok, sorry.
Thanks.
Np, you are new here
I dunno...
Hi, so I'm a newb as well and I am actually curious if this apply to my phone. You see, my log from that file looks like this:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
## storage_struct - ex) series, "/mnt/sdcard/extStorages" / parallel
######################
# internal sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun0/file
secure_format = enable
discard = enable
}
dev_mount sdcard /storage/sdcard0 8 /devices/sdi2/mmc_host/mmc0/mmc0 encryptable_nonremovable
# external sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun1/file
supported_exfat = disable
android_secure_containers = enable
}
dev_mount sdcard1 /storage/extSdCard auto /devices/sdi0/mmc_host/mmc1/mmc1
#usb host device
{
media_type = usb
}
dev_mount sda /storage/UsbDriveA auto /devices/platform/msm_hsusb_host.0
#usb host device
{
media_type = usb
}
dev_mount sdb /storage/UsbDriveB auto /devices/platform/msm_hsusb_host.0
#usb host device
{
media_type = usb
}
dev_mount sdc /storage/UsbDriveC auto /devices/platform/msm_hsusb_host.0
#usb host device
{
media_type = usb
}
dev_mount sdd /storage/UsbDriveD auto /devices/platform/msm_hsusb_host.0
#usb host device
{
media_type = usb
}
dev_mount sde /storage/UsbDriveE auto /devices/platform/msm_hsusb_host.0
#usb host device
{
media_type = usb
}
dev_mount sdf /storage/UsbDriveF auto /devices/platform/msm_hsusb_host.0
#EOF
Thus, since I have seen thread
http://forum.xda-developers.com/showthread.php?t=1757767
where the file looks different, I ask you, is your file goning to work on my phone? I run the Portuguese TMN Jelly Bean.
ekhem...
Pardon me for being rude, however the issue is of great gravity for me. Is there anybody who can ease the pressing pain in the skull of my phone?

[Q][FSTAB] i9300 internal sd card corrupted partly solved help with fstab

Hello
i want to say on beginning that i spend whole day reading related topics so please read on before asking me to search the forum.
I had problem on i9003 with internal memory. It couldnt mount mmcblk0p3 if i remember well.
So after reading lot of topics i modfied vold.fstab and just changed
Code:
# internal sdcard
{
mount_deep = 1
ums_path = /sys/devices/platform/musb_hdrc/gadget/lun0/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard1 /mnt/sdcard/external_sd 1 /devices/platform/mmci-omap-hs.1/mmc_host/mmc1
# externel sdcard
{
mount_deep = 0
ums_path = /sys/devices/platform/musb_hdrc/gadget/lun1/file
asec = disable
discard = enable
mbr_policy = skip
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc0
TO
Code:
# internal sdcard
{
mount_deep = 1
ums_path = /sys/devices/platform/musb_hdrc/gadget/lun0/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard1 /mnt/sdcard/external_sd 1 /devices/platform/mmci-omap-hs.1/mmc_host[B]/mmc0[/B]
# externel sdcard
{
mount_deep = 0
ums_path = /sys/devices/platform/musb_hdrc/gadget/lun1/file
asec = disable
discard = enable
mbr_policy = skip
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/mmci-omap-hs.0/mmc_host/[B]mmc1[/B]
after few reflash and full wipes the phone started. It was in bootloop earlier. Now nearly everything is fine. But in settings>storage it shows both SDCARD and USB storage as unavaiable. It is logical as it is now mounted to the not-working internal storage. How to mount these two (usb storage and external sd ) to the 2 partitions on the sdcard? What format they need to be?
To sum up i have now phone booting from SDCARD which partitions looks like these:
I guess after flashing stock XWLF2 i lost root for now.
Thanks in advance , please help AFAP.

Categories

Resources