mounting disks on ubuntu

Aug 5, 2024

workflow for mounting drive on ubuntu:

lsblk # lists the drives
mkdir /media/<mount_name> # if necessary - also may have to chown
sudo mount /dev/sd<letter> /media/<mount_name> # for temp mount
sudo nvim /etc/fstab # for permanent mount on restart etc
/dev/sd<letter> /media/<mount_name> ext4<or_filesystem> defaults 0 0 # insert this line and good to go

When looking up how to mount a drive on ubuntu or linux in general I always find 10 different ways of doing it and so this is just a quick reference of the simplest way I use to mount a drive. Seems to work on ubunut but haven’t tried other distros yet. Hope this helps, God bless!


← Back ← Go to all posts