yashsingh1/xdaforums huggingface dataset:
[Sony Xperia L] cojocar.andrei:
Check if you have in the /etc/init.d directory the 00link2sd script. For this script to work you need a rom with a working init.d (otherwise this won't work obviously...). If you have the script there, then check if you see a directory /data/sdext2 (if this directory is missing, but you have the 00link2sd script in the /etc/init.d directory, then this means you don't have init.d support in the rom). If you partition your sdcard correctly then the second ext4 partition of you sdcard should me mounted in the /data/sdext2 directory ... All these you need to check before installing the link2sd app...
[Sony Xperia L] Option58:
Awesome! Thank you. I'll try this :)
[Sony Xperia L] mikelektro:
I have the init.d folder, but it seems the sdext2 folder was only created after I installed the link2sd app.

I tried doing it all over again, but it still doesnt work, same messages...
[Sony Xperia L] cojocar.andrei:
Then your rom doesn't have init.d support. You need a kernel/rom (more precisely a ramdisk) with init.d support to use this ... The rr573 supports init.d ... Try it with this one ...
[Sony Xperia L] mikelektro:
Thx! Which do you recommend? I've tried several in the last two or three months. Now I'm running AOSP-OMS.

I ran slim, RR and CM 13 beta before without any problems, just the storage issue.
[Sony Xperia L] cojocar.andrei:
I've just told you. RR573. For a completely working camera on this one just replace a camera library... Search the rr thread...

Sent from the center of the galaxy
[Sony Xperia L] recoman:
I use rom AOSP OMS . file zip working?

Brick and problem other ?

Thx you building script .

Thx advanced
[Sony Xperia L] Option58:
I am on stryflex MM ROM and TWRP 3.0.2.

I formatted internal storage as ext4, then flashed mm-partition-swapper.zip.

Says that there is no ext4fs partition and I tried reboot recovery and my phone is dead now, can't turn it on...

