Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.1 KB

90-disk-management.md

File metadata and controls

63 lines (42 loc) · 1.1 KB

Annex B. - Disk Management

  • Install parted :
$> sudo apt-get install -y parted
  • List all drives and identify yours :
$> lsblk --fs
  • Partition the drive :
$> sudo parted /dev/sda mklabel gpt
  • Create a new partition :
$> sudo parted -a opt /dev/sda mkpart primary ext4 0% 100%
  • Create file system on the new partition :
$> sudo mkfs.ext4 -L <partition_name> /dev/sda1
  • Rename the partition (if needed) :
$> sudo e2label  /dev/sda1 <new_partition_name>
  • Create a folder to be the mounting point :

⚠️ for testing only, incompatible with NFS configuration !

$> sudo mkdir -p /mnt/<partition_name>
  • Mount the filesystem :

⚠️ for testing only, incompatible with NFS configuration !

$> sudo mount -o defaults /dev/sda1 /mnt/<partition_name>
  • Automatically mount the filesystem at boot:

⚠️ for testing only, incompatible with NFS configuration !

$> sudo nano /etc/fstab
# add this line to the end of the file :
/dev/sda1 /mnt/<partition_name> ext4 defaults 0 2