* Added HFS+ to udevil's allowed types. * Added mediainfo to meet photorec-sort requirements * Removed git * Switched out Chromium for Midori * Size reduction test * hw-diags now tests USB drives (except ARCH drives) * mount-all-volumes no longer opens the file browser Bugfix: mount-backup-shares should now work.
14 lines
334 B
Bash
14 lines
334 B
Bash
#!/bin/bash
|
|
#
|
|
## Mount all volumes read-only
|
|
|
|
echo "Mounting all volumes"
|
|
regex="/dev/((h|s)d[a-z]|md)[0-9]+"
|
|
for v in $(inxi -Do | grep -E "$regex" | sed -r "s#.*($regex).*#\1#"); do
|
|
echo -n " $v: "
|
|
if udevil mount -o ro $v >>/dev/null 2>&1; then
|
|
echo "Mounted."
|
|
else
|
|
echo "Failed to mount."
|
|
fi
|
|
done
|