[HOWTO] Mount 4th partition (CM7 Boot disk) as SD Card on Stock - Barnes & Noble Nook Tablet

Are you using a CM7 boot disk and another OS? By default the B&N stock will mount the first partition of the SD card. This is not what we want, as the 4th partition is the one where we are going to be storing data.
In order to change the mount point you need to edit the vold.fstab file located in /system/etc
You will find a line that points to the sd card for mounting:
Code:
dev_mount sdcard /mnt/sdcard auto auto /devices/platform/usb_mass_storage/lun1/devices/platform/mmci-omap-hs.1/mmc_host/mmc0
Change the first "auto" to 4. This defines the 4th partition for mounting. As seen in the following:
Code:
dev_mount sdcard /mnt/sdcard 4 auto /devices/platform/usb_mass_storage/lun1/devices/platform/mmci-omap-hs.1/mmc_host/mmc0
Now reboot your device and you should now have access to the 4th partition in the stock android OS.

Related

[Q] Incorrect mounting sd card [CyanogenMod7.1.0.1 REPACK]

Incorrectly mounts the external sdcard in CyanogenMod7.1.0.1 REPACK.
The external card is connected as primary, and the internal sdcard as an extra.
After editing Vold.fstab, the situation changes slightly for the better. Now, the internal memory to get sdcard, and the external is not mounted at all.
P.S: Search the forums gave only what you need to edit Vold.fstab.
Here is the content of my Vold.fstab file:
Code:
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
dev_mount sdcard2 /mnt/sdcard2 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount usbdisk /mnt/usbdisk auto /devices/platform/tegra-ehci
CM 7 by default mounts a "real" SDCard as /sdcard and any other storage (internal) as /emmc.
I believe it first became an option in CM7.1 that you can change this mounting (switch it so the internal storage is mounted as /sdcard ) in CyanogenMod Settings.
You no longer need to edit/modify the vold.fstab file.

[Q] Vold.fstab modding - need help

Hi guys. I've been keeping this to myself for some time but now I'm no longer can bear it anymore. So here I am, asking for a bit of help.
What I want to do is quite easy, which is changing the External SD card to become Internal SD Card (mound point /mnt/sdcard/internal_sd ), and making physical microSD (which can be pulled in/out) as my External SD card (mount point /mnt/sdcard/ )
Here's what I've discovered so far..
Code:
Modded LG O2X vold.fstab file
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
Stock LG O2X vold.fstab file
# Internal SD card
dev_mount emmc /mnt/sdcard 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
# External SD card
dev_mount sdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
Stock SGS2 vold.fstab file
# internal sdcard
dev_mount sdcard /mnt/sdcard 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
# external sdcard
dev_mount emmc /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
# USB storage device
dev_mount usbdisk /mnt/sdcard/usbdisk auto /devices/platform/s3c_otghcd/usb
So how do I rewrite the stock SGS2 vold.fstab file so that it'll look and function like modded LG O2X I've mention above?
Hi,
I never tried to do that and to be honnest I don't really need it so I won't try...
But according to the example you provided for LG, I would say that the SGS2 should be modded like that:
Code:
# First mount external sdcard in /sdcard
dev_mount emmc /mnt/sdcard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
# The mount internal sdcard in sub folder /sdcard/_InternalSD
dev_mount sdcard /mnt/sdcard/_InternalSD 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
# Then mount USB storage as it is done by default
dev_mount usbdisk /mnt/sdcard/usbdisk auto /devices/platform/s3c_otghcd/usb
If you really want to try, do it at your own risk !!
I hope this would help.
Cheers
so i just need to edit and overwrite the vold.fstab file right? no need to make flashable ZIP?
Searching xda forum returned the following method:
you will need to update the vold.fstab on the xoom to fix the issue.
adb pull /etc/vold.fstab
edit vold.fstab .........
........
save the file, and go back to the command line
adb remount
adb push vold.fstab /etc/vold.fstab
abd reboot
Click to expand...
Click to collapse
I found it on a topic not related to i9100 but vold.fstab is part of Android system so it should be a standard way to update it...
I do recommend you to do a full backup before to do that...
source: http://forum.xda-developers.com/showthread.php?t=1093720

[S] Acer Iconia B1 A71 SD internal to External Swap

