Skip to main content

Mounting & Unmounting

Get disk information

List information about all available block devices, including disks and their partitions. 

blkidlsblk -o NAME,MODEL,SIZE,ROTA,TYPE,MOUNTPOINTS

 

List information about disks and the partitions sudo fdisk -l

 List disks with filesystems sudo parted -l

Permanent mounting

Edit the file at /etc/fstab
UUID= /mnt/new_drive ext4 defaults X Y

X = Backup order - 0 is no backup

Y = Check filesystem at boot - 0 is no check

 

Temporary mounting

sudo mount -t ext4 /dev/sdXY /mount/path

X = Disk letter

Y = Disk partition