I don't blame you, I blame myself for trying. But please help. Flashtool doesn't recognize flash mode. :(

Don't use this method. Not safe.
[Sony Xperia L] cojocar.andrei:
Sorry to hear this. If the script gave you this error then the script did nothing to your phone. It just aborted the procedure because it did not find the sdcard formated as ext4. It must be the twrp version. I'm using twrp 2.8.7.0 by barbarosa. I think twrp 3.0.2 does not support formatting the internal sdcard as ext4. Most pobably the twrp version 3.0.2 formated something else as ext4 or whatever instead of internal sd... I did not know this. Sorry again...

Try to search the brick threads. If you still have a blue light when in flashmode I think you still have a chance to resurect it...

Sent from the center of the galaxy
[Sony Xperia L] cojocar.andrei:
I've modified the post to warn people of this twrp version. So, people, use only twrp 2.8.x.x to format the internal sdcard. I'm using 2.8.7.0 twrp version by Barbarosa. I don't know if other twrp versions support ext4 on internal sdcard.

Sent from the center of the galaxy
[Sony Xperia L] newguyknowsnothing:
Thanks for the solutions. So now if I only need to swap internal sd and /data, i just need to flash 3rd script? I'm quite confusing about partitioning and memory stuffs :D
[Sony Xperia L] cojocar.andrei:
You have to have twrp 2.8.7.0, then format internal sdcard as ext4 (wipe settings) and then flash the zip...

Sent from the center of the galaxy
[Sony Xperia L] Option58:
Yes, formatting internalSD as ext4 is tricky. My recovery was broken. Probably formatted something else. It wasn't your script.

However I have no volume up button on my phone (fell out) - no fastboot. And just volume down button (flash mode) and a somewhat broken USB cable. Phone not recognized by flashtool at all...
[Sony Xperia L] newguyknowsnothing:
Ok thanks! One more question, If I somewhat want to undo this, I need to back up the current MM rom before flashing the script? Will the internal sd and /data automtically be swapped back when I restore the back up?
[Sony Xperia L] cojocar.andrei:
After swapping the partitions your old backups of the rom will not work anymore (or probably they would just revert the swapping. Anyway if you want to restore a backup that's been done prior to swap it's better to format back by hand the internal sdcard to vfat and data to ext4)

For backing up a rom with swapped partitions you'll have to select the sdcard instead of data partition in the backup options... I did not try it yet...

Sent from the center of the galaxy
[Sony Xperia L] cojocar.andrei:
I don't know, sorry. You have to search the brick threads...

Sent from the center of the galaxy
[Sony Xperia L] mikelektro:
I ran the the link2sd enabler script on my rr573, works like a charm now.

Thank you so much, I needed this!

Didn't swapped the storages yet.
[Sony Xperia L] ConceptBR:
The dream is real!

Congratulations.

Seeking a long time for a script like mm-partition-swapper.zip

Before seeing your post, I had already made the formatting of SD0 (ext4) to try to install Link2SD to work with SD0 without work.

I used the TWRP 3.0.2.

I could easy return the partition to FAT.

I intend to make a clean installation of ROM on my device to then install your mm-partition-swapper.zip script.

As both the "DATA" as SD0 are empty you still think need to format with TWRP 2.8.7?

No way to change this script without the data transfer?

Only formatting partitions and inverted mounts?

If not necessary then ok...but... please clear this my doubts.

Again without getting tired ... very thank you even for your script.
[Sony Xperia L] cojocar.andrei:
I think the instructions are clear. Install your rom as usual, let it boot (you can set it up) then from twrp format the internal sd as ext4 and right after this flash the zip. Someone bricked his phone trying to format the internal sd as ext4 from twrp ver. 3.0.2. I have the 2.8.7.2 version by Barbarosa and the formatting worked without a glich...

Sent from the center of the galaxy
[Sony Xperia L] mohsen788:
hi this partition swapper not work on rr574 please update it

thanks
[Sony Xperia L] cojocar.andrei:
What's the error of the script at flash time?
[Sony Xperia L] mohsen788:
could not patch fstab is patch already applied?

Updater process ended with ERROR:7

Error installing zip file '......./mm-partition-swapper.zip
[Sony Xperia L] cojocar.andrei:
Yeah, ok, I'll look into it ...
[Sony Xperia L] ConceptBR:
Yes I have the same error.

Result after ZIP

Script not create new "SD0" with 1.57 GB of space.

The new DATA is used 3 GB but not know cause.
[Sony Xperia L] ConceptBR:
The mm-partition-swapper.zip script displays a little before the error report that there is no free space on the SD1 (2GB) to pass data despite the SD1 just be empty (only has the script itself) (Ex-SD 8GB ).

The script could just swap partitions. Do not attempt to transfer the files. The partitions are empty after installing a new ROM.

So it would be even easier to implement.

When installing the new ROM for the TWRP, would suffice only defines 3 zips in sequence:

- Zip the new ROM;

- Zip GAPPS;

- Zip-mm partition-swapper

Simple for you. Only the swap partition will already be revolutionary for the device user.
[Sony Xperia L] cojocar.andrei:
Yes, this is true, but I'm not going to do the changes, take it as it is or you could improve it yourself... I did discover that the ramdisk is packed differently in rr574 so a new updated script must be used on this rom. I'll modify it and update the thread ...
[Sony Xperia L] cojocar.andrei:
New flashable script for partition swap compatible with rr574:

http://www13.zippyshare.com/v/OJgmWmKu/file.html

This wasn't tested by me but it should patch the boot of the rr574. If it does not succeed then probably the script will abort with no consequences ...

If it works I'll update the link2sd-enabler to be compatible with rr574 ...
[Sony Xperia L] ConceptBR:
Excuse me. I just wanted to help.

To restore the original state of the ROM RR574 best would be to install it again or not necessary?
[Sony Xperia L] cojocar.andrei:
No problem. Not necessary ...
[Sony Xperia L] ConceptBR:
Well...Unfortunately, the same problem.

Now I can not reinstall RR.

When I install RR can not access SDCARD. (Mmcblk0p32)

Already I restored the ROM Stock and tried again to install the RR and not getting results.

At the moment I use the STOCK ROM.

Any suggestion?
[Sony Xperia L] cojocar.andrei:
Same result of the script? Failed cannot patch boot?
[Sony Xperia L] ConceptBR:
After script.

Before reinstall RR several occasions.

I verify RR ROM ZIP. Not Plobem.

SD0 is visible for stock ROM.
[Sony Xperia L] cojocar.andrei:
Sorry I don't understand. Did you have some error when you flashed the swap zip file? ... Did you boot the rom after you flashed the zip? Have the rom booted ok. If yes, can you list the fstab.qcom file of the rom after you flashed the script ...
[Sony Xperia L] ConceptBR:
# Android fstab file.

# The filesystem that contains the filesystem checker binary (typically /system) cannot

# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

#TODO: Add 'check' as fs_mgr_flags with data partition.

# Currently we dont have e2fsck compiled. So fs check would failed.

#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1 wait

/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc wait,check,encryptable=footer

Is Ext4 in Sd0 problem for install RR Rom?

---------- Post added at 11:26 AM ---------- Previous post was at 11:20 AM ----------

TWRP not format this partition...

Using stock Rom format partition.

I do new test...
[Sony Xperia L] cojocar.andrei:
Is this your fstab after you flashed the zip ? If yes, then it does not look right. I'll going to take a second look over it and test it on my computer when I have some time ...
[Sony Xperia L] ConceptBR:
The TWRP was unable to format the partition that SD0 was EXT4.

With the ROM format Stock got back to vFAT.

I will make a new attempt to RR installation so go home.
[Sony Xperia L] ConceptBR:
TIP: SD 0 partition must be in the format vFAT but can not install the ROM RR.

Strange was the TWRP refused to format the partition. With the ROM Stock format SD 0 got back to vFAT.

Problem Resolved. Installed RR ROM.

My Fstab file (RR ROM).

This in the correct format?

I can proceed with the installation?

# Android fstab file.

# The filesystem that contains the filesystem checker binary (typically /system) cannot

# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

#TODO: Add 'check' as fs_mgr_flags with data partition.

# Currently we dont have e2fsck compiled. So fs check would failed.

#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>

/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults recoveryonly

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1 wait

/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=/persist/footer

/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs rw,nosuid,nodev,noatime,nodiratime,inline_xattr wait,formattable,check,encryptable=/persist/footer

/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,journal_async_commit,errors=panic wait,check

/dev/block/platform/msm_sdcc.1/by-name/cache /cache f2fs rw,nosuid,nodev,noatime,nodiratime,inline_xattr wait,check

/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel /recovery emmc defaults defaults

/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 nosuid,nodev,barrier=1
[Sony Xperia L] cojocar.andrei:
Yes. Format sd0 as ext4 and then flash the zip... See if it gives any error...

Sent from the center of the galaxy
[Sony Xperia L] ConceptBR:
Strange was the TWRP refused to format the partition.

Problem Resolved.

I can proceed with the installation?
[Sony Xperia L] ConceptBR:
FSTAB with problem.

# Android fstab file.

# The filesystem that contains the filesystem checker binary (typically /system) cannot

# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

#TODO: Add 'check' as fs_mgr_flags with data partition.

# Currently we dont have e2fsck compiled. So fs check would failed.

#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>

/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults recoveryonly

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1 wait

/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=/persist/footer

/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs rw,nosuid,nodev,noatime,nodiratime,inline_xattr wait,formattable,check,encryptable=/persist/footer

/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,journal_async_commit,errors=panic wait,check

/dev/block/platform/msm_sdcc.1/by-name/cache /cache f2fs rw,nosuid,nodev,noatime,nodiratime,inline_xattr wait,check

/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel /recovery emmc defaults defaults

/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 nosuid,nodev,barrier=1

---------- Post added at 12:16 AM ---------- Previous post was at 12:09 AM ----------

/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto _da_alloc,journal_async_commit,errors=panic wait,check,encryptable=/persist/footer

/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=/persist/footer
[Sony Xperia L] cojocar.andrei:
Yep. It does not look good, I'll take another look over the updated script today and post an update...

Sent from the center of the galaxy
[Sony Xperia L] cojocar.andrei:
Yep, there were some problems in the patch_boot.sh script. I wrote it blindly, haven't tested it before on my comp. Here is the update of the update :):

http://www64.zippyshare.com/v/DnDa5Wh6/file.html
[Sony Xperia L] ConceptBR:
The problem continues.

If mounting the partition is already correct is the following question:

I thought if he already set up the partition on my device, what does this occupying the 3 GB?
[Sony Xperia L] cojocar.andrei:
Have you done all the steps? Sorry, if this isn't working for you. Try with the old script and rr573. I'm using rr573 and I'm not going to update soon as this is working ok for me...

Another suggestion is to switch to twrp 2.8.7.0, maybe twrp 3.0.2 is mounting directories in another way which I didn't take into account... All the tests were done on twrp 2.8.7.0...

Sent from the center of the galaxy
[Sony Xperia L] hendryslh:
Same with other, eror when try to instal

i'm using zd kernel and rr m.7.4 hope u can fix this soon. thx :)

cojocar.andrei can i see ur strorage info ?
[Sony Xperia L] cojocar.andrei:
Try the old script with twrp 2.8.7.0 and rr573. I'm not going to update soon to rr574. Also you can try the updated script with rr574, but with twrp 2.8.7.0 ...
[Sony Xperia L] ConceptBR:
I have had 3 different recoverys installed and lost count of the ROMs.

I believe that some of them have slightly altered my partition structure.

Nothing so serious that does not allow installing the stock ROM, but inconvenient enough to hinder the execution of your script.

I think that could solve two problems with one action.

Could you make me a copy of boot.img on your device and send it to me, please?
[Sony Xperia L] cojocar.andrei:
You can find an archive with the twrp backup of my boot partition at:

http://www86.zippyshare.com/v/MoqiM9lL/file.html

I'm running rkernel above rr573 ...
[Sony Xperia L] ConceptBR:
Thank you.

My Hard Disk is dead.

As soon as I repare my computer, I'll do the test. Because in case of any failure will have to restore the ROM Stock.

Thank you again.
[Sony Xperia L] hendryslh:
Once again, it's not working. Im using rr 573 twrp 2.8.7.0, and partition 10 gb fat 32 and the rest for 2sd partition ext 4 (around 4-5 gb).
[Sony Xperia L] Option58:
For TWRP 3.0.2.0 formatting internal storage as ext4 leads to a hard brick! They told me in service that a new motherboard is needed for 45$. I decided to buy a new phone instead. Please watch out!
[Sony Xperia L] cojocar.andrei:
Did any of you guys which tried the original script or the updated one succeeded in making this work? If not, I'll try to make a debug script to see what is happening on your end... I don't know why this fails on your end. Could be that you're missing the /dev/block/bootdevice/by-name/boot path in your twrp version?
[Sony Xperia L] STRYDER~007:
I don't think that's true. I recently formatted my internal storage as ext4 and my device is still alive! :)
[Sony Xperia L] Option58:
You used 3.0.2.0?
[Sony Xperia L] STRYDER~007:
Yep.
[Sony Xperia L] mikelektro:
Any chance this will work on a Anroid 7.X based ROM?
[Sony Xperia L] RynOs:
My BL is not unlockable and i'm stuck on stock rom with the Z3-Stryder. Can I install these scripts?

