From d28b21dcdfc8bdbf0e3afd5e2da3f5d8a9614f21 Mon Sep 17 00:00:00 2001 From: Mastermindzh Date: Tue, 26 Jul 2022 11:47:00 +0200 Subject: [PATCH] Added `vers=2.1` to `mount.cifs` command in [mounts.sh](./bash/mounts.sh) to fix an [upstream bug](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.18.y&id=ca83f50b43a099345e61950f74c4d9eb81c765fe) Added a `clean-all` command to clean trash of my hard drives --- CHANGELOG.md | 11 +++++++++++ bash/.alias.sh | 1 + bash/mounts.sh | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..5d0b335 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to date versioning. + +## [2022-07-26] + +- Added `vers=2.1` to `mount.cifs` command in [mounts.sh](./bash/mounts.sh) to fix an [upstream bug](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.18.y&id=ca83f50b43a099345e61950f74c4d9eb81c765fe) +- Added a `clean-all` command to clean trash of my hard drives diff --git a/bash/.alias.sh b/bash/.alias.sh index f1194b7..cf826c7 100644 --- a/bash/.alias.sh +++ b/bash/.alias.sh @@ -72,6 +72,7 @@ alias nomachine='/usr/NX/bin/nxplayer' alias unlockuser='faillock --reset --user' alias npm-list-links='npm ls -g --depth=0 --link=true' alias suspend='sudo bash ~/.config/i3/scripts/suspend.sh' +alias clean-all='sudo pacman -R $(pacman -Qtdq) && sudo paccache -rk 1 && sudo paccache -ruk0 && sudo journalctl --vacuum-time=2d && docker-clean-all && rm -rf ~/.local/share/Trash/' # might be useful in demos... alias oopsie='fuck' diff --git a/bash/mounts.sh b/bash/mounts.sh index 1fc651b..6c9220a 100644 --- a/bash/mounts.sh +++ b/bash/mounts.sh @@ -121,7 +121,7 @@ for MOUNTS in ${!MOUNTS@}; do SERVER_LOCATION="$MY_SERVER_LOCATION/${MOUNTS[share]}" MOUNT_LOCATION="$MOUNT_PREFIX/${MOUNTS[mount]}" - mount.cifs "$SERVER_LOCATION" "$MOUNT_LOCATION" -o user=mastermindzh,noperm,rw + mount.cifs "$SERVER_LOCATION" "$MOUNT_LOCATION" -o user=mastermindzh,noperm,rw,vers=2.0 if [ $? -eq 0 ]; then echo "Succesfully mounted $MOUNT_LOCATION"