Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,823 Members 42,165 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Question About Swap Memories With vold.fstab

Tip us?
 
LuckyStrike88
Old
#1  
Senior Member - OP
Thanks Meter 41
Posts: 168
Join Date: Oct 2012
Default [Q] Question About Swap Memories With vold.fstab

I'm running CM10.1 RC1, stock kernel and am interested in swapping memories. I can find threads about this for other phones but so far nothing for the i717. I have a class 10 sandisk 64gb card in fat32 currently and would LOVE to be able to use that as my phone storage for apps. So does anyone have experience editing vold.fstab for these phones? Any help is greatly appreciated.



inb4 16gb is plenty etc etc etc
 
sergio2007
Old
(Last edited by sergio2007; 19th June 2014 at 11:50 PM.)
#2  
sergio2007's Avatar
Member
Thanks Meter 9
Posts: 89
Join Date: Oct 2007
Default Swap External w/ Internal. Success!!

Quote:
Originally Posted by LuckyStrike88 View Post
I'm running CM10.1 RC1, stock kernel and am interested in swapping memories. I can find threads about this for other phones but so far nothing for the i717. I have a class 10 sandisk 64gb card in fat32 currently and would LOVE to be able to use that as my phone storage for apps. So does anyone have experience editing vold.fstab for these phones? Any help is greatly appreciated.
Just in case anyone else besides you reads this post: First, you need a rooted AT&T Galaxy Note I717, second you need the Root Explorer app (it's a couple of bucks in the market, but definitely worth it).

With Root Explorer, make back-ups of the following two files, system/etc/vold.fstab, and system/etc/vold.conf. Once backed up, then proceed to modified the code in red, see below:

vold.fstab original
Code:
## Vold 2.0 Generic fstab
## - San Mehat (san@android.com)
## 

#######################
## 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/lun/file
	secure_format = enable
	discard = enable
}
dev_mount sdcard /storage/sdcard0 28 /devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0 encryptable_nonremovable

# external sdcard
{
	ums_sys_path = /sys/class/android_usb/f_mass_storage/lun_ex/file
	supported_exfat = yes
        android_secure_containers = enable
}
dev_mount sdcard1 /storage/extSdCard auto /devices/platform/msm_sdcc.3/mmc_host/mmc2/mmc2

#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
vold.fstab modified
Code:
## Vold 2.0 Generic fstab
## - San Mehat (san@android.com)
## 

#######################
## 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/lun/file
	secure_format = enable
	discard = enable
}
dev_mount sdcard1 /storage/extSdCard 28 /devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0 encryptable_nonremovable

# external sdcard
{
	ums_sys_path = /sys/class/android_usb/f_mass_storage/lun_ex/file
	supported_exfat = yes
        android_secure_containers = enable
}
dev_mount sdcard /storage/sdcard0 auto /devices/platform/msm_sdcc.3/mmc_host/mmc2/mmc2

#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
vold.conf original
Code:
## vold configuration file for the emulator/SDK

volume_sdcard {
    ## This is the direct uevent device path to the SD slot on the device
    emu_media_path /devices/platform/goldfish_mmc.0/mmc_host/mmc0

    media_type     mmc
    mount_point    /sdcard
    ums_path       /devices/platform/usb_mass_storage/lun0
}
vold.conf modified
Code:
## vold configuration file for the emulator/SDK

volume_sdcard {
    ## This is the direct uevent device path to the SD slot on the device
    emu_media_path /devices/platform/goldfish_mmc.0/mmc_host/mmc0

    media_type     mmc
    mount_point    /extSdCard
    ums_path       /devices/platform/usb_mass_storage/lun0
}
Once the files are modified and saved, reboot your phone, and check your storage. It should look similar to mine (see attached thumbnails).

Now, if all went well, it's time to move all the files from the current extSdCard (the old sdcard) to the current sdcard (the old extSdCard). Again, open Root Explorer, transfer all the files, and if you feel like it now, you can format your new external SD Card and have more room for anything else.

I hope this is helpful.
Attached Thumbnails
Click image for larger version

