Hey Guys, I had some of the same issues using a 16GB Samsung EVO, the program keeps freezing on the Partition and Format part of the code, Even when it seems like the YUN is compatible with this SD card, the command to format and/or partition clocks even when using SSH.
After lots of trial and error, I finally got it working, this is what I did:
I Basically all commands on the SSH (putty) console.
I will skip the ones that Federico's wrote for error checking and when directly to
opkg update
opkg install e2fsprogs mkdosfs fdisk rsync
after this comes the Partition and Format, what i did was partition the SD card on my Laptop, since I made the horrible mistake to upgrade to Windows 10 and dont want to use my work MAC for this, I used EASYUS Partition Master, you can also use Partition Magic or a MAC or Linux computer, and basically created 2 partitions, one FAT32 and the other one EXT3 (couldnt find EXT4).
After I formatted the SD card, I put it back on the Arduino YUN and kept on going with the following steps.
mkdir -p /mnt/sda1
mount /dev/sda1 /mnt/sda1
mkdir -p /mnt/sda1/arduino/www
mkdir -p /mnt/sda2
mount /dev/sda2 /mnt/sda2
rsync -a --exclude=/mnt/ --exclude=/www/sd /overlay/ /mnt/sda2/
umount /dev/sda1
umount /dev/sda2
uci add fstab mount
uci set fstab.@mount[0].target=/overlay
uci set fstab.@mount[0].device=/dev/sda2
uci set fstab.@mount[0].fstype=ext4
uci set fstab.@mount[0].enabled=1
uci set fstab.@mount[0].enabled_fsck=0
uci set fstab.@mount[0].options=rw,sync,noatime,nodiratime
uci commit
after that, I rebooted and now i have the following with df -h / /mnt/sda1
root@yunrafa:~# df -h / /mnt/sda1
Filesystem Size Used Available Use% Mounted on
rootfs 8.8G 7.9M 8.4G 0% /
/dev/sda1 5.9G 20.0K 5.9G 0% /mnt/sda1
I hope that helps, not sure I i did it correctly.
Regards,
Rafael