I'm running Karmic on an Eeepc with a 4G hard drive. I'm trying to do this:
It's a combination of squashfs and unionfs to reduce the size of /usr on the hdd. Unfortunately, unionfs-tools is no longer in the repos, only unionfs-fuse. So here's what I tried.
I've got a folder called /.filesystems/usr which contains my squashfs archive usr.sqfs, and two folders "persist" and "overlay". My fstab looked like this (it got nuked somehow--long story--so I had to rewrite it):
Since it turned out that the unionfs-fuse binary is *in* /usr, I copied the binary to /.filesystems and changed "unionfs-fuse" in the unionfs line to "/.filesystems/unionfs-fuse". When I rebooted into recovery mode, it mounted fine. The /usr directory contained the contents of the squashfs archive and the one or two dummy files I'd put in the overlay.
#<resource> <mount point> <type> <options> <dump> <other thing>
/dev/sda1 / ext4 defaults 0 0
/dev/sda none swap sw 0 0
/.filesystems/usr/usr.sqfs /.filesystems/usr/persist squashfs loop 0 0
unionfs-fuse#/.filesystems/usr/overlay=rw:/.filesystems/usr/persist=ro /usr fuse cow,nodev,noatime 0 0
But it still won't boot normally. It hangs at the splash screen and then leaves me with a "busy" mouse over a blank screen. To experiment with why this might be happening, I typed "init 5" from the root terminal in recovery mode. It prompts me for my username and login, and then gives me a user terminal. What's weird is that I can poke around the filesystem, but when I try to ls /usr, I get "Permission Denied". The obvious effect of this is that I can't run most commands, including sudo. What's weirder is that according to my root terminal, the permissions on all the folders in /usr are 755, so they should be publicly readable.
This has been a real learning experience so far, and I'm at a point where my searches and research are getting stale. I'd like just need to be pointed in the right direction.