Skip to content

Instantly share code, notes, and snippets.

@stablexbt
Created February 12, 2026 12:38
Show Gist options
  • Select an option

  • Save stablexbt/ce24beee91f63dae9e41025fd3c62f3a to your computer and use it in GitHub Desktop.

Select an option

Save stablexbt/ce24beee91f63dae9e41025fd3c62f3a to your computer and use it in GitHub Desktop.
Linux disk management - mount etc

Disk mount

If you can't access the drive, execute the following command:

sudo ntfsfix /dev/sdXY

where XY is the partition

e.g sda2 or sdb1

Then, mount with:

sudo mount -o rw /dev/sdXY

GPG Tool

sudo apt-get install gnupg

File encryption

gpg -c filename

File decryption

gpg filename.gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment