SAFE STEP-BY-STEP GUIDE 🔹 Step 1 — Confirm sdb1 has no important data lsblk Make sure /dev/sdb1 is not mounted anywhere important. 🔹 Step 2 — Format Disk (XFS recommended for AlmaLinux) mkfs.xfs -f /dev/sdb1 (If you prefer EXT4) mkfs.ext4 /dev/sdb1 🔹 Step 3 — Backup Existing Recordings Folder Very important if live server: mv /var/www/recordings /var/www/recordings_backup mkdir /var/www/recordings 🔹 Step 4 — Mount Disk mount /dev/sdb1 /var/www/recordings Check: df -h You should now see 1.8TB mounted there. 🔹 Step 5 — Restore Old Data (If Needed) If you had recordings already: cp -a /var/www/recordings_backup/* /var/www/recordings/ 🔹 Step 6 — Set Correct Permissions (Very Important for Asterisk) chmod -R 755 /var/www/recordings 🔹 Step 7 — Make Mount Permanent (Very Important) Get UUID: blkid /dev/sdb1 Example output: UUID = "abc123-xyz456" Edit fstab: nano /etc/fstab Add: UUID =abc123-xyz456 /var/www/recordings xfs def...
To transfer a folder without being asked for a password each time with scp , you should set up SSH key-based authentication between your local machine and the remote server. Here’s how 👇 Step 1: Generate SSH Key (on your local machine) type below command ssh-keygen -t rsa Press Enter for default file location ( ~/.ssh/id_rsa ). If you want, set a passphrase (or leave it empty for no password). Step 2: Copy the Public Key to Remote Server ssh-copy-id root@1 92.168.0.201 or manually: cat ~/.ssh/id_rsa.pub | ssh root@ 1 92.1688.0.201 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys && chmod 700 ~/.ssh" 👉 Enter the password once here. After this, the key will be stored in ~/.ssh/authorized_keys on the remote server. Step 3: Test Passwordless Login ssh root@192.168.0.201 If it logs in without asking for a password — you're done. Step 4: Transfer Folder with scp (No Password Now) scp -r tes...