Post subject: trying to get unionfs or aufs working
Posted: Thu Jul 29, 2010 5:46 am
Joined: Thu Jan 22, 2009 4:53 pm Posts: 45
This is a major edit from my former post:
The reason for my attempts at the following 1. On an ssd or ad or any type of flash media, compressing /usr with sqashfs and some sort of union overlay increases speed immensely. 2. /usr becomes approximately 1/3 of it's original size. On Arch and Ubuntu based EEEbuntu, free space on the device went from 580 MB to 2.1 GB
This does work if I set everything to mount to union at /usr1 but boot stops if I have union-fuse mount to an empty /usr directory (by moving usr to usr2 and recreating an empty usr directory.
The machine will not boot if I set it to /usr, so i am assuming that the unionfs-fuse is NOT occurring soon enough in the boot process and therefore /usr is not writable and boot can go no further? The problem in EB4 is that even in "single' rescue mode, there is a graphic splash and I can't see what is going on completely and it just stops giving text after it shows it successfully mounts the root directory: boot hangs with no other info. I know in ubuntu lucid there was an issue with "mountall" that had been fixed but debian does not have this package.
Hmm, Ive been looking around and so far I have found that the new kernels we are working on have support for UFS as a module, but writing support disabled. It says that UFS write support is dangerous, but I could enable it for you if you would like. As for Aufs, Debian experimental has some patches which enable it, Ill add those to the Aurora kernels so you could see if that works
Post subject: Re: trying to get unionfs or aufs working
Posted: Wed Aug 04, 2010 12:04 am
Joined: Thu Jan 22, 2009 4:53 pm Posts: 45
UFS? UnionFS? I used "regular" unionfs with Ubuntu (Kubuntu Hardy when I had it running off of an SD card on my EEEPC 701) for quite some time and no major issues mounting an rw directory on top of a mounted squashfs of /usr. That was about 3 years ago I think. I just added "unionfs" to /etc/modules and it worked. I suppose if you had a crash during an update or while installing a package, there would be a bit of a mess, but that could happen anyway.
I would prefer aufs, as that seems to be the "newer and more improved" way to do it. It just needs to be able to create an rw overlay onto another ro directory (one with a squashfs mounted to an ro directory).
Interesting... Maybe there was a change in the UnionFS driver since you last used it. Anyway, I will enable write support for UFS. And as soon as my laptop is back up and running, Ill get started with adding Aufs to the kernel. I think I could have it ready by Friday. Willing to test more kernels?
Post subject: Re: trying to get unionfs or aufs working
Posted: Wed Aug 04, 2010 5:21 pm
Joined: Thu Jan 22, 2009 4:53 pm Posts: 45
Sure. I can help up until Aug 12. I will be working on a work project for a few weeks that will require most of my attention. Then I go back to work. Tough life as a teacher:-)
I can still help after Aug 24, but my attention will be spotty with the beginning of a new school year.
I find it odd that unionfs had write support disabled and that it is considered "dangerous;" I think it is still enabled in Ubuntu but I have not tried. "Dangerous" to me is something that would cause catastrophic loss. For those of us who know how to use it and would bother, I guess we would know what we were getting into!
Finally got aufs working. Files. I also compiled/included the aufs2-utils, but i dont know if those will run correctly. Please test it and see if it works now
It did take longer for it to boot which isn't a big deal (the splash eb4 circle disappeared and I got a blinking cursor for a while but it did come up to the desktop. I am using an SD card for my experimenting of the kernels so that makes it pretty slow anyway. It is noticeably faster operating once the desktop is up compared to a non compressed /usr directory.
I also went ahead and did the same thing to my /home/usr/.wine directory. It is important to make the /squashed/wine/rw directory owned by the user or it won't work.
I went ahead and did an rm -rf to the /usr.old directory
Originally, free space was 1.6 GB but after this, free space is 3.7 GB
Nice job and anyone with a 1201T or N will be eternally grateful for the wifi (and not know it) and for those of us with SSD's, USB sticks, SD Cards or anyone with limited space really can take advantage of the aufs support.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum