ls -l /dev/disk/by-uuid/
will list the disks with UUIDslsblk
to list partitions (or list block devices)lsblk -f
or blkid
to list the UUIDssudo blkid
will list data blockssudo parted -l
- to see all available partition informationsudo parted /dev/sda
- to partition the specific driveWhen in parted:
print
to see current partition informationmkpart help
to list optionmklabel gpt
to give drive label gptmkpart help mkpart
to list specific help items on mkpartmkpart primary ext4 0% 100%
to make a partition that take the full optimised drive arearm 1
to remove partition 1
sudo mkfs.ext4 /dev/sda1
- to format the drive
sudo vim /etc/fstab
-to edit the boot disk mount table, remember to make matching mount point directories
mount -t ext4 /dev/sdb1 /run/media/diska
To mount a NFS manually:
sudo mount -t nfs -o rw,vers=4 192.168.1.5:/export/Disk1 /mnt/backup1
sudo mount -t nfs -o rw,vers=4 192.168.1.5:/export/Disk2 /mnt/backup2
Where:
-t nfs
: type nfs-o
: options, options are separated by commas with no spacesrw
: read / writevers=4
: version 4 of nfs192.168.1.5:/export/Disk1
is the remote exported NFS mount point/mnt/backup1
: is the local mount point, note this directory must exist, ideally empty, any existing contents are usually invisible and otherwise ignored
sudo umount /run/media/diska
sudo vim /etc/fstab