Name:	1_Storage.jpg
Views:	70
Size:	166.0 KB
ID:	2807519   Click image for larger version

Name:	2_Storage.jpg
Views:	48
Size:	195.8 KB
ID:	2807520  
AT&T Galaxy Note I717 Padawan JB4 Rom
The Following 3 Users Say Thank You to sergio2007 For This Useful Post: [ Click to Expand ]
 
LuckyStrike88
Old
#3  
Senior Member - OP
Thanks Meter 41
Posts: 168
Join Date: Oct 2012
Using root explorer I do not see vold.fstab in system/etc.

I'm currently running the latest carbon nightly (4.3)
 
LuckyStrike88
Old
#4  
Senior Member - OP
Thanks Meter 41
Posts: 168
Join Date: Oct 2012
Anyone?
 
sergio2007
Old
#5  
sergio2007's Avatar
Member
Thanks Meter 9
Posts: 89
Join Date: Oct 2007
Quote:
Originally Posted by LuckyStrike88 View Post
Using root explorer I do not see vold.fstab in system/etc.

I'm currently running the latest carbon nightly (4.3)
I'm befuddled!? In Root Explorer go to the highest Parent folder, and perform a search for "vold". It will probably take about 5 minutes to search your entire phone, but those two files are bound to pop up somewhere.

Good luck!
AT&T Galaxy Note I717 Padawan JB4 Rom
 
LuckyStrike88
Old
#6  
Senior Member - OP
Thanks Meter 41
Posts: 168
Join Date: Oct 2012
Quote:
Originally Posted by sergio2007 View Post
I'm befuddled!? In Root Explorer go to the highest Parent folder, and perform a search for "vold". It will probably take about 5 minutes to search your entire phone, but those two files are bound to pop up somewhere.

Good luck!
The only thing that comes up is system/bin/vold but no vold.fstab

I have the setting on which shows hidden files too, definitely odd.
 
JamieD81
Old
#7  
JamieD81's Avatar
Senior Member
Thanks Meter 8,148
Posts: 3,998
Join Date: Nov 2009
Location: Duncan

 
DONATE TO ME
https://github.com/CyanogenMod/andro...bfee3d3907de31

it was removed in 4.3 with this commit, removed in favor of the new minivold method or something along those lines. you wont see it again.
**Its not a bug its an undocumented feature.**

My inbox is NOT a help desk.
G+: JamieD81
Donate: JamieD81
*appreciated and cherished*
The Following User Says Thank You to JamieD81 For This Useful Post: [ Click to Expand ]
 
sergio2007
Old
#8  
sergio2007's Avatar
Member
Thanks Meter 9
Posts: 89
Join Date: Oct 2007
Default [Q]Where is Vold.Fstab on Android 4.3?

Quote:
Originally Posted by LuckyStrike88 View Post
The only thing that comes up is system/bin/vold but no vold.fstab

I have the setting on which shows hidden files too, definitely odd.
...and the mystery thickens...I just found this. Hopefully, it works: http://forum.xda-developers.com/show....php?t=2426804
AT&T Galaxy Note I717 Padawan JB4 Rom
 
LuckyStrike88
Old
#9  
Senior Member - OP
Thanks Meter 41
Posts: 168
Join Date: Oct 2012
Quote:
Originally Posted by JamieD81 View Post
https://github.com/CyanogenMod/andro...bfee3d3907de31

it was removed in 4.3 with this commit, removed in favor of the new minivold method or something along those lines. you wont see it again.
10-4, at least I'm not losing my mind

Not the end of the world at this point I'm most likely Note 3 bound anyway.

Thanks for clearing it up and to Sergio for the help as well.
 
GT247
Old
#10  
GT247's Avatar
Senior Member
Thanks Meter 1,574
Posts: 1,614
Join Date: Jun 2010
Location: Beautiful California
Awesome

Would you happen to know if this is only for jb or might work for ics?
Be curious. Read widely. Try new things. What people call intelligence just boils down to curiosity.
― Aaron Swartz -- Nov 1986 - Jan 2013 - Rest In Peace - You are remembered -

Tags
vold.fstab
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes