Create partition of >4 TB HDD, format, resize, ...

questions, answers, problems, reviews, ...
.:: Preferred language(s): english
.:: Permissions: everybody
Post Reply
User avatar
geohei
Site Admin
Posts: 3388
Joined: Tuesday, 19.11.2002 07:56
Location: Luxembourg
Contact:

Create partition of >4 TB HDD, format, resize, ...

Post by geohei »

Code: Select all

root@ganymede:~# parted /dev/sdc
(parted) print # display the partition table, available devices, free space, all found partitions, or a particular partition
...
(parted) mklabel gpt # create a new disklabel (partition table)
...
(parted) print free # Check free space and existing partitions
...
(parted) mkpart rm4 2048s 100% # create a partition w/ name "rm4" accross 100% of the total disk capacity
...

Code: Select all

root@ganymede:~# mkfs.ext4 /dev/sdc1 # make filesystem (ext4)
...
Ref.:
https://rainbow.chard.org/2013/01/30/ho ... ng-parted/

Code: Select all

root@ganymede:~# e2fsck -f /dev/sdc1 # check filesystem before resize operation
...

Code: Select all

root@ganymede:~# resize2fs /dev/sdc1 # resize to full partition size
...
Image
Post Reply