Thank u for all what u did
[Sony Xperia L] cojocar.andrei:
No

Sent from the center of the galaxy
[Sony Xperia L] cojocar.andrei:
They need to be accomodated for 7.x. They were desingned for rr573 which I'm still using without a problem...

Sent from the center of the galaxy
[Sony Xperia L] RynOs:
Thank u. I tried and the phone keeps rebooting when making a second partition into sdcard1 with vfat or ext4.

Also, is it normal if I format the sdcard0 with ext4 and when the phone boots normally it becomes fat32 ?

I need ext4 because of an app that its data contains a colon (:) in its filename and it's an invalid character in vfat
[Sony Xperia L] AndroGeek17:
Im not sure this will work. Last time i flashed my Xperia L internal storage as ext4 , the mobile was hard-bricked. Fastboot , Flashboot are not working. Laptop is not able to detect it. So please post a detailed and step wise solution. Once you format the internal storage , there is nothing you can do except throwing away the mobile.

---------- Post added at 02:50 PM ---------- Previous post was at 02:46 PM ----------

Same thing happened with me. I lost my Xperia L. It is completely dead now. No fastboot , no flashmode.
[Sony Xperia L] AndroGeek17:
After reading so many posts regarding " expanding the /data partition " , I fear that the risks of permanently bricking the device are very high. Does this method increases " app storage " which is limited to 1.57 GB or just swaps the partitions? If the partition is not formatted properly , the device gets completely bricked. No Flashmode , No Fastboot mode , no recovery. So I just want to request you to mention all the prerequisites including " recovery (specific version) , initial rom , etc." and some more clarifications about things we can do after that such as " can we use the custom rom of our choice or we have to stick to a specific one? Is it possible to restore the original image or not? And any other risks involved. "

