You are not logged in.

#1 2012-04-05 06:41:37

Marenz
Member
Registered: 2008-06-22
Posts: 48

Remounting / with aufs

Hello there.

I want to overlay a write-branch over my whole / using aufs.

In /mnt/d1 I have mounted the partition to which I want writes to happen.
in /mnt/root and / I have my root partition mounted.

The plan was to first mount into /mnt/sroot and then chroot into that.
however, I fail:

>mount -t aufs -o noplink,br:/mnt/d1=rw:/mnt/root=ro syswork /mnt/sroot
mount: wrong fs type, bad option, bad superblock on syswork,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       Manchmal liefert das Syslog wertvolle Informationen – versuchen
       Sie  dmesg | tail  oder so

>dmesg
[66167.457030] aufs test_add:246:mount[23266]: /mnt/root is overlapped

Same happens when I use / instead of /mnt/root (for either the mount point or the ro= branch)

What am I doing wrong?


    --Marenz

Offline

#2 2012-04-05 10:03:14

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Remounting / with aufs

http://aufs.sourceforge.net/ - Look at the usage section (prepend exists).

Offline

#3 2012-04-09 18:35:23

Marenz
Member
Registered: 2008-06-22
Posts: 48

Re: Remounting / with aufs

Doing it with two mounts worked indeed. Thanks for the pointer smile

Offline

Board footer

Powered by FluxBB