Skip to content

Instantly share code, notes, and snippets.

@sgarciav
Created June 22, 2018 21:57
Show Gist options
  • Save sgarciav/23647f112b7b15bca8a55bc010df2508 to your computer and use it in GitHub Desktop.
Save sgarciav/23647f112b7b15bca8a55bc010df2508 to your computer and use it in GitHub Desktop.
How to mount an external drive.
  1. sudo fdisk /dev/nvme0n1
  2. Choose “n” to create a new partition, then “p” then “1” to create a new primary partition. Just use defaults for the sector numbers. Then “w” to write the data to the disk
  3. sudo mkfs -t ext4 /dev/nvme0n1p1
  4. sudo mkdir /media/nvme0n1p1
  5. sudo mount /dev/nvme0n1p1 /media/nvme0n1p1
  6. sudo chown -R : /media/nvme0n1p1
  7. UID= /media/nvme ext4 defaults 0 0
  8. To find the UUID, enter: sudo blkid
  9. write the following on /etc/fstab: UUID=ab9bd2e1-bcc6-47d7-9072-2127555afbc3 /media/nvidia/jetsonSSD ext4 defaults 0 0
@sgarciav
Copy link
Author

sgarciav commented Oct 5, 2018

To mount an address from a server to your local machine:
(see: https://askubuntu.com/questions/137011/mounting-cifs-url-not-implemented-yet-when-i-try-to-mount-a-samba-share)

$ sudo apt-get install cifs-utils
$ sudo mount -t cifs-utils //[IP ADDRESS]/projects /mnt/projects -o user=USERNAME

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