Script is 80% ready, it just need more checks to make it safer and some testing.
Should work on CM10.1, and it wipes extsdcard.
The only con of this method you can't read sdcard directly on windows, only via mtp.
Will test this as soon as I'll buy 32 gb or 64 gb sdcard. My current 1 GB is used for backups and docs
mke2fs -t ext4 /dev/block/vold/179:49
mv /storage/sdcard0/Android /storage/sdcard1/.gros/Android
rm -fr /storage/sdcard0/Android
ln -s /storage/sdcard0/Android /storage/sdcard1/.gros/Android​
Related
I found a guide to aply apps to sd on my milestone. I got it working, but the problem is, that apps installed in the data/app-private folder doesn't show as installed. I can see that they are placed in ext2 partion on my sd card along with the other apps, that normaly installes in data/app.Here is the guide i used
After creatting a ext2 partition on my SD card, i copied ext2. To sd card along with
mot_boot_mode script
#!/system/bin/sh
export PATH=/system/bin:$PATH
mot_boot_mode.bin
insmod /data/ext2.ko
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
Then in recovery mode i entered
adb shell
su
cp /sdcard/ext2.ko /data/ext2.ko
insmod /data/ext2.ko
mkdir /data/sdapp
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
cp /data/app/* /data/sdapp/
mkdir /sdcard/sicherung
cp /data/app/* /sdcard/sicherung
rm -r /data/app
umount /data/sdapp
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
ls /data/sdapp
ln -s /data/sdapp /data/app
chmod 644 /data/sdapp/*
/data/busybox/chown -h 1000:1000 /data/app
/data/busybox/chown 1000:1000 /data/sdapp/*
/data/busybox/chown 1000:1000 /data/sdapp
insmod /data/ext2.ko
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
mount -o remount,rw / /system
mv /system/bin/mot_boot_mode /system/bin/mot_boot_mode.bin
cp /sdcard/mot_boot_mode_script /system/bin/mot_boot_mode
chmod 755 /system/bin/mot_boot_mode
Do i need to make a symbolic link in data/app-private also?
I would realy like to get this working, because i purchased a lot of apps on the marked. But i have only half of them installed. It used to work on my HTC hero. But it was allready enabled in a custom rom. And that is not possible to do on a Milestone
Thanks
Fixed it by changing app-private folder two
hey glaus...
this almost seems like a guide, hehe...
i'm trying to get apps2sd to work on my milestone as well...
i tried booting in recovery mode and entering the chain of commands you just set out....
but when i go into recovery mode, i see the reboot system option, apply sdcard:update.zip, wipe data/factory reset and wipe cache partition....
and under it, i have e: can't open /cache/recovery/command
any ideas on how to fix this or where can i enter those commands you set out?
i tried in adb shell, but i get a /data/busybox/chown is not found error when setting the permissions...
thanks!
do
crap me too and it deleted some apps 2 i really want this been trying for a week oh i have a telus milestone and get the same above error.busybox is installed and hard drive is partioned
ah crap market is gone 2 lol gotta do a nano restore......man i want this bad i even bricked my phone and brought it back to life this week arghhhh
yeah...i don't know where claus is from...but if he has a telus milestone, he's the only one i've seen been able to install apps2sd with a telus milestone
i've seen other countries, even some with the same bands as we have, but none have had the actual "telus" one....the funny thing is that i can get everything else to work..
i have titanium backup pro, emulator, root explorer and everything is at superuser access...
if claus can help, i will bear his children
edit: how the heck do you install/activate the mot_boot_mode script? I see reference to it in a few wikis on basically that's what will allow us to use apps2sd...but I have no clue how to implement it
got app2sd working on milestone using a diff method will post soon
ok i got app2sd working on my telus milestone here is how i did it if u tried this method here ur gunna have to unroot then root or use a nano backup of freshly rooted phone busybox need mot to be installed so use titanium for back up and proceed http://forum.xda-developers.com/showthread.php?t=692367
ClausG76 said:
I found a guide to aply apps to sd on my milestone. I got it working, but the problem is, that apps installed in the data/app-private folder doesn't show as installed. I can see that they are placed in ext2 partion on my sd card along with the other apps, that normaly installes in data/app.Here is the guide i used
After creatting a ext2 partition on my SD card, i copied ext2. To sd card along with
mot_boot_mode script
#!/system/bin/sh
export PATH=/system/bin:$PATH
mot_boot_mode.bin
insmod /data/ext2.ko
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
Then in recovery mode i entered
adb shell
su
cp /sdcard/ext2.ko /data/ext2.ko
insmod /data/ext2.ko
mkdir /data/sdapp
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
cp /data/app/* /data/sdapp/
mkdir /sdcard/sicherung
cp /data/app/* /sdcard/sicherung
rm -r /data/app
umount /data/sdapp
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
ls /data/sdapp
ln -s /data/sdapp /data/app
chmod 644 /data/sdapp/*
/data/busybox/chown -h 1000:1000 /data/app
/data/busybox/chown 1000:1000 /data/sdapp/*
/data/busybox/chown 1000:1000 /data/sdapp
insmod /data/ext2.ko
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
mount -o remount,rw / /system
mv /system/bin/mot_boot_mode /system/bin/mot_boot_mode.bin
cp /sdcard/mot_boot_mode_script /system/bin/mot_boot_mode
chmod 755 /system/bin/mot_boot_mode
Do i need to make a symbolic link in data/app-private also?
I would realy like to get this working, because i purchased a lot of apps on the marked. But i have only half of them installed. It used to work on my HTC hero. But it was allready enabled in a custom rom. And that is not possible to do on a Milestone
Thanks
Click to expand...
Click to collapse
fixed http://forum.xda-developers.com/showthread.php?t=692367
Hi have the problem below can anyone help.
I am in recovery console RA 1.6.2
I have CLASS6 8GIG sdcard which is new and works
and partitioned EXT3
Yes I have 7 GIG left on sdcard free
C:\AndroidSDK\tools>adb shell
/ # mount /system/sd
mount /system/sd
/ # sh /system/sd/switchrom.sh -s modacoR5
sh /system/sd/switchrom.sh -s modacoR5
/system/sd/switchrom.sh: line 7: EXTPART: not found
Storing ROM modacoR5, proceed? (y/n) y
y
Storing app data...
tar: empty archive
Error occurred during storing of app data...
tar operation failed.
Do you have enough space on the /sdcard?
this may sound stupid, but is your battery low? my recovery 1.6.2 refuses to do any task if battery is below 15%
No battery is at full capacity
Fixed problem
Used these commands instead
mount /system/sd
switchrom.sh -s modacoR5
These ones didnt work original
mount /system/sd
sh /system/sd/switchrom.sh -s modacoR5
If I were to create a 1.5gb fakesd.img ext2 file
done once, on computer
dd if=/dev/zero of=fakesd.img bs=1048576 count=1536
mke2fs -F fakesd.img
--------
done in rootfs-init
losetup /dev/block/loop2 /sdcard/fakesd.img
mount -t ext2 -o noatime,nodiratime /dev/block/loop2 /fakesd
change " symlink /mnt/sdcard /sdcard/ " in rootfs-init.rc
symlink /mnt/sdcard /fakesd/
probably want to avoid changing the external path from /mnt/sdcard/ to anything.. for compatibility sake..
I have my windows stuff on my card. I want android to index as little as possible yet still be able to access my sd card at /sdcard.. Will this work?
I have a feeling that someone is just going to tell me to partition card. I don't feel like it right now..
Partition the card Just kidding, but I like your thinking.
Trying to test it out post boot.. My router has more command line functionality, thanks Google.
hi
I have two 8GB class4 memory card but when I'm just a partition're doing very bad work
Android is reset
apps are broken
High and low speed is
And ...
But when a 2GB partition, I just work very well
Benchmarking partition is much better!
no more problem in android!
So I decided two partitions 2 and 6 GB and the second partition so I just do mount
Method:
1- Memory partitioning (first partition 2gb fat32)
2- copy android in first partition & run it
3- in android terminal type:
Code:
ls /dev/block/m*
or adb
Code:
adb shell ls /dev/block/m*
result like this:
Code:
/dev/block/mmcblk0
/dev/block/mmcblk0p1
/dev/block/mmcblk0p2
/dev/block/mmcblk0p3
Partition testing can be yours for the mount
1- make a folder (not in /sdcard & /mnt/sdcard)
Code:
mkdir /mnt/sd2
now test (for fat32): (just change mmcblk0p2)
Code:
mount -t vfat -o fmask=0000,dmask=0000,rw,flush,noatime,nodiratime /dev/block/mmcblk0p2 /mnt/sd2
(for ext2)
Code:
mount -t ext2 -o noatime,nodiratime /dev/block/mmcblk0p2 /mnt/sd2
Now the partition should be on the /mnt/sd2 mounted
and you can mount in boot
backup /init
open init and past mount cammand below this line :
Code:
PATH=/sbin:/system/sbin:/system/bin:/bin:/system/xbin:/system/xbin/bb:/data/local/bin
now we have auto mount partition
but we have one problem! we should link /mnt/sd2 > /mnt/sdcard
Who s the solution?
interesting idea. will try out.
Hello
I installed CyanogenMod 11 (M12) on my Samsung Galaxy S4 i9505 and now I have a different folderstructure as on my former Samsung Galaxy S2 with CM 10.2.1
There is an empty folder
/storage/sdcard0
which I cannot delete. I would like to create a symlink from this sdcard0 to my real internal storage:
ln -s /storage/emulated/0 /storage/sdcard0
but this is not possible because I cannot delete this folder.
What can I do?
I think I need this symlink to get working some older paths from Backup-restores from my CM 10.2 SGS2.
Any ideas?
Thank you
frank
Just rm the sdcard0. You can create a init.d script to do it automatically at every boot
Code:
#!/system/bin/sh
# A simple script to symlink internal memory to /storage/sdcard0
#
rm -rf /storage/sdcard0
ln -s /storage/emulated/0 /storage/sdcard0
Save it as 99sdsym and put in /etc/init.d (apply 0755 permissions and ownership Owner 0:root/Group 2000:shell)
Otherwise, if you don't need init.d script, run this in Terminal Emulator:
Code:
su && rm -rf /storage/sdcard0 && ln -s /storage/emulated/0 /storage/sdcard0
Inviato dal mio GT-I9505
AntaresOne said:
Just rm the sdcard0. You can create a init.d script to do it automatically at every boot...
Click to expand...
Click to collapse
Thank you muchly!
This quite didnt work on my S4 because of r/o but a little change made it work:
Code:
#!/system/bin/sh
# A simple script to symlink internal memory to /storage/sdcard0
su
mount -o remount,rw /
rm -rf /storage/sdcard0
ln -s /storage/emulated/0 /storage/sdcard0
Now again my WhatsApp images are working again
Thanks again
But moment, if you this serious about Android OS, could you hint me as well in another, maybe related issue I have with TitaniumBackup Pro?
Cannot protect (lock) the backups anymore. Getting "Sorry, the operation failed".
Tried to move the Backup folder on external sdcard from internal, but both same.
Idea of it?
Thanks
EDIT: maybe it is like in the (rare) answer of Titanium "Support" mentioned that my internal and external sd-cards, just don't have the feature to set read-only flag.
I only wonder, why this did work on the older CM 10.2.1 SGS2 phone perfectly with the internal sd-card.