Link2SD: mounting /dev/block/vold/179:66 on /data/sdext2 failed: No such file or directory I am using a rooted Xperia Z5 Compact E5823 with the latest stock Android 6.0 ROM.
I am trying to use a 2nd partition with Link2SD but so far I always get the same &quot;No such file or directory&quot;-error:

Mount script error
Mount script cannot be created.
mount: mounting /dev/block/vold/179:66 on /data/sdext2 failed: No such file or directory

To format my microSD card I've used GParted under Debian with ext2, 3, and 4, always as primary partition. I've also used TWRP recovery to format this 2nd partition. With this I have only tried ext3, which my Debian recognizes as ext2 and there seems to be no way to choose which type of partition (I suppose they have primary as default). With TWRP I could also try ext4 but preferred to 1st post here.
I do see a /data/sdext2 folder with help of a root file browser. This folder is empty.
The &quot;file&quot; /proc/partitions does show a 179  66  2000000  mmcblk1p2 entrance, which correspond to the second partition of my external SD card.
Link2SD has superuser permissions and its mount script /data/data/com.buak.Link2SD/init-link2sd.sh looks like this:

set +e
echo &quot;$(date) mounting...&quot; &gt; $LOG
sleep 2
mount -t ext2 -o rw /dev/block/vold/179:66 /data/sdext2 1&gt;&gt;$LOG 2&gt;&gt;$LOG
mount -t ext2 -o rw /dev/block/mmcblk1p2 /data/sdext2 1&gt;&gt;$LOG 2&gt;&gt;$LOG
mount &gt;&gt; $LOG
echo &quot;$(date) mount finished&quot; &gt;&gt; $LOG
chmod 773 /data/dalvik-cache
You can use application "Apps2SD" mount a 2nd partition (after remove it and use Link2SD). (Don't use it if you only use 1 partition is sdext2) If you use android 6.0 and use both 2nd partition and "Adoptable storage" use "Root Explorer" go to path "/etc/apps2sd-mountscript.sh" edit it. Because use 2 partition, so default it use if create is "dev/block/mmcblk1p1 /data/sdext2", you change it to "dev/block/mmcblk1p2 /data/sdext2" (I use Sony M4 aqua dual)