-
Notifications
You must be signed in to change notification settings - Fork 0
/
vc-mounter-test.sh
executable file
·41 lines (31 loc) · 1.04 KB
/
vc-mounter-test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
log=/opt/systemd-units/vc-mounter.log
echo "--- `date` ----------------------------------" >> $log
echo '---------- mount + df' >> $log
echo >> $log; mount | grep loop >> $log
echo >> $log; df -h | grep loop >> $log
echo '---------- mount all' >> $log
mount >> $log
echo '---------- veracrypt -l' >> $log
/opt/bin/veracrypt -t -l >> $log
echo '---------- losetup' >> $log
losetup -l >> $log
echo '---------- try-umount' >> $log
/opt/systemd-units/vc-mounter.rb umount -f >> $log 2>&1
echo '----------------------------------------------' >> $log
echo '---------- mount + df' >> $log
echo >> $log; mount | grep loop >> $log
echo >> $log; df -h | grep loop >> $log
echo '---------- mount all' >> $log
mount >> $log
echo '---------- veracrypt -l' >> $log
/opt/bin/veracrypt -t -l >> $log
echo '---------- losetup' >> $log
losetup -l >> $log
echo '----------------------------------------------' >> $log
echo '---------- ls /dev*' >> $log
ls -l /dev/shm/vc-mounter/ >> $log
ls -l /dev/sd[ab]* >> $log
echo '---------- ps ax' >> $log
ps ax >> $log
sync