Saturday, August 19, 2017

Mounting a new partition [Ubuntu]

1. Create partition using fdisk.
I created a new parition, primary.
lsblk (to see partitions)

2. Format partition to Ext4
sudo mkfs.ext4 /dev/sda4

3.Get UUID for partition
sudo blkid

4. Make directory to mount partition
mkdir /partition

4. Append to /etc/fstab
sudo nano /etc/fstab
UUID=foo-bar    /partition   ext4    defaults    0   1

5. Reboot system

6. Alternatively mkdir and chown for user access

No comments:

Post a Comment