[Galaxy Note II Android Development] KrzysztofGW:
I am wondering if you still work on ext4 support for ExtSdCard. There is a nice thread ([MOD] 1-Click Flashable exFAT + NTFS + EXT4 support for CM10.1/AOSP + Partitioned SD!). NTFS worked fine for me, but I tried to use ext4... The script can mount it, but there are several problems with operations on files ex. I can copy files, but I cannot delete them (on mobile) or I can delete them from my PC, but I cannot copy anything - device is busy

I posted debug.txt in the thread, but I also think it can be helpful here.

[fuse-mountsd v6.2] exFat+NTFS autorepair and mount script (HMkX2 CORE//XDA)
Automated mounting and repair of alternate SD fs on GS3 CM10.1 [+AOSP Roms!]

(1) Checking for MTDblock: (no)
(2) Checking for mmcblk0: (YES)
(3) Checking for mmcblk1: (YES)
(4) Checking for SECONDARY_STORAGE: (YES)
(5) Checking for EXTERNAL_STORAGE: (YES)
(6) Checking for rw-able /storage: (n/a)
(7) Checking for rw-able /: (no)

<<mmcblk1 exists..>>

You are running CM10.1 / 4.2+ ?
Enabling ADB code...

You have teh 4.2.2+ ADB RSA bug -- poor you.
Setting flag to apply the workaround...
major minor #blocks name

7 0 5229 loop0
7 1 2111 loop1
7 2 2111 loop2
7 3 5229 loop3
7 4 2111 loop4
7 5 2111 loop5
7 6 7308 loop6
7 7 16664 loop7
179 0 15388672 mmcblk0
179 1 4096 mmcblk0p1
179 2 4096 mmcblk0p2
179 3 20480 mmcblk0p3
179 4 4096 mmcblk0p4
179 5 4096 mmcblk0p5
179 6 4096 mmcblk0p6
179 7 8192 mmcblk0p7
179 8 8192 mmcblk0p8
179 9 8192 mmcblk0p9
179 10 90112 mmcblk0p10
179 11 4096 mmcblk0p11
179 12 1400832 mmcblk0p12
179 13 2097152 mmcblk0p13
179 14 573440 mmcblk0p14
179 15 8192 mmcblk0p15
259 0 11141120 mmcblk0p16
179 32 2048 mmcblk0boot1
179 16 2048 mmcblk0boot0
179 48 30657536 mmcblk1
179 49 30650368 mmcblk1p1
254 0 5229 dm-0
254 1 2110 dm-1
254 2 2110 dm-2
254 3 5229 dm-3
254 4 2110 dm-4
254 5 2110 dm-5
254 6 7308 dm-6
254 7 16663 dm-7
7 8 2111 loop8
254 8 2110 dm-8
rootfs / rootfs rw,noatime 0 0
tmpfs /dev tmpfs rw,nosuid,noatime,mode=755 0 0
devpts /dev/pts devpts rw,noatime,mode=600 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
proc /proc proc rw,noatime 0 0
sysfs /sys sysfs rw,noatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,noatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,noatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,noatime,mode=755,gid=1000 0 0
/dev/block/dm-0 /mnt/asec/com.flavionet.android.camera.pro-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-1 /mnt/asec/com.anddoes.fancywidgets.unlocker-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-2 /mnt/asec/com.anddoes.launcher.pro-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-3 /mnt/asec/com.asksven.betterbatterystats-2 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-4 /mnt/asec/com.maxmpz.audioplayer.unlock-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-5 /mnt/asec/pl.solidexplorer.unlocker-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-6 /mnt/asec/com.wolfram.android.alpha-2 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-7 /mnt/asec/com.endomondo.android.pro-2 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-8 /mnt/asec/com.speedsoftware.rootexplorer-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
tmpfs /mnt/obb tmpfs rw,noatime,mode=755,gid=1000 0 0
tmpfs /mnt/fuse tmpfs rw,noatime,mode=775,gid=1000 0 0
/dev/block/mmcblk0p13 /system ext4 ro,noatime,commit=1,barrier=0,data=ordered,noauto_da_alloc,discard 0 0
/dev/block/mmcblk0p3 /efs ext4 rw,nosuid,nodev,noatime,barrier=1,journal_async_commit,data=ordered 0 0
/dev/block/mmcblk0p12 /cache ext4 rw,nosuid,nodev,noatime,errors=panic,commit=1,barrier=0,journal_async_commit,data=ordered 0 0
/dev/block/mmcblk0p16 /data ext4 rw,nosuid,nodev,noatime,commit=1,barrier=0,journal_async_commit,data=ordered,noauto_da_alloc,discard 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
tmpfs /storage/emulated tmpfs rw,nosuid,nodev,relatime,mode=050,gid=1028 0 0
/dev/block/mmcblk1p1 /storage/sdcard1 ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
/dev/fuse /storage/emulated/0 fuse rw,nosuid,nodev,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/0/Android/obb fuse rw,nosuid,nodev,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy/Android/obb fuse rw,nosuid,nodev,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/dm-8: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/dm-7: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/dm-6: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/dm-5: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/dm-4: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/dm-3: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/dm-2: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/dm-1: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/dm-0: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/vold/179:49: UUID="b37e2f1f-f638-ce01-906e-2e1ff638ce01" TYPE="ext4"
/dev/block/mmcblk1p1: UUID="b37e2f1f-f638-ce01-906e-2e1ff638ce01" TYPE="ext4"
/dev/block/mmcblk0p16: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p14: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p13: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p12: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p3: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"

/dev/block/mmcblk0p13 /system

NOGO Zone set as: ( -e mtdblock -e mmcblk0)
Analyzing /proc/partitions structure:
Index 0 is: 179 48 30657536 mmcblk1
Sub-partition detected at mmcblk1 / mmcblk1p1
Index 1 is: 179 49 30650368 mmcblk1p1

~~~~~~~~~ Beginning FS Logic ~~~~~~~~~
Index (0) - [/dev/block/mmcblk1p1ext4mount -t ext4-o rw,nosuid,nodev,noatime,barrier=1e2fsck]

~~~~~~~~~ Beginning Test Mount/Repair ~~~~~~~~~
Scrub received for searchSTR ( /storage/sdcard1 )
Scrubbing mount table of entries (on) [on device /dev/block/mmcblk1p1]
Attempting ADB mount check of (on)...
ADB RSA Key workaround enabled
Shifting some encryption keys around...
Scanning /data/misc/adb/adb_keys for localhost key
Localhost key not in allowed adb_keys, adding it manually
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
connected to localhost:5556
Verifying ADB connection:
List of devices attached
localhost:5556device

Smashing ADB command: mountpoint on
mountpoint: on: No such file or directory

Command smashed. (1)
Result is (1)
on is not mounted. (OK)
===== [Cycling /dev/block/mmcblk1p1] =====
Scrub received for searchSTR (/dev/block/mmcblk1p1 )
Scrubbing mount table of entries (on) [on device /dev/block/mmcblk1p1]
Attempting ADB mount check of (on)...
Smashing ADB command: mountpoint on
mountpoint: on: No such file or directory

Command smashed. (1)
Result is (1)
on is not mounted. (OK)

Attempting test mount of /dev/block/mmcblk1p1 at /mnt/secure/staging:
(/dev/block/mmcblk1p1)(ext4) (mount -t ext4) (-o rw,nosuid,nodev,noatime,barrier=1) (e2fsck)
mount: mounting /dev/block/mmcblk1p1 on /mnt/secure/staging failed: Device or resource busy
Test mount failure, reason unknown. (Nonempty? Bad header? Wrong FS?)
BROKEN BROKEN BROKEN - Debug is enabled. Header is as follows:
00000000 00 00 00 00 00 00 00 512 bytes (512B) copied, 0.000069 seconds, 7.1MB/s

Unmounting and running repair command [e2fsck]
e2fsck 1.41.14 (22-Dec-2010)
e2fsck: need terminal for interactive repairs
Attempting (1) remount, else skipping entirely
mount: mounting /dev/block/mmcblk1p1 on /mnt/secure/staging failed: Device or resource busy
I tried. It failed. Removing from mount queue.
Test mount/repair failure. Removing element.
Error! No FUNCTIONAL filesystems after test mounts!
Exiting!

Resetting ADB loopback connection/root security to PRIOR...

The error is the same - device busy...