Skip to content

Instantly share code, notes, and snippets.

@ErykDarnowski
Last active April 30, 2023 11:12
Show Gist options
  • Save ErykDarnowski/b30c8d38678097614fc1b1b7a1dcf10c to your computer and use it in GitHub Desktop.
Save ErykDarnowski/b30c8d38678097614fc1b1b7a1dcf10c to your computer and use it in GitHub Desktop.
How to (temporarily) mount drive installed in computer in a live Linux USB

How to (temporarily) mount drive installed in computer in a live Linux USB

Prepare by burning Linux on to a USB drive and booting in to it (on the computer that has the drive/s you want to access installed).


  1. Find the drive's path (something along the lines of /dev/nvme0n1p3): sudo fdisk -l
  2. Create a directory for mounting it: sudo mkdir -p /mnt/drive
  3. Mount it: sudo mount <drive_path> /mnt/drive
  4. Access it: cd /mnt/drive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment