1

I have an empty drive disk for file storing it has no installed system image, I need to separate it on two partitions. I have Ubuntu 16 on another physical drive.

When I try via Gparted to

  1. Resize existent ext4
  2. Click 'New' on unallocated right part of gparted drive volume bar I am getting an error:

It is not possible to create more than 1 primary partition

If you want more partitions you should first create an extended partition. Such a partition can contain other partitions. Because an extended partition is also a primary partition it might be necessary to remove a primary partition first."

If there a another type of filesystem I need to reformat ext4 prior to creating 2nd partition? How it's called, what size does it have to be if I need two ext4 partitions afterwards?

Caution, questions: How to resize partitions? How to create partition on single partitioned disk are irrelevant, I've already proceeded through those receipts and getting an error DURING them.

Also Create partition from free space - cannot create more than 4 partitions is irrelevant, cause I have an empty drive which has no files, not the dual-boot case, not more than 4 partitions problem.

Update some comments answered:

I) > sudo apt-get install gparted

gparted is already the newest version (0.25.0-1)
libparted : 3.2

II) > lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1,8T 0 disk nvme0n1 259:0 0 465,8G 0 disk ├─nvme0n1p1 259:1 0 128M 0 part ├─nvme0n1p2 259:2 0 512M 0 part /boot/efi ├─nvme0n1p3 259:3 0 449,5G 0 part / └─nvme0n1p4 259:4 0 15,7G 0 part [SWAP]

III) > sudo gdisk -l /dev/sda

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries. Disk /dev/sda: 3907029168 sectors, 1.8 TiB Logical sector size: 512 bytes Disk identifier (GUID): 3A9249F3-291C-4F87-AE2C-72DF37A1302F Partition table holds up to 128 entries First usable sector is 34, last usable sector is 3907029134 Partitions will be aligned on 2048-sector boundaries Total free space is 3907029101 sectors (1.8 TiB)

IV) > df

Filesystem     1K-blocks      Used Available Use% Mounted on
udev             8010864         0   8010864   0% /dev
tmpfs            1609100     10072   1599028   1% /run
/dev/nvme0n1p3 463757104 255032720 185143816  58% /
tmpfs            8045484       936   8044548   1% /dev/shm
tmpfs               5120         4      5116   1% /run/lock
tmpfs            8045484         0   8045484   0% /sys/fs/cgroup
/dev/nvme0n1p2    523248      6260    516988   2% /boot/efi
tmpfs            1609100        48   1609052   1% /run/user/1000
MosQuan
  • 43

1 Answers1

2

If I make the assumption that you have a /dev/sda1 partition on your disk and that you have some unallocated space after it then the following should work using fdisk:

  1. Backup any data on the disk that you cannot afford to lose.
  2. Open a terminal and type sudo fdisk /dev/sda
  3. At the fdisk prompt type the letter p. This will show you what is currently on the disk you are working on and is just a check that it’s the right disk.
  4. At the fdisk prompt type the letter n followed by the letter p. This tells fdisk that you want a new primary partition.
  5. Accept the default for the partition number and the first sector. To use all of the remaining unallocated space accept the default for the last sector.
  6. At the fdisk prompt type the letter p. Again this is a check that the changes you are making are what you wanted.
  7. Finally at the fdisk prompt type the letter w to write the changes to the disk.

Exit fdisk and you should be done. Good luck!

PonJar
  • 1,973