The sd card damaged errors go away if you place the fat32 partition first followed by / then /data. I modified /init within initramfs.cpio.gz and /init.rc to reflect the new partition order. I did not make any changes to /etc/vold.fstab.
With these changes, Settings/Storage, Files, Music, and Video application show the sd card correctly. Mounting the sd card from Windows works without errors too. Unfortunately, these chagnes don't appear to help ext4 users.
This is the partition scheme that I used on the sd card.
Code:
Device Boot Start End Blocks Id System
/dev/sdb1 1 65688 6404577+ b W95 FAT32
/dev/sdb2 65689 71065 524257+ 83 Linux
/dev/sdb3 71066 81820 1048612+ 83 Linux
I modified /init within the initrd to use /dev/mmcblk2p2 as root.
Original:
Code:
$MOUNT -t ext4 -o noatime,errors=continue /dev/mmcblk2p1 /new-root
Modified:
Code:
$MOUNT -t ext4 -o noatime,errors=continue /dev/mmcblk2p2 /new-root
I changed /data to /dev/block/mmcblk2p3 in /init.rc.
Original:
Code:
mount ext4 /dev/block/mmcblk2p2 /data noatime
Modified:
Code:
mount ext4 /dev/block/mmcblk2p3 /data noatime