Skip to content

Instantly share code, notes, and snippets.

@stories2
Created February 27, 2020 14:32
Show Gist options
  • Save stories2/acbe7f5e0f6ab4a5145e143440da0157 to your computer and use it in GitHub Desktop.
Save stories2/acbe7f5e0f6ab4a5145e143440da0157 to your computer and use it in GitHub Desktop.
  1. Check disk list
sudo fdisk -l

Disk /dev/sda: 931.49 GiB, 1000170586112 bytes, 1953458176 sectors
Disk model: My Passport 259B    
Units: sectors of 1 * 512 = 512 bytes         
Sector size (logical/physical): 512 bytes / 512 bytes      
I/O size (minimum/optimal): 512 bytes / 512 bytes 
Disklabel type: gpt         
Disk identifier: F874BF9C-EEF6-44D2-BED1-A65CDE2BD917  

Device      Start        End    Sectors   Size Type             
/dev/sda1      40     409639     409600   200M EFI System     
/dev/sda2  411648 1953456127 1953044480 931.3G Microsoft basic data   <-- What we will mount
  1. Make mount directory and mount it
mkdir drive_mypassport 
mount /dev/sda2 drive_mypassport/          

unknown filesystem type 'exfat'. <-- Oh, error detected.
  1. Install exfat utils
sudo apt-get install exfat-fuse exfat-utils
  1. Umount and retry
sudo umount drive_mypassport     
sudo mount /dev/sda2 drive_mypassport    
cd drive_mypassport/
/drive_mypassport$ ls -al      
total 5098628          
drwxrwxrwx 1 root     root         131072 Nov 17  2016 '$RECYCLE.BIN'  
drwxrwxrwx 1 root     root         131072 Jan  1  1970  .      
drwxr-xr-x 6 stories2 stories2       4096 Feb 27 14:18  ..        
drwxrwxrwx 1 root     root         131072 Nov 16  2016  .sadfasfsadfas
.
.
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment