Auto-Mounting Your Secondary Drive Without a Password

To ensure your secondary drive does not require a password every time you reboot your CachyOS system, you can configure it to auto-mount at boot. This involves editing the /etc/fstab file to include the correct settings for your drive. Steps to Edit /etc/fstab

  Find the UUID of Your Drive:
      Open a terminal and run the command:
      lsblk -f
      Locate your secondary drive in the output and note its UUID.
  Create a Mount Point:
      Choose a directory where you want to mount the drive. For example:
      sudo mkdir -p /mnt/mydrive
  Edit the /etc/fstab File:
      Open the fstab file in a text editor:
      sudo nano /etc/fstab
      Add a new line at the end of the file with the following format:
      UUID=your-drive-uuid /mnt/mydrive ext4 defaults,noauto,user 0 0
      Replace your-drive-uuid with the actual UUID you found earlier, and adjust the filesystem type (e.g., ext4, btrfs) as necessary.
  Save and Exit:
      Save the changes and exit the editor (in nano, press CTRL + O, then ENTER, and CTRL + X).
  Test the Configuration:
      To test if the drive mounts correctly without a password, reboot your system:
      sudo reboot

Additional Considerations

  Ensure that your user account has the necessary permissions to access the mount point.
  If you encounter issues, check the syntax in the /etc/fstab file for any errors, as mistakes can prevent your system from booting properly.

By following these steps, your secondary drive should auto-mount at boot without requiring a password.