[parted] Disk Parti...
 
Notifications
Clear all

[parted] Disk Partioning

1 Posts
1 Users
0 Reactions
41 Views
(@andre)
Posts: 66
Member Admin
Topic starter
 

 

Creating Partition

Get List Of Hard Drives

lsblk

Create Partion type

sudo parted /dev/sda mklabel msdos

Create ext4 partition

sudo parted -a opt /dev/sda mkpart primary ext4 0% 100%

Mounting Partiton

Get UUID

sudo lsblk -o NAME,FSTYPE,LABEL,UUID,MOUNTPOINT

Add to your fstab

sudo nano /etc/fstab
## Use one of the identifiers you found to reference the correct partition
# /dev/sda1 /mnt/data ext4 defaults 0 2
# UUID=4b313333-a7b5-48c1-a957-d77d637e4fda /mnt/data ext4 defaults 0 2
LABEL=datapartition /mnt/data ext4 defaults 0 2

 

Ref: https://www.digitalocean.com/community/tutorials/how-to-partition-and-format-storage-devices-in-linux#step-2-identify-the-new-disk-on-the-system

Ref: https://www.tecmint.com/create-new-ext4-file-system-partition-in-linux/

 
Posted : 20/03/2025 6:58 pm
Share: