-
@kl522 the script I use needs to have aufs-utils the same version as the aufs patch-version, when I tried with the one from synaptic it gave me:
Code:
"aubrsync move_with_wh /UNIONFS /KNOPPIX-DATA-RAMDISK /KNOPPIX-DATA"
and that gives me the following errors:
+ mount -o remount,ro,udba=reval,noshwh /UNIONFS
/sbin/mount.aufs:plink.c:223: AUFS_CTL_PLINK_MAINT: Inappropriate ioctl for device
+ mount -o remount,udba=reval,noshwh,rw,relatime,si=aa3aa37c,noplink /UNIONFS
/sbin/mount.aufs:plink.c:223: AUFS_CTL_PLINK_MAINT: Inappropriate ioctl for device
when I tried compiling from source it gave me:
Code:
install -d /usr/share/man/man5
install -o root -g root -p -m 644 aufs.5 /usr/share/man/man5
install -d /sbin
install -o root -g root -p -m 755 mount.aufs umount.aufs auplink /sbin
install: cannot stat `umount.aufs': No such file or directory
make: *** [install_sbin] Error 1
The maintainer suggested updating the kernel module which I'm going to try this evening 
@Capricorny
The problem with rsync here is that when you delete a file, it should create a whiteout on the writeable upper filesystem and rsync doesn't sync those, only the real files get synced. (thats at least what I think, why else would they've created aubrsync?)
-
Senior Member
registered user

Originally Posted by
dinosoep
The problem with rsync here is that when you delete a file, it should create a whiteout on the writeable upper filesystem and rsync doesn't sync those, only the real files get synced. (thats at least what I think, why else would they've created aubrsync?)
Exactly. And I would ask: Why would they have to use aubrsync? My (implicit) point was that file creatons and updates are taken care of through rsync, while deletions must be done directly on the persistent image, preferably upon shutdown. Of course, it would be nice to have a "commit" function doing the actual deletions, determined from the ramdisk-recorded changes (whiteouts), but I will rather have something simple, stupid and robust than something that nobody seems to be able to tell how and why works or not.
-
Senior Member
registered user

Originally Posted by
dinosoep
[/code]when I tried compiling from source it gave me:
Code:
install -d /usr/share/man/man5
install -o root -g root -p -m 644 aufs.5 /usr/share/man/man5
install -d /sbin
install -o root -g root -p -m 755 mount.aufs umount.aufs auplink /sbin
install: cannot stat `umount.aufs': No such file or directory
make: *** [install_sbin] Error 1
The maintainer suggested updating the kernel module which I'm going to try this evening

I have more confidence on the installed aufs kernel module than your compilation. 
Your compilation output seems to suggest that umount.aufs is not present. But 'umount.aufs' is to be provided by YOUR compilation, so it is still more like your compilation has error. Furthermore the output is coming from 'make install', you should have an error free 'make' prior to 'sudo make install'. Perhaps you have a wrong version of /usr/include/linux/aufs_type.h installed on knoppix.
-
Yeah, Make was succesfull ...
Are you able to compile it succesfully?
-
Senior Member
registered user

