Created
July 30, 2018 12:37
-
-
Save adujardin/a647b9523c12ad408c450ded9864d02c to your computer and use it in GitHub Desktop.
Mount partition fstab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://ubuntuforums.org/showthread.php?t=1145596 | |
# Make mounting point | |
sudo mkdir /mnt/mountpoint # Pick the name for "mountpoint" and use it throughout | |
sudo chown -R ${USER}: /mnt/mountpoint # Example: sudo chown -R john: /mnt/mountpoint | |
# find UUID | |
sudo blkid | grep "sdb1" # assuming it's sdb1 | |
# edit fstab | |
sudo cp /etc/fstab /etc/fstab.bak | |
sudo nano /etc/fstab | |
# Add | |
echo "Add 'UUID=XXXXX-XXXXX-XXX /mnt/mountpoint ext4 defaults 0 2'" | |
# Mount | |
sudo mount /dev/sdb1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment