using microsd as /sdcard (script?) - Galaxy Note 10.1 General

Is there any script or mod to use the microSD as /sdcard (Internal memory)?
there is one for the S3: http://forum.xda-developers.com/showthread.php?t=1772234
Is it possible to port this to the GT-N8010 ?
this is the script for stock kernel, fat32:
Code:
#!/system/bin/sh
#extsd2internalsd is a modification that allows to switch internal sd to external sd and viceversa. With this you can use default internal sd only for app storage #and the external sd to store all apps resource and all others stuff. The resut is a very big increase of installable apps on gs3
#All credits to Mattiadj of xda forum for the idea and script and to mike1986 for the cmw zip.
#xda thread url at
sleep 10
mount -o remount,rw /
mount -t vfat -o umask=0000 /dev/block/vold/179:17 /mnt/sdcard
mount -t vfat -o umask=0000 /dev/block/vold/179:17 /storage/sdcard0
sleep 30
mount -o bind /data/media /mnt/extSdCard
mount -o bind /data/media /storage/extSdCard
chmod 777 /mnt/extSdCard
sleep 30
mkdir -p /mnt/extSdCard/external_sd/sdcard1
touch /mnt/extSdCard/external_sd/.nomedia
sleep 10
mount -o bind /storage/sdcard0 /mnt/extSdCard/external_sd/sdcard1
exit
edit: nevermind I found it.
http://forum.xda-developers.com/showthread.php?t=1857391

Related

[Q][possable solution found??][universal??] data2ext

I have made a file to mount an sdcard second partition to "/data". It needs to go in "/system/etc/init.d/". Can some have a look to tell me if it would work or not as I don't have a partition sdcard.
-Download link: http://db.tt/paxqo1b
Code:
#!/system/bin/sh
if [ -e /dev/block/platform/msm_sdcc.1/by-num/p2 ]
then
busybox mount -o rw,remount -t yaffs2 /dev/block/mtdblock10 /;
busybox umount /data;
busybox mount /dev/block/platform/msm_sdcc.1/by-num/p2 /data;
busybox chown system system /data;
busybox chmod 771 /data;
busybox mount -o ro,remount -t yaffs2 /dev/block/mtdblock10 /;
fi;
Why would you want the whole data partition on the sdcard? It will ruin it a lot quicker, and also slow the phone down if the card isn't fast enough.
Jack

[WTF][4.2.2] "mount -o remount ro /" doesn't work but "mount -o remount,ro /" does??

[WTF][4.2.2] "mount -o remount ro /" doesn't work but "mount -o remount,ro /" does??
Mod: You can delete this thread... Sorry, I was so nervous about that....
Hey Guys,
I was developing on my kernel in init.rc and I recognized that / doesn't get remounted read-only in my script.
I couldn't understand that. The command runs, but / don't get mounted ro. WTF???!
So I tested a bit and here is what I found out:
Code:
mount -o remount rw /
remounts / rw.
Code:
mount -o remount ro /
Doesn't remount / read-only.
Instead,
Code:
mount -o remount,ro /
works.
What the hell is going on here??!? I am using Android 4.2.2. Also happens with stock-kernel. Can someone confirm this?
I am pretty sure I used the old command on Android < 4.2.2 and it worked. Or?!
It doesn't matter if you use toolbox or busybox.
Thanks,
vorcers
Edit:
ahh,
Code:
mount -o remount /
remount's / rw. That solves the mystery. :silly:
This also happens on real systems. I think there is some bug in mount / the remount option. Because any word behind remount and prior / is ignored / no error. Instead, if you swap ro and remount, mount prints errors.

[MOD] extsd2internalsd - anyone got it working on s4 yet?

On my Note 2 - I use the script below in my system/etc/init.d folder which makes the phone think the microsd card is the internal drive - awesome way to overcome the 16gb limitation.
#!/system/bin/sh
sleep 5
busybox mount -o remount,rw /
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:49 /mnt/sdcard
if busybox mount | busybox grep vold/179:49; then
busybox mount -o bind /data/media /mnt/extSdCard
fi
Anyone got something similar working on S4 yet (I'm waiting on my S4 to arrive)?
i'm waiting on something like this
Yes you can use folder mount from play store. Needs to be rooted first.
Sent from my GT-N7100 using xda premium
mikehayes said:
On my Note 2 - I use the script below in my system/etc/init.d folder which makes the phone think the microsd card is the internal drive - awesome way to overcome the 16gb limitation.
#!/system/bin/sh
sleep 5
busybox mount -o remount,rw /
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:49 /mnt/sdcard
if busybox mount | busybox grep vold/179:49; then
busybox mount -o bind /data/media /mnt/extSdCard
fi
Anyone got something similar working on S4 yet (I'm waiting on my S4 to arrive)?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2263914
thank me if i helped
the only thing i want is extsd2internalsd to work on my i9500! the hell with all this single file or folder moving. that app changes the entire cards. it worked great on my s3, and now i am looking for it for my new s4.

CIFS Script on GT-I9500 GAlaxy S4

Hi,
So I made a script to try and mount CIFS storage to my Galaxy S4 in the system file directory at boot. I have a WIFI and a 3G version both are giving me trouble. All apps I have tried fail cause none have an option to mount a system folder.
Any ways here are my scripts:
for 3G
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mkdir /system/cifs
mkdir /system/cifs/localMountDir
busybox mount -t cifs //IPADDRESS:445/ /system/cifs/localMountDir -o unc=\\\\IPADDRESS:445\\,username=X,password=X
was not sure if I need to specify a port (445) or not..either way I cannot connect it says no such device
WIFI script:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mkdir /system/cifs
mkdir /system/cifs/localMountDir
busybox mount -t cifs //192.168.0.150/b /system/cifs/localMountDir -o unc=\\\\192.168.0.150\\b,username=X,password=X
Again i tried this with & without port no luck
I have been able to connect via ANDSMB app while over wifi (not over 3 G yet) so I know the above information should connect at least when on WIFI.
Using this guys blog post for inspiration
http://www.wyattspace.com/2013/08/1...ount-cifs-network-samba-shares/#comment-28381

MicroSD mmcblk1p1 Ext4 mount, set permission, vold

I've an SM-N910F with rooted TouchWiz 6.0.1 XXS1DPK1 and I'm finding big problems on properly mount (or better to say "manage") my Ext4 formatted MicroSD.
I run:
Code:
mkdir /data/media/extSdCard
chown root:sdcard_rw /data/media/extSdCard
chmod 775 /data/media/extSdCard
mount -w -t ext4 /dev/block/mmcblk1p1 /data/media/extSdCard
The card is now mounted and accesible but vold daemon still can't see it. Without vold maybe the volume is unknown to all apps and effectively unusable out of just file transfer ...
Is there a way to force vold daemon to manage it?? Or am I doing some mistake on mounting properly my Ext4 formatted MicroSD?
Thanks for helping ...

Categories

Resources