Originally Posted by
dinosoep
Yeah, Make was succesfull ...
Are you able to compile it succesfully?
You may have to re-read your 'make' output more carefully. Here is my output :-
Code:
cc -I./libau -O -Wall -DMOUNT_CMD_PATH=\"\" ver.c -o ver
./ver
cc -I./libau -O -Wall -DMOUNT_CMD_PATH=\"\" c2tmac.c -o c2tmac
rm -f aufs.5
./c2tmac > aufs.5
awk '{ \
gsub(/\140[^\047]*\047/, "\\[oq]&\\[cq]"); \
gsub(/\\\[oq\]\140/, "\\[oq]"); \
gsub(/\047\\\[cq\]/, "\\[cq]"); \
gsub(/\047/, "\\[aq]"); \
print; \
}' aufs.in.5 >> aufs.5
chmod a-w aufs.5
cc -I./libau -O -Wall -DMOUNT_CMD_PATH=\"\" -c -o proc_mnt.o proc_mnt.c
ar rv libautil.a proc_mnt.o
ar: creating libautil.a
a - proc_mnt.o
cc -I./libau -O -Wall -DMOUNT_CMD_PATH=\"\" -c -o br.o br.c
ar rv libautil.a br.o
a - br.o
cc -I./libau -O -Wall -DMOUNT_CMD_PATH=\"\" -c -o plink.o plink.c
ar rv libautil.a plink.o
a - plink.o
cc -I./libau -O -Wall -DMOUNT_CMD_PATH=\"\" -c -o mtab.o mtab.c
ar rv libautil.a mtab.o
a - mtab.o
cc -I./libau -O -Wall -DMOUNT_CMD_PATH=\"\" -c -o auibusy.o auibusy.c
cc -static -s auibusy.o -L. -lautil -o auibusy
cc -I./libau -O -Wall -DMOUNT_CMD_PATH=\"\" -c -o auplink.o auplink.c
cc -static -s auplink.o -L. -lautil -o auplink
cc -I./libau -O -Wall -DMOUNT_CMD_PATH=\"\" -c -o mount.aufs.o mount.aufs.c
cc -static -s mount.aufs.o -L. -lautil -o mount.aufs
cc -I./libau -O -Wall -DMOUNT_CMD_PATH=\"\" -c -o umount.aufs.o umount.aufs.c
cc -static -s umount.aufs.o -L. -lautil -o umount.aufs
cc -I./libau -O -Wall -DMOUNT_CMD_PATH=\"\" c2sh.c -o c2sh
rm -f etc_default_aufs
echo '# aufs variables for shell scripts' > etc_default_aufs
./c2sh >> etc_default_aufs
echo >> etc_default_aufs
sed -e '0,/^$/d' aufs.shlib >> etc_default_aufs
make -C libau all
make[1]: Entering directory `/mnt/part3/tmp/linux-2.6.38.7/aufs2-util.git/libau'
cc -I./libau -O -Wall -fPIC -DNDEBUG -D_REENTRANT -I. -DMOUNT_CMD_PATH=\"\" -c -o libau.o libau.c
cc -I./libau -O -Wall -fPIC -DNDEBUG -D_REENTRANT -I. -DMOUNT_CMD_PATH=\"\" -c -o rdu_lib.o rdu_lib.c
cc -I./libau -O -Wall -fPIC -DNDEBUG -D_REENTRANT -I. -DMOUNT_CMD_PATH=\"\" -c -o rdu.o rdu.c
ln -sf rdu.c rdu64.c
cc -I./libau -O -Wall -DRdu64 -fPIC -DNDEBUG -D_REENTRANT -I. -DMOUNT_CMD_PATH=\"\" -c -o rdu64.o rdu64.c
cc -I./libau -O -Wall -fPIC -DNDEBUG -D_REENTRANT -I. -DMOUNT_CMD_PATH=\"\" -c -o pathconf.o pathconf.c
cc --shared -Wl,-soname,libau.so.2 \
-o libau.so.2.5 libau.o rdu_lib.o rdu.o rdu64.o pathconf.o -ldl -lpthread
ln -sf libau.so.2.5 libau.so.2
ln -sf libau.so.2 libau.so
make[1]: Leaving directory `/mnt/part3/tmp/linux-2.6.38.7/aufs2-util.git/libau'
ln -sf ./libau/libau*.so .
rm ver c2tmac c2sh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX
$59.99

Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery
$54.99

GIGABYTE Z790 AORUS ELITE AX LGA 1700 Intel Z790 ATX Motherboard with DDR5
$189.99

ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield
$84.99

GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard
$59.99

MSI B550M PRO-VDH Micro-ATX Motherboard - AMD AM4, Ryzen 5000/4000/3000 Ready, P
$71.49

Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)
$29.90

ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio
$34.99

ASUS B85M-G / B85M-G PLUS LGA1150 DDR3 Micro ATX Motherboard HDMI Support 4thCPU
$45.00

Dell XPS 8940 Desktop Motherboard Intel H470 LGA1200 DDR4 K3CM7 KV3RP 427JK
$154.99