Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
|
|
Source code |
1 |
mount -t unionfs union /mnt/union -o rw,dirs=/mnt/ram=rw:/mnt/root2=ro,delete=whiteout |
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
-rw-r--r-- 1 root root 578 2006-01-20 07:44 mtab -rw------- 2 root root 0 2006-01-20 07:44 .wh.mtab~ -rw------- 1 root root 0 2006-01-20 07:44 .wh.mtab~1012 -rw------- 1 root root 0 2006-01-20 07:44 .wh.mtab~1016 -rw------- 1 root root 0 2006-01-20 07:44 .wh.mtab~1049 -rw------- 1 root root 0 2006-01-20 07:44 .wh.mtab~2449 -rw------- 1 root root 0 2006-01-20 07:44 .wh.mtab~2452 -rw------- 1 root root 0 2006-01-20 07:44 .wh.mtab~2455 -rw------- 2 root root 0 2006-01-20 07:44 .wh.mtab~4562 |
Quoted
Original von cooper
Die /etc/mtab wird immer dann aktualisiert, wenn du nen Dateisystem mountest. Vollautomatisch. Gibt es sie nicht, wird sie angelegt.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 |
#!/bin/bash
for filewh in $(find /mnthelp/ram -type f -name ".wh.*"); do
fileorg=$(echo /mnt/root2${filewh#/mnthelp/ram} | sed s/\.wh\.//)
if [ "${fileorg:${#fileorg}-13}" != "/__dir_opaque" ]; then
if [ ! -f $fileorg ]; then
echo $fileorg
rm $filewh
fi
fi
done
|
This post has been edited 2 times, last edit by "HFlor" (Jan 21st 2006, 12:46pm)
|
|
Source code |
1 |
mount -t unionfs -o dirs=/mnt/ram=rw:/mnt/root2=ro,delete=all union /mnt/union |