I just tried this last night. First, I downloaded the 1.5.2 firmware image, and reflashed the Yun using the web interface.
Then I loaded the sketch and ran it, and it seemed to be successful. I used an 8GB card, and allocated 6GB (6144MB) to the data partition. This is what I get when I run df:
root@Yun:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 24806184 500740 23061720 2% /
/dev/root 7680 7680 0 100% /rom
tmpfs 30560 100 30460 0% /tmp
tmpfs 512 0 512 0% /dev
/dev/sda2 24806184 500740 23061720 2% /overlay
overlayfs:/overlay 24806184 50074 236172 2%/
/dev/sda1 6279168 12 6279156 0% /mnt/sda1
root@Yun:/#
sda1 is 6GB, as expected, but the rootfs is 24 GB? On an 8GB card? It should be 2 GB with about 25% used.
If I plug the SD card into my Windows laptop, it says that it is not formatted. If I look at it using a partition manager, it shows the first partition is a 6GB FAT32 partition (as expected) and the second is a 23.7 GB Linux Ext4 partition.
Why is the first partition not accessible on my laptop?
Why is the second partition so huge?
This is the sketch output when I run it with "DEBUG 1" defined:
This sketch will format your micro SD card and use it as additional disk space for your Arduino Yun.
Please ensure you have ONLY your micro SD card plugged in: no pen drives, hard drives or whatever.
Do you wish to proceed (yes/no)? yes
Starting Bridge...
Ready to install utility software. Please ensure your Arduino Yun is connected to internet.
Ready to proceed (yes/no)? yes
Updating software list...
Software list updated. Installing software (this will take a while)...
e2fsprogs mkdosfs fdisk rsync installed
Proceed with partitioning micro SD card (yes/no)? yes
Enter the size of the data partition in MB: 6144
Partitioning (this will take a while)...
Command (m for help): Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): Partition number (1-4, default 1): First sector (2048-62333951, default 2048): Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-62333951, default 62333951): Partition 1 of type Linux and of size 6 GiB is set
Command (m for help): The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Command (m for help): Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p): Partition number (1-4, default 2): First sector (12584960-62333951, default 12584960): Using default value 12584960
Last sector, +sectors or +size{K,M,G} (12584960-62333951, default 62333951): Using default value 62333951
Partition 2 of type Linux and of size 23.7 GiB is set
Command (m for help): The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
mkfs.vfat 3.0.12 (29 Oct 2011)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1556480 inodes, 6218624 blocks
310931 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
190 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: 0/190 <lengthy-count-sequence-snipped> 189/190 done
Writing inode tables: 0/190 <lengthy-count-sequence-snipped> 189/190 done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: 0/190 <lengthy-count-sequence-snipped> 189/190 done
Micro SD card correctly partitioned
Creating 'arduino' folder structure...
Copying files from Arduino Yun flash to micro SD card...
Enabling micro SD as additional disk space... enabled
We are done! Yeah! Now press the YUN RST button to apply the changes.
I snipped out a long string of counter updates that included lots of backspaces between each update. I also didn't include the messages from the subsequent boot (but I saved them if needed.)