Please dont mind me asking too many questions , but i just dont want to lose my device. So help me . Thanks !!!
[Sony Xperia L] AndroGeek17:
Please help !!!

Have you successfully completed this modification? After reading so many posts regarding " expanding the /data partition " , I fear that the risks of permanently bricking the device are very high. If the partition is not formatted properly , the device gets completely bricked. No Flashmode , No Fastboot mode , no recovery. So I just want to request you to mention all the prerequisites including " recovery (specific version) , initial rom , etc." and some more clarifications about things we can do after that such as " can we use the custom rom of our choice or we have to stick to a specific one? Is it possible to restore the original image or not? And any other risks involved. "

Please dont mind me asking too many questions , but i just dont want to lose my device. So help me . Thanks !!!
[Sony Xperia L] cojocar.andrei:
Hi,

The script just swaps the /data partition with the sdcard0 one. It worked for me as I still use the phone this way now on my RR573 MM rom. I'm using TWRP 2.7 by Barbarosa. Yes the risk of bricking the device while formatting the sdcard0 as ext4 seems to be very high. Some people succeded in doing this, some ended up with a brick, so I'm advising you NOT to do it. Just use the link2sd script and the link2sd app or something similar (link2sd does not link the dex file still in mm).

I found myself once l, while testing the scripts, in a situation when I needed to flash stock while having the sdcard0 formatted as ext4 and the flashing succeded, the phone reverted to stock...

