[Unionfs] Unionfs append/redirect problem
Marcelo Ricardo Leitner
mrl at mandriva.com.br
Fri Mar 31 06:26:28 EST 2006
Em Sexta 31 Março 2006 04:14, Dean Montgomery escreveu:
> I am working on a diskless client for schools.
>
> It seems that I have to delete the a file before I can use output redirects
> or appends on the file.
>
> mount -t tmpfs tmpfs /tmpfs
> mount -t nfs -o ro 192.168.0.1:/opt/i386/rootfs /rootfs
> mount -t unionfs -o delete=whiteout,dirs=/tmpfs=rw:/rootfs=ro unionfs /
>
> echo "127.0.0.1 localhost diskless2" >> /etc/hosts
> *** Permission denied
>
> rm -f /etc/hosts
> echo "127.0.0.1 localhost diskless2" >> /etc/hosts
> *** works fine.
>
> Do I always have to delete the file before writing to it?
Hi Dean,
Try using dirs=.../rootfs=nfsro. NFS is known to have problems reporting the
permissions (instead of saying 'media is read-only' it says 'permission
denied')
More information about the unionfs
mailing list