There are two real, physical if you will, directories involved and one virtual directory. The first physical directory is the home directory on the SSD, /home/user. The second physical directory is the SD, /media/disk. aufs unifies both directories (branches) into a virtual directory, /mnt/home. Imagine the virtual directory like an additional layer on top of both branches. If one branch dissapears then it still works, the files are just not available in the virtual directory anymore.
The beauty of it is that each branch can still be written to individually, with all files automatically showing up in the virtual directory. The interesting part begins when files are directly written to the virtual directory. aufs will then distribute the files among all branches based on the selected policy. There are three major policies available: tdp writes to the highest branch first if available. rr distributes all files evenly among all branches using a round-robin mechanism. mfs writes to the branch with most free space first.
The policy used on the AA1 is mfs. As a consequence the SD will only ever be written to if the SSD has less free space available, which will be the case with 8GB and 16GB cards most of the time. Still it'd probably be a better idea to at least use rr, to distribute it evenly. The best solution is to prioritize the SD, especially if you have a fast SDHC card like the SanDisk III.
Using the tdp policy and the SD as the highest branch will always write to the SD card first until it runs out of space. That's probably a good idea, considering that it only concerns the virtual home directory. The SSD will be busy enough with all the other file operations on the system, so why not lift some work of it. The virtual home directory is used by default by the file manager and as the download directory by Firefox, probably by a few other applications as well.
It is fairly easy to do, in fact the line below automates the whole process.
sudo sed -e'63s/mfs/tdp/;99s/append/prepend/' -i.1 /etc/aufs.actIt becomes effective after a reboot.
To check if and how aufs distributes the files among both branches use df -h on the terminal, which will show the available and used space for each mount point.


For anyone who's tried expanding the memory, was your insertion experience similar? And if so, how'd you remove it? I'm just wondering whether the mechanics that handle the card aren't quite right on my device.
you should be able to press it further in and have it click then pop back out.
I want to use an sdcard to move my Eclipse projects between my Mac and my Aspire One, and I want to leave the sdcard in the Acer most of the time, but the right hand sdcard drive is (stupidly) not flush with the side of the case, and catches while I'm transporting the thing -- so I want to use the left drive as a normal drive.
If you manually create a directory on the SD then all files will only be copied into that directory and not distributed among both branches, even though it's also visible in the home directory of the file browser.
https://wiki.ubuntu.com/CatalanTeam/Tutorials/AspireOne
How does this work if the SD to be replaced contains more data than the tmp-space of the SSD can hold? Maybe "floppy disk mode" via memory?
I have a 16GB SD card in the left and used your guide above to make it always write there.
It expands the storage fine and makes the extra drawers. But when I try to write (dragging from the right side of filemanger to the let) to the combined top drawers (documents, pictures) notheing happends. It is if the combines new drawers are write protected. And in the left side the drawer "files" is missing even if it is at both the sd card and the ssd.
I think it is some kind a permission problem (I used the SD card under Ubuntu and it has'nt been the same since) but the perrmissions looks fine in filemanger. Do know what the correct rights should be and what command to use?
Thank you in advance.
"It will only distribute files among both branches if the parent directory exists on both, which is the case for the five default directories in the home directory."
I did some experimenting, and I don't think this is correct. If a directory exists only on /user/home and you write to the union when /media/home is the preferred location (has more space), aufs will actually create the same directory structure on /media/home and write the files there. More on this issue can be read from the discussion thread I linked above.
I simply cannot see why it is good to not know where ones files really are and would be happy just having a normal sd slot.
If i wanted to mix things up i would let my kids play with the computer.
If anyone knows how to properly turn off merging, to make the expansion slot just like other sd slot I would be gratefull.
Indeed! Anyone?
M.
I didn't expect this corruption to happen and wasn't aware of any specific warnings. I believe all my files are still on the card, but I can't read them on any computer. Any idea how I can retrieve them?
on the question of disabling merging. I found that view/'view as advanced mode' and view/side pane/shortcuts allows you see the *left SD card* as a separate drive, and checking the documents/music/pictures/etc. shortcuts allows you to confirm that these folders are the SSD folders and that these are separate from the SDcard folders.
http://tinyurl.com/c8y6he [currently top link if you google 'advanced mode thunar'] suggests that this can be locked by editing a configuration file. but unfortuatley that didn't work for me.
i did a couple of tests and it looks like the file is appended when thunar is opened.
I look forward to seeing further suggestions on how to achieve permanent separation.
Regards
James
ie, use the SD card just like on the right side. In every case the answer
was explanation of how aufs works, etc. etc. OK, I see how it works. NOW,
I want to plug in an ext2 formatted SD card on the left side, mount it as
usual, and use it as usual (usual meaning NON-AAO mode), by disabling totally
the aufs system. Can I get a simple answer to the question? Like in rc5.d
or something?
But now I need a Linux Guru, I have searched and googled and pulled what hair I have left out…
Lets talk about AUFS!!! I tried to extend the SSD with LVM but ‘pvcreate’ doesnt recognise the mmcblk0 ERROR not found or (not recognised by filters) I have checked and Fedora 10 is set to not filter, I tried to two lines of code that are online for AUFS that is an unknown command… with the 8Gig version it would be great to merge it with a 16 Gig SDHC card in the left slot…
There is also a block of code in the bugs forum, the author says that Fedora only recognises media form ‘DISK’ QUESTION: where should this code be inserted?
Any ideas people???
thanks for explanation but i need more help could i have indication to install and configure aufs on ubuntu 9.04 to merge left sd crad like linpus do it? it's the only thing in don't find help for on google. thanks for help.
I edited /etc/aufs.act and on the second line I simply put "exit 0" (without the quotes, so the aufs monting script doesn't do anything and the card is mounted by the usual automonter.
Really simple. (And don't think it can show any side effects).
can't download more files because my disc is full. How do I fix this--something very easy please,as I am a linux newbie. I am running limpus lite, with the terminal and right click menu enabled.
penny