[Unionfs] UnionFS as root filesystem

Francesco Carsana francescocarsana at ds4.it
Wed Mar 15 09:53:24 EST 2006


Tomas M wrote:
> This way:
>
> mount /dev/hda1 /mnt/hda1
> mount /dev/hda2 /mnt/hda2
> mount -o dirs=/mnt/hda1=rw:/mnt/hda2=ro unionfs /mnt/union
> chroot /mnt/union # or whatever you need to use, eg. cd /mnt/union; 
> exec sbin/init <dev/console >dev/console

I have to use pivot_root... or not? Only chroot?
So in my linuxrc:

   mount -o dirs=/mnt/hda1=ro:/mnt/hda2=rw unionfs /mnt/hda2

is wrong? Can't I mount the union over hda2?



More information about the unionfs mailing list