- sudo fdisk /dev/nvme0n1
- 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
- sudo mkfs -t ext4 /dev/nvme0n1p1
- sudo mkdir /media/nvme0n1p1
- sudo mount /dev/nvme0n1p1 /media/nvme0n1p1
- sudo chown -R : /media/nvme0n1p1
- UID= /media/nvme ext4 defaults 0 0
- To find the UUID, enter: sudo blkid
- write the following on /etc/fstab: UUID=ab9bd2e1-bcc6-47d7-9072-2127555afbc3 /media/nvidia/jetsonSSD ext4 defaults 0 0
Created
June 22, 2018 21:57
-
-
Save sgarciav/23647f112b7b15bca8a55bc010df2508 to your computer and use it in GitHub Desktop.
How to mount an external drive.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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