Same problem with ext2 and higher, suprising it can't mount and read it as the internal memory is ext.
Same problem with ext2 and higher, suprising it can't mount and read it as the internal memory is ext.
Yes, it works, i posted the exact content of the file i have on my phone.
I have CyanogenMod 6.1.1 alpha8.3 installed and has root and busybox (with the links created so you can call mount and other commands without having to prefix the command with "busybox", but from what i understood that's standard in CM).
Also, i don't have the problem with Link2SD not seeing the partition correctly.
I've restarted the phone at least 10 times and didn't see any problems, also Links2SD always sees the partition correctly, it even shows the occupied/remaining space correctly.
I also have a swap partition, so maybe that's why in my case "/dev/block/vold/179:2;" is correct. Maybe if you don't have a swap partition then the device id would be different, for example "/dev/block/vold/179:1;"
Another reason might be that the files from init.d might be called before all initialization is done but the "99complete" file is only called after all initialisation is done.
EDIT :
also, it goes without saying that you can't run Link2SD and Apps2SD at the same time, choose either one or the other
(even if you could/can run them together, why would you want that ???)
As i said, i've created the 3 partitions from recovery (1 for Apps2SD, 1 for swap and the rest for normal use), but i didn't activate the Apps2SD from the phone.
Last edited by verszipo; 02-28-2011 at 12:47 PM.
Hi pingwin321/verszipo
My background:
Phone: HTC Legend
ROM: CM 7.0.3
Link2SD: 1.7.0
SD card partitions: 1.5GB FAT32, 0.5GB ext2, no swap
At first I thought I would have success if I followed verszipo's method of just placing 99complete in /system/etc/init.d/ (using Clockwork Recovery and adb/sdk commands from the PC), my ext2 partition still failed to load during bootup.
I wasn't comfortable in using Prime's flash update because it seem to do a lot of unnecessary stuff and I want to avoid breaking any "default" CM7 files especially when upgrading in the future.
I tried this code in 99complete:
I see that in CM7 there is a /system/etc/init.d/05mountsd which tries to mount the partition as a ext3 one under /sd-ext. It didn't seem to do any harm since I know I formatted the partition as ext2, but I learnt that it had to be removed while I used pingwin321's 06link2sd script.Code:#!/system/bin/sh sync; setprop lk.filesystem.ready 1; remount rw mkdir /data/sdext2 mount -o rw,nosuid,nodev,noatime,nodiratime -t auto /dev/block/vold/179:2 /data/sdext2 chmod 771 /data/sdext2 remount ro
pingwin321's 06link2sd worked like a charm for my Legend CM7.
Just like pingwin321, the script will not work if I try to mount /dev/block/vold/179:2, but it did work (Link2SD was able to see the partition) when I entered the command in Terminal Emulator.
I guess I'm OK now, although I'm not keen to remove 05mountsd. Thanks guys!Code:mount -o rw,nosuid,nodev,noatime,nodiratime /dev/block/vold/179:2 /data/sdext2
Last edited by lokety; 08-03-2011 at 09:52 AM.
very cool!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks