[MOD] Swap SDcards mod for SGS2 CM10

Search This thread

DavisNT

Inactive Recognized Developer
Aug 27, 2011
524
730
Riga
projects.dm.id.lv
This is a simple mod that will swap SDcards (use microSD card as primary storage) on Samsung Galaxy S2 phones with Cyanogenmod 10.
With this mod microSD card will appear as primart storage (/storage/sdcard0 and /mnt/sdcard) and internal SD memory will appear as secondary storage (/storage/sdcard1 and /mnt/extSdCard).

Technically this mod updates file /system/etc/vold.fstab
Mod is flashable via recovery and is meant only for Cyanogenmod 10/10.1 (Jelly Bean).

Always make full Nandroid backup before flashing this mod!
Disclaimer: I am not responsible for anything that may happen as a result of using this mod.

I didn't find GUI option for this, so I created this mod.
P.S. If there is a GUI option or other similar mods, please post about them in this thread.
 

Attachments

  • i9100_cm10_swap_sd-signed.zip
    125.2 KB · Views: 918
Last edited:

rudolf895

Inactive Recognized Developer
Oct 11, 2010
2,519
642
IND
I just change 1's to 0's :)
Nice effort :)
Though this probably wont stay on Original Android Dev for long, general or Android Dev type.
 

markryan44

Member
Dec 6, 2010
24
3
can u make a script for galaxy s3 please? ive upgraded and i cant find any scripts, or zips. thankyouu
 
G

-ghost-

Guest
Works this on cm10.1 ? Thx

Sent from my GT-I9100 using xda premium
 

net.lander

Senior Member
Apr 20, 2011
73
14
Last edited:

DavisNT

Inactive Recognized Developer
Aug 27, 2011
524
730
Riga
projects.dm.id.lv
You should make a zip to revert also.. ;)
The best methods to get back original vold.fstab are:
  1. reflash ROM, Gapps and any other mods (without wiping data)
  2. restore full Nandroid backup, made before flashing my mod

If several users want, I can also implement a simple backup and restore functionality in my mod...
P.S. Added backup warning to original post.
 
Last edited:
  • Like
Reactions: net.lander

net.lander

Senior Member
Apr 20, 2011
73
14
hi DavisNT,
I have pm you the mount points on my S3 t-mobile SGH-T999 running CM 10.0.0 build Nov 13, 2012 with superuser access. Thanks for helping :D
....................
u0_a41@android:/ $ su
u0_a41@android:/ # mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/efs /efs ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,journal_async_commit,data=ordered,noauto_da_alloc,discard 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware vfat ro,relatime,fmask=0177,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/dm-0 /mnt/asec/com.picsel.tgv.app.smartoffice-1 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-1 /mnt/asec/com.jrummy.liberty.toolboxpro-2 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-2 /mnt/asec/org.koxx.pure_messenger-2 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-3 /mnt/asec/org.gtmedia.seekdroid-1 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-4 /mnt/asec/com.stoik.mdscan-2 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-5 /mnt/asec/com.roflharrison.agenda.plus-2 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-6 /mnt/asec/com.keramidas.TitaniumBackupPro-1 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-7 /mnt/asec/com.speedsoftware.rootexplorer-1 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-8 /mnt/asec/com.mseven.msecure-1 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-9 /mnt/asec/org.koxx.pure_calendar-2 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-10 /mnt/asec/cz.directservices.SmartVolumeControlPlus-1 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-11 /mnt/asec/com.alexvas.dvr.pro-1 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-12 /mnt/asec/com.Relmtech.RemotePaid-1 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-13 /mnt/asec/com.psyrus.packagebuddypro-1 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-14 /mnt/asec/com.liveov.shotux-1 ext4 ro,dirsync,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
u0_a41@android:/ #
 
Last edited:

samukinson

Senior Member
Oct 28, 2008
54
10
this script isn't running anymore on CM10.2 resp. Android 4.3.
Any updates on this?

cheers!
 

abdo_pepo

Member
Feb 23, 2013
17
0
Nice but any app apk I like this as app not mod please get app for this not explorer

Thanks

تم الإرسال من جهازي GT-I9100 بواسطة تاباتوك 2
 

encik_racun

Senior Member
Apr 10, 2012
906
179
This will work with cm10.1.3 for galaxy S2 i9100G???

Sent from my GT-I9100G using xda app-developers app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    This is a simple mod that will swap SDcards (use microSD card as primary storage) on Samsung Galaxy S2 phones with Cyanogenmod 10.
    With this mod microSD card will appear as primart storage (/storage/sdcard0 and /mnt/sdcard) and internal SD memory will appear as secondary storage (/storage/sdcard1 and /mnt/extSdCard).

    Technically this mod updates file /system/etc/vold.fstab
    Mod is flashable via recovery and is meant only for Cyanogenmod 10/10.1 (Jelly Bean).

    Always make full Nandroid backup before flashing this mod!
    Disclaimer: I am not responsible for anything that may happen as a result of using this mod.

    I didn't find GUI option for this, so I created this mod.
    P.S. If there is a GUI option or other similar mods, please post about them in this thread.
    1
    You should make a zip to revert also.. ;)
    The best methods to get back original vold.fstab are:
    1. reflash ROM, Gapps and any other mods (without wiping data)
    2. restore full Nandroid backup, made before flashing my mod

    If several users want, I can also implement a simple backup and restore functionality in my mod...
    P.S. Added backup warning to original post.