[Solved] SD internal to SD external Swap
Required
ROOT
i installed FX explore (free)
and installed the FX explore root addon also free
You must have root to edit the etc/vold.fstab file ok
all you have to do is edit the etc/vold.fstab file and swap the items marked in red ok then save and reset the iconia with a pin next to power button
when it reboots you will have the external sdcard as the main internal memory and the old internal memory will be shown as the new external sdcard this gives you a internal memory upto 32 gig
the guide..
gain root
install fx explorer and root addon
run fx explorer
when it opens click on the System(root) icon
a popup will ask to confirm root access click ok
open the folder etc
scroll to find file volt.fstab
at the bottom you will see menu items file , view , Tools , windows, click on tools item
select the option mount read-write
on the popup tick i understand the risk and then ok
tap on vold.fstab and a open with box pops up select text editor
look at the text and you will see 2 lines that do not start with a #
those are the 2 lines you need to edit
only 4 edits are required ok
on the first line to edit swap the first 2 0s to 1s
on the 2nd line to edit swap the first 2 1s to 0s
check below to see what it should look like and make sure yours looks the same
then after you have edited it select the menu item file and hit save
reboot your iconia and enjoy all that extra space to install crap to
this is what it looks like BEFORE the edit
dev_mount sdcard /storage/sdcard0 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
this is what it looks like AFTER the edit
dev_mount sdcard /storage/sdcard1 [email protected] /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /storage/sdcard0 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.1/mmc_host
below is my edited file ok
Code:
## 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 /storage/sdcard[COLOR="Red"]1[/COLOR] [email protected] /devices/platform/goldfish_mmc.[COLOR="Red"]1[/COLOR] /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /storage/sdcard[COLOR="Red"]0[/COLOR] auto /devices/platform/goldfish_mmc.[COLOR="Red"]0[/COLOR] /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
notes
if you do this and then remove the sdcard the iconia will still boot but will have no internal sdcard as the original internal sd will still be set as external sd.
also any apps you have installed on the sd card you have removed will still show up on the iconia desktop but if you click to run one it will say NOT INSTALLED
just reinsert the sdcard and all will work . the reason im saying this is i have 2 32 gig sdcards and have the desktop setup in folders so i can switch sdcards and run apps
that are on the current inserted sdcard this gives me almost unlimited storage .
..
screen shot of storage after swapping
What about the content of the internal sd and external sd. will it get wiped?
Can i add this external swap as a feature to my python script?
entonjackson said:
What about the content of the internal sd and external sd. will it get wiped?
Can i add this external swap as a feature to my python script?
Click to expand...
Click to collapse
No it did not wipe any thing ' but if you copy the contents of the internal drive to the external drive before you alter the volt.fstab file all installed apps are OK if you don't then when you click an app on the desktop it says app not installed as it looks at he wrong sdcard for app folder
So if your script could maybe format the 32 gig SD card then copy the contents of the internal over then do the volt.fstab edit then reboot I'm sure
That would work - bear in mind you have to have root to do the as you have to unmount and remount read write to alter the /etc/volt.fstab
But I'm very happy to test Any script that may be written ,
Maybe the script could have it as a menu option so you can run it . And even have the option to restore it back ?
Dave
bullbrand said:
No it did not wipe any thing ' but if you copy the contents of the internal drive to the external drive before you alter the volt.fstab file all installed apps are OK if you don't then when you click an app on the desktop it says app not installed as it looks at he wrong sdcard for app folder
So if your script could maybe format the 32 gig SD card then copy the contents of the internal over then do the volt.fstab edit then reboot I'm sure
That would work - bear in mind you have to have root to do the as you have to unmount and remount read write to alter the /etc/volt.fstab
But I'm very happy to test Any script that may be written ,
Maybe the script could have it as a menu option so you can run it . And even have the option to restore it back ?
Dave
Click to expand...
Click to collapse
Thanks for the info.
Yes I want to do something like a Iconia B1 toolkit, including the rooting features i currently have in the python script.
If I add this Internal SD <-> External SD Swap feature, of course i would add options to
backup data from external sd
format external sd
revert to default fstab
entonjackson said:
Thanks for the info.
Yes I want to do something like a Iconia B1 toolkit, including the rooting features i currently have in the python script.
If I add this Internal SD <-> External SD Swap feature, of course i would add options to
backup data from external sd
format external sd
revert to default fstab
Click to expand...
Click to collapse
that would be an excellent tool
and as more features get discovered am sure the tool could grow even more
ps
i had a look at the engineer mode.apk but cant figure out how to call directly the -> Connectivity -> CDS Information -> Network Utility
or even any way to run the engineer mode without running a dial app to enter the #*#*3646633#*#* , would be sweet if it could be directly called
as the script would not require any user input . maybe someone (pawit) can figure out a command to fire up engineer mode and run the
/data/local/tmp/busybox telnetd -l /system/bin/sh -p 1234 in one step ?.
shame we can't get our own forum here for the B1 i have requested one but got no response .
I think at least i could call the engineer mode apk, as this is possible with the adb shell, but of course it would be awesome to switch to the network utility.
pasting the command into that line and invoke the Run button seems to be impossible.
bullbrand said:
[Solved] SD internal to SD external Swap
tou must have root to edit the vold.fstab file ok
all you have to do is edit the vold.fstab file and swap the items marked in red ok then save and reset the iconia with a pin next to power button
when it reboots you will have the external sdcard as the main internal memory and the old internal memory will be shown as the new external sdcard this gives you a internal memory upto 32 gig
only 4 edits are required ok
swap the 0s to 1s
swap the 1s to 0s
this is what it looks like before the edit
dev_mount sdcard /storage/sdcard0 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
this is the original vold.fsab file on iconia
just find the 2 lines and edit the 4 parts marked in red
below is my edited file ok
Code:
## 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 /storage/sdcard[COLOR="Red"]1[/COLOR] [email protected] /devices/platform/goldfish_mmc.[COLOR="Red"]1[/COLOR] /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /storage/sdcard[COLOR="Red"]0[/COLOR] auto /devices/platform/goldfish_mmc.[COLOR="Red"]0[/COLOR] /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
Click to expand...
Click to collapse
Hi Bullbrand,
Can u help me to make step by step.
What app requirment ?
Where is the file vold.fstab
How to change file permission ,
Etc.
Thanks for your sharing.
Note : system already rooting
Regards
From Newbie
youps.
Done I am using Root Explorer, very easy....
Regrads
Just a noob question.. This is like in the older phones we make a partition in the sd card to use it as our internal memory for more apps? Or this is like ONLY using our external sd card as our internal sd memory? Does this lag the tablet because i remember that when you make a partition on the sd card it tends to lag
Eduardogv said:
Just a noob question.. This is like in the older phones we make a partition in the sd card to use it as our internal memory for more apps? Or this is like ONLY using our external sd card as our internal sd memory? Does this lag the tablet because i remember that when you make a partition on the sd card it tends to lag
Click to expand...
Click to collapse
No , the phone has 1 gig internal always and all this does is swap what it installs the main app data to I'm using a class 10 32 gig SD and there is no speed difference IMO the only diffance is I can now install more apps before. Get the running out of space message ,
It works well for me OK.
cakadut said:
Hi Bullbrand,
Can u help me to make step by step.
What app requirment ?
Where is the file vold.fstab
How to change file permission ,
Etc.
Thanks for your sharing.
Note : system already rooting
Regards
From Newbie
Click to expand...
Click to collapse
great to see you managed the edit ok.
i have updated the first post with a step by step guide to doing it for anyone else trying to do this ok..
dave
hye there, i love your work for tablet iconia b1, just a question, can i use quite same method on other device? for swap sd for sure.
Yes no reason you can't
bullbrand said:
Yes no reason you can't
Click to expand...
Click to collapse
With android commander this is a peace of cake, you can do it on your computer, copy and paste the lines in,remove the old, reboot, finished.
Did it a long time ago, and you have a benefit, sometimes your tablet/phone has a problem and won't start, get out the SD card, find the error, remove it, and voila... most of the time when you remove an app, it leaves garbish.. with the sdcard in my computer I can clean up the mess
trouble
i am having trouble gaining root access i have downloaded the programs and add on but it says i do not have root access how is this granted??
Can you make a flasheable zip please?
Enviado desde mi GT-I8160 usando Tapatalk 2
here explain how to install V6 rooteados phone. Perfect for managing memory ram
http://forum.xda-developers.com/showthread.php?p=40747730
Enviado desde mi GT-I8160 usando Tapatalk 2
bullbrand said:
No , the phone has 1 gig internal always and all this does is swap what it installs the main app data to I'm using a class 10 32 gig SD and there is no speed difference IMO the only diffance is I can now install more apps before. Get the running out of space message ,
It works well for me OK.
Click to expand...
Click to collapse
Question: Is possible to Increase the internal storage?

