There are many questions on automatically mounting or problems encountered during mounting that I've read here. But none on how to manually mount a partition.
There are many questions on automatically mounting or problems encountered during mounting that I've read here. But none on how to manually mount a partition.
The first step is to list all your partitions to find the one you want to mount:
For this example, we will mount
nvme0n1p8
which has the labelUbuntu18.04
. To credit sources, we'll be following this article as a guide.Create mount point directory
The next step is to create a directory under
/mnt
that the newly mounted partition will be referred to as:Mount the partition to the new directory
The final step is to mount the partition to the new directory:
Notice we prepend
/dev/
to the names provided bylsblk
above.Now let's see what we've just mounted:
lost_found
is needed forfschk
command (File System check). It is automatically created and normally we don't have to "fiddle" with it.Unmount the partition
When we are finished we can unmount the partition using the
-l
parameter which safely unmounts the partition:Script method
A script to mount partition is available in this answer:
This screen appears tailored to your unique machine environment:
mount /dev/sda1 /mnt
would be enough in most cases.
-t auto
is used as default here which uses heuristics to find the filesystem type:If you work with sensitive data specifiy the filesystem type rather explicitely: