Aufs Doesn't Seem To Work


paulguy

Member
Joined
Sep 30, 2008
Messages
414
Age
32
Location
Buffalo, NY
Website
paulguy.co.uk
So, I'm trying to use an AUFS union on / so I don't end up filling the nand when I install stuff, so I created an 8 gig ext2 image on my SD card, at /media/mmcblk1p1/unionfs.img using default settings.

I then mount it on /media/union, since nothing seems to be mounted there anyway:
Code:
mount -t ext2 -o loop /media/mmcblk1p1/unionfs.img /media/union

I then try to mount the union on /:
Code:
mount -t aufs -o br=/media/union=rw:/=ro none /

When I write any files, they go to NAND, though. They don't appear in /media/union, I only see lost+found there. It appears as mounted when I execute mount. It also can't be unmounted like this, though I am probably doing this wrong:
Code:
umount.aufs /

I just get "Inappropriate ioctl for device".

I've searched around for information, and couldn't find anything, so I'm wondering if I'm doing something wrong or something is just screwed up.
 

illusionx

Still Fresh
Joined
Jun 4, 2010
Messages
23
Location
Netherlands
You can't just remount / as an aufs I tried to do the same thing. You can probably do it with all the directories under / but not / itself due to it being 'special'
 

urjaman

"I Know. We're going for a ride."
Joined
Jan 6, 2009
Messages
1,111
Age
31
Location
Finland
Website
urjaman.dy.fi
Yeah dont try to AUFS '/'. (' to not say slashdot :p). It is possible, but If i were you I wouldnt go building an initramfs just yet...
 
Last edited by a moderator:
Top