mount sdcard to /sdcard

is there anyway to mount the real sdcard to /sdcard?
i tried to edit the vold.fstab, but it just bootloop on the animation.
http://forum.xda-developers.com/showpost.php?p=23347641&postcount=14
he is mounting to "/mnt/sdcard" while i used "/sdcard"
Code:
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
where should it be mount to or is it because of different phone?
sams-roots said:
is there anyway to mount the real sdcard to /sdcard?
i tried to edit the vold.fstab, but it just bootloop on the animation.
http://forum.xda-developers.com/showpost.php?p=23347641&postcount=14
he is mounting to "/mnt/sdcard" while i used "/sdcard"
Code:
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
where should it be mount to or is it because of different phone?
Click to expand...
Click to collapse
/sdcard is normally a symbolic link pointing to /storage/emulated/legacy
There's an internal "sdcard" that normally gets mounted onto /mnt/shell/legacy from /init.qcom.rc - that's symlinked to /storage/emulated/legacy in that same file. It also appears to start up a daemon that re-mounts the internal "sdcard".
What are you trying to do? Normally the external SDcard is mounted to /mnt/extSdCard, so you should just store data there rather than /sdcard.
(Or /mnt/sdcard, /mnt/shell/legacy, /storage/emulated/legacy, or any of the other things simlinked to the internal sdcard.)

[Q] Mount Multi SDCard Partitions

I've partitioned my sdcard with minitool and now I'm trying to edit vold.fstab to mount the second partition but I'm getting nowhere.
This is the line that mounts the first partition:
Code:
dev_mount sdcard /mnt/sdcard2 auto /devices/platform/mtk-sd.1/mmc_host
This works unless I change auto to 1 which then tells me my sdcard is damaged.
The line for the second partition is based on this:
Code:
dev_mount sdcard /mnt/sdcard/sdcard auto /devices/platform/mtk-sd.1/mmc_host
I created a mount point on the internal storage for now. I've changing the mtk-sd.? number and auto but nothing's working.
Any ideas? Where can I find the correct device pathname? And why don't explicit partition numbers work for me?

Categories

Resources