App2sd pro is another app that links2sd, buy back then when I tested it, it had bugs, maybe they are ironed out now (this one links the dex as well)

Sent from the center of the galaxy
[Sony Xperia L] shadow.a9:
Any one have the latest mm-partition-swapper file ?? :rolleyes:

It' have been deleted from zippyshare servers :(
[X Play Q&A, Help & Troubleshooting] Sachin7843:
Can I get Locked Bootloader instead of relocked bootloader? I want to give it to the service centre for some hardware problem!
[General Questions and Answers] bhairavnath:
Hi,

there is a small problem I have Windows 8.1 64 bit laptop when I connect my android phone recently the memory card does not show in my computer explorer window. Earlier it was showing. So upon googling I came across a few blogs where a common suggestion was to uninstall the USB driver for android memory card and reinstall it. When I reached on device manager I am not able to understand which

is the usb connection for my android phone memory card , that I should uninstall.

Here is a screenshot

Please suggest how to identify which device driver to uninstall and reinstall in the image or if I should do any thing else the phone is Samsung Galaxy E5

Android 5.1.1

Image is on this link add http colon slash slash i.stack.imgur.com/hbdNo.jpg

(new members can't post link or snapshot etc)
[Lenovo A850] Mini2Fan:
As said in the title
[Android Q&A, Help & Troubleshooting] tomjpsir:
I really need help. How to create *.img livesuit from backup my rom dump? Anyone help me please. Cos I can not use Linux. cant find stockrom. Help me convert dump rom to *img flashable Livesuit.

>> Dump Rom here: drive.google.com/file/d/0BzaaNIJodRv-cHduU0lMUDFDVDQ/view

Model: Joypad c102 9.7' Boxchip A10 sun4i

ro.build.id=IMM76D

ro.product.model=Joypad C102

ro.product.brand=06602

ro.product.name=crane_m1003h6

ro.product.device=crane-m1003h6

ro.product.board=crane

ro.build.product=crane-m1003h6

ro.build.description=crane_m1003h6-eng 4.0.4 IMM76D 20120913 test-keys

ro.build.fingerprint=06602/crane_m1003h6/crane-m1003h6:4.0.4/IMM76D/20120913:eng/test-keys

Thanks for advance.
[HTC One S] ChocoFruit:
Hi all,

I have a HTC One S. This is what my bootscreen shows:

*** TAMPERED ***

*** UNLOCKED ***

VLE PVT SHIP S-ON RL

HBOOT-2.15.0000

RADIO-1.11.50.05.28

OPENDSP-v31.1.0.45.0815

eMMC-boot

Currently there is no system on it. I got it as a "gift" because it is currently in a boot loop (HTC Splash Screen with the red writing under it, after a few mins it reboots and again.. and again).

I tried to install twrp (Version:twrp-2.3.3.0-ville and twrp-3.0.2-0-ville), but I cannot boot into revocery (Same as above, HTC Splash Screen with red writing, reboot, and reboot..)

Here is how I installed twrp:

Startet the device with power button and volume down

selected FASTBOOT

fastboot devices, lists the device as "HT23JW403327 fastboot"

fastboot flash recovery twrp.img

fastboot reboot

Then I tried to go into this "HBOOT" Mode again, selected "RECOVERY" but still, it keeps showing me the HTC Splash Screen (red writing under it) and after a time it reboots.

So I kinda don't know how to go on from here.

Is there a chance I can revive the device? :)

Thanks!