SD as internal storage - Modifying the vold.fstab file - Huawei Ascend P6, Mate

She could anyone help with editing vold.fstab to exchange storage to the SD card as an internal storage? :good:
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
## Vold 2.0 fstab for HTC Dream or Sapphire
#
## - 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
######################
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/ext_sdcard auto /devices/platform/hi_mci.0/mmc_host/mmc1
dev_mount usbotg /mnt/usb auto /devices/hisik3-usb-otg/usb1

Can't fins this file?
Where is it located?

DonCarlosis said:
Where is it located?
Click to expand...
Click to collapse
Location:
system/etc/vold.fstab
I still use ROM B116 , where you can set the internal storage , I would like to use ROM B118 , but there is the possibility to use the SD card as an internal storage is not .
Interestingly, vold.fstab is the same in the B116 and the B118
I do not understand

Related

Steal any file from unrooted phone

Since my old thread got moved to general I will re-post here - You can delete the one in general or I can.
Kies air allows alot of stealing of UNROOTed Android files.. so take what you want from the unrooted : )
<KIES IP>:8080 - before each
LIST any directory
/ws/content/files/<PATH>?startIndex=0
i.e. /ws/content/files/etc?startIndex=0
Lists /etc and all subfolders/files
GET any file
/www/apps/KiesAir/php/ws_send_file.php?mtype=application/octet-stream&contentDisposition=attachment&file=<FILE URL ENCODED>
i.e.
/www/apps/KiesAir/php/ws_send_file.php?mtype=application/octet-stream&contentDisposition=attachment&file=%2Fetc/%2Fhosts
GETs /etc/hosts
Good luck.. oh and if you want your battery status...
/ws/system/state/battery
---------- Post added at 05:57 AM ---------- Previous post was at 05:45 AM ----------
On the GO USB is in FSTAB! WOOT! If it wasn't /dev/zero???
## 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/lun0/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
# external sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/virtual/block/cyasblkdevblk0
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/s3c_otghcd/usb
#end line ## keep this line
Moving this thread to General as it's not development, just a way to use an app to take things from an unrooted phone.
There is already a ROM dump - http://forum.xda-developers.com/showthread.php?t=1262697 - so that can be used to get the files you want/desire.
how to?

MIUI v4 2.8.10 Swap Internal & External Memory (for games)

Hi everyone, my bad english. My system Miui v4. I want to play games, but insufficient memory. Example GTA III or Six Guns. I want to install external memory. But i could not. Help me please, thank you.
i try vlod, but phone was a bootloop.
that's it:
## 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
######################
# sdcard mount for the P1
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd 28 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
discard = disable
asec = disable
}
#dev_mount sdcard1 /mnt/sdcard/external_sd 1 /devices/platform/msm_sdcc.4/mmc_host/mmc2
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.4/mmc_host/mmc2
#end line ## keep this line
Click to expand...
Click to collapse
Nobody dont know? Help me please :angel:

Use an SDcard as internal storage - JellyBean

