[Q] Question About Swap Memories With vold.fstab

Search This thread

LuckyStrike88

Senior Member
Oct 1, 2012
183
53
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

Senior Member
Oct 8, 2007
90
9
Swap External w/ Internal. Success!!

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 [B][COLOR="Red"]sdcard[/COLOR][/B] /storage/[B][COLOR="Red"]sdcard0[/COLOR][/B] 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 [B][COLOR="red"]sdcard1[/COLOR][/B] /storage/[B][COLOR="red"]extSdCard[/COLOR][/B] 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 [B][COLOR="Blue"]sdcard1[/COLOR][/B] /storage/[B][COLOR="Blue"]extSdCard[/COLOR][/B] 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 [B][COLOR="Blue"]sdcard[/COLOR][/B] /storage/[B][COLOR="Blue"]sdcard0[/COLOR][/B] 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    /[B][COLOR="Red"]sdcard[/COLOR][/B]
    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    /[B][COLOR="Blue"]extSdCard[/COLOR][/B]
    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.
 

Attachments

  • 1_Storage.jpg
    1_Storage.jpg
    166 KB · Views: 429
  • 2_Storage.jpg
    2_Storage.jpg
    195.8 KB · Views: 394
Last edited:

LuckyStrike88

Senior Member
Oct 1, 2012
183
53
Using root explorer I do not see vold.fstab in system/etc.

I'm currently running the latest carbon nightly (4.3)
 

sergio2007

Senior Member
Oct 8, 2007
90
9
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!
 

LuckyStrike88

Senior Member
Oct 1, 2012
183
53
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.
 

LuckyStrike88

Senior Member
Oct 1, 2012
183
53

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Swap External w/ Internal. Success!!

    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 [B][COLOR="Red"]sdcard[/COLOR][/B] /storage/[B][COLOR="Red"]sdcard0[/COLOR][/B] 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 [B][COLOR="red"]sdcard1[/COLOR][/B] /storage/[B][COLOR="red"]extSdCard[/COLOR][/B] 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 [B][COLOR="Blue"]sdcard1[/COLOR][/B] /storage/[B][COLOR="Blue"]extSdCard[/COLOR][/B] 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 [B][COLOR="Blue"]sdcard[/COLOR][/B] /storage/[B][COLOR="Blue"]sdcard0[/COLOR][/B] 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    /[B][COLOR="Red"]sdcard[/COLOR][/B]
        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    /[B][COLOR="Blue"]extSdCard[/COLOR][/B]
        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.
    1
    https://github.com/CyanogenMod/andr...mmit/d63bd455f4ef664263dda0986bbfee3d3907de31

    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.