Link2SD doesn't work on Marshmallow: No such file or directory Due to my displeasure with the new SD card as internal storage of Marsmallow, I decided to switch back to Link2SD, something which I had been using on previous versions of Android. However, there's a problem. If I try to create the mount scripts for my partitioned SD card, I get the following error:

Mount script cannot be created

mount: '/dev/block/vold/179:66'-&gt;'/data/sdext2': No such file or directory


Does anybody know how to get Link2SD to work on the Marshmallow?
Marshmallow internal storage can be better used with a mixed-format SD card as I also explain in my blog here:

http://blog.sam.liddicott.com/2016/02/android-6-semi-adopted-storage.html

First, you need adb working.


Have SD card inserted and formatted as portable.
Eject your SD card from the Storage &amp; USB menu
Use "adb shell" to list your adoptable storage:


like this

$ adb shell sm list-disks adoptable

disk:179_64


disk:179_64 is my SD card that can be made adoptable, I want 75% as external SD:

$ adb shell sm partition disk:179_64 mixed 75


Note: Your card may be listed with a comma instead of an underscore, e.g. disk:179,64 in which case, that is what you type:

$ adb shell sm partition disk:179,64 mixed 75



This will erase the entire SD card, giving 75% as portable storage and the rest as adopted internal storage.
Reboot your phone.
From Storage &amp; USB menu, select the SD card (internal) and choose Migrate Data (so that apps, where possible, are installed there).
From the Storage &amp; USB rename the adopted storage to have some name like Adopted otherwise if it has the same name as the external storage partition, the USB MTP view may only show the internal