Hey guys,
This guide is how to reverse the external and internal storages, AKA, use an sdcard as internal storage, and vice versa.
I CANNOT BE HELD RESPONSIBLE IF YOU BRICK YOUR PHONE, OR DAMAGE YOUR SDCARD.
In vold.fstab, in the directory /system/etc/, you have two lines. Edit them with Root explorer's included "text editor", or any other good (root) text editor. Make sure you have r/w on. Find the below two lines:
Code:
dev_mount internal /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
and
Code:
dev_mount sdcard /storage/sdcard1 auto /devices/virtual/block/cyasblkdevblk0
Now, replace the regular lines, with the below red lines:
Code:
dev_mount internal [COLOR="red"]/storage/sdcard1[/COLOR] 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
and
Code:
dev_mount sdcard [COLOR="Red"]/storage/sdcard0[/COLOR] auto /devices/virtual/block/cyasblkdevblk0
Save, reboot your phone, and BAM, your internal is now marked as external, and your external, is now your internal
____________
This is for AOSP JellyBean
Enjoy, and press the thanks button
Hey ever since i did this, i cant seem to delete files. Do i need to un-do to be able to delete files?
Sent from my SPH-D710 using Tapatalk 2
jinwu57 said:
Hey ever since i did this, i cant seem to delete files. Do i need to un-do to be able to delete files?
Sent from my SPH-D710 using Tapatalk 2
Click to expand...
Click to collapse
Hello,
This mod will have no effect on that.
I didn't change the r/w settings. Silly me. Thanks
Sent from my SPH-D710 using Tapatalk 2
Hi,
Will this work on a galaxy tab2 7.0 with jelly bean?
I tried it but I cannot find the first line reference to internal
Thanks for your feedabck
D2dyno said:
Hey guys,
This guide is how to reverse the external and internal storages, AKA, use an sdcard as internal storage, and vice versa.
I CANNOT BE HELD RESPONSIBLE IF YOU BRICK YOUR PHONE, OR DAMAGE YOUR SDCARD.
In vold.fstab, in the directory /system/etc/, you have two lines. Edit them with Root explorer's included "text editor", or any other good (root) text editor. Make sure you have r/w on. Find the below two lines:
Code:
dev_mount internal /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
and
Code:
dev_mount sdcard /storage/sdcard1 auto /devices/virtual/block/cyasblkdevblk0
Now, replace the regular lines, with the below red lines:
Code:
dev_mount internal [COLOR="red"]/storage/sdcard1[/COLOR] 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
and
Code:
dev_mount sdcard [COLOR="Red"]/storage/sdcard0[/COLOR] auto /devices/virtual/block/cyasblkdevblk0
Save, reboot your phone, and BAM, your internal is now marked as external, and your external, is now your internal
____________
This is for AOSP JellyBean
Enjoy, and press the thanks button
Click to expand...
Click to collapse
mandylmn said:
Hi,
Will this work on a galaxy tab2 7.0 with jelly bean?
I tried it but I cannot find the first line reference to internal
Thanks for your feedabck
Click to expand...
Click to collapse
Hello,
Could you post your vold.fstab contents here in a code BBCode? I can help you then
Hi,
Here is the content of the file. Thanks in advance
# Copyright (c) 2011, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Code Aurora Forum, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
## 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 = series, "/storage/sdcard/extStorages"
#storage_struct = parallel
{
supported_exfat = yes
}
dev_mount sdcard /storage/extSdCard auto /devices/platform/omap/omap_hsmmc.0/mmc_host/mmc1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sda /storage/UsbDriveA auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdb /storage/UsbDriveB auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdc /storage/UsbDriveC auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdd /storage/UsbDriveD auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sde /storage/UsbDriveE auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdf /storage/UsbDriveF auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#EOF
D2dyno said:
Hello,
Could you post your vold.fstab contents here in a code BBCode? I can help you then
Click to expand...
Click to collapse
Wow, that's some really weird code. I wonder why they pulled it from a forum...
Anyway, yeah, as you said, I can't find the internal storage listed in any way. You could try changing the external one, to whatever the internal storage is... I really have no clue how your tablet can even have internal storage with this code... Odd.

[Q] Xperia Pro Vold.fstab problem

Hi,
I've tried to edit the vold.fstab on my xperia pro to swap the internal and the external sd.
On my Xperia sola I had no problems but on the Xperia pro I don't know what I have to change.
Is there anyone who can help me?
The vold.fstab looks like this:
## Vold 2.0 fstab for Mogami
#
## - 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
######################
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.4/mmc_host/mmc0 /devices/platform/msm_sdcc.4/mmc_host/mmc1
Thank you!
anyone who can help me?
## 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
######################
#FIXME: Swap again?
# internal sdcard
dev_mount sdcard /storage/sdcard0 auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2
# external sdcard
dev_mount emmc /storage/sdcard1 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0

problem with memory zopo zp500s

Hello everyone, as the title zopo zp500s own one and I would make sure that the smartphone would recognize only the micro SD memory as I read some guides on changing the file system / etc / vold.fstab but without success, some of you may give me a hand?
if you want I can also post the rom
Thanks in advance
Gianni
I write the file directly 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
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/sdcard [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1

Categories

Resources