GParted unrecognized disk label on new HDD, Partition changes won't save
https://askubuntu.com/questions/1541290/gparted-unrecognized-disk-label-on-new-hdd-partition-changes-wont-save
I am trying to set up my new HDD, a Seagate Ironwolf Pro, on my home server. The server runs Ubuntu 24.04 LTS.
I am having trouble setting up my HDD with that, I mean creating partitions, etc.
I tried with gdisk and it seems to work while executing it, but does nothing in the end.
Results of sudo gdisk /dev/sda:
nezran@bespin:~$ sudo gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.10
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries in memory.
Command (? for help): p
Disk /dev/sda: 31251759104 sectors, 14.6 TiB
Model: ST16000NE000-2RW
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): F2078324-1C84-48A8-AFF2-14CC3F94032F
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 31251759070
Partitions will be aligned on 2048-sector boundaries
Total free space is 31251759037 sectors (14.6 TiB)
Number Start (sector) End (sector) Size Code Name
Command (? for help): n
Partition number (1-128, default 1):
First sector (34-31251759070, default = 2048) or {+-}size{KMGTP}:
Last sector (2048-31251759070, default = 31251757055) or {+-}size{KMGTP}:
Current type is 8300 (Linux filesystem)
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
Command (? for help): p
Disk /dev/sda: 31251759104 sectors, 14.6 TiB
Model: ST16000NE000-2RW
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): F2078324-1C84-48A8-AFF2-14CC3F94032F
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 31251759070
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 31251757055 14.6 TiB 8300 Linux filesystem
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sda.
The operation has completed successfully.
nezran@bespin:~$
Results of lsblk:
nezran@bespin:/$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 4K 1 loop /snap/bare/5
loop1 7:1 0 10.7M 1 loop /snap/canonical-livepatch/286
loop2 7:2 0 73.9M 1 loop /snap/core22/1748
loop3 7:3 0 139.6M 1 loop /snap/docker/2976
loop4 7:4 0 258M 1 loop /snap/firefox/5701
loop5 7:5 0 516M 1 loop /snap/gnome-42-2204/202
loop6 7:6 0 91.7M 1 loop /snap/gtk-common-themes/1535
loop7 7:7 0 44.4M 1 loop /snap/snapd/23545
loop8 7:8 0 210.8M 1 loop /snap/thunderbird/634
sda 8:0 0 14.6T 0 disk
sdb 8:16 0 465.8G 0 disk
├─sdb1 8:17 0 1G 0 part /boot/efi
├─sdb2 8:18 0 2G 0 part /boot
└─sdb3 8:19 0 462.7G 0 part
└─ubuntu--vg-ubuntu--lv 252:0 0 100G 0 lvm /
sdc 8:32 0 931.5G 0 disk
└─sdc1 8:33 0 931.5G 0 part
nezran@bespin:/$
I have also tried with cfdisk but same result and with GParted I get the error "unrecognized disk label" every time I want to create a new partition table.
I only have this problem when the HDD is attached to my server. On my Windows device I was able to create partitions and use them. I also ran smartctl check, but all seemed fine.
Does anyone know what else can be done or if maybe the HDD has a problem?
I also tried to create a new label with fdisk but the same thing happens. While executing everything seems fine, but it won't be saved.
Results of fdisk:
Welcome to fdisk (util-linux 2.39.3).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
The size of this disk is 14.6 TiB (16000900661248 bytes). DOS partition table format cannot be used
on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table
format (GPT).
Created a new DOS (MBR) disklabel with disk identifier 0x273d9d7e.
Command (m for help): m
Help:
DOS (MBR)
a toggle a bootable flag
b edit nested BSD disklabel
c toggle the dos compatibility flag
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
u change display/entry units
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save & Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty MBR (DOS) partition table
s create a new empty Sun partition table
Command (m for help): g
Created a new GPT disklabel (GUID: B4667D88-B9C9-46B3-8609-9149A1C4A294).
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-31251759070, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-31251759070, default 31251757055):
Created a new partition 1 of type 'Linux filesystem' and of size 14.6 TiB.
Command (m for help): p
Disk /dev/sda: 14.55 TiB, 16000900661248 bytes, 31251759104 sectors
Disk model: ST16000NE000-2RW
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B4667D88-B9C9-46B3-8609-9149A1C4A294
Device Start End Sectors Size Type
/dev/sda1 2048 31251757055 31251755008 14.6T Linux filesystem
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
nezran@bespin:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 4K 1 loop /snap/bare/5
loop1 7:1 0 10.7M 1 loop /snap/canonical-livepatch/286
loop2 7:2 0 73.9M 1 loop /snap/core22/1748
loop3 7:3 0 139.6M 1 loop /snap/docker/2976
loop4 7:4 0 258M 1 loop /snap/firefox/5701
loop5 7:5 0 516M 1 loop /snap/gnome-42-2204/202
loop6 7:6 0 91.7M 1 loop /snap/gtk-common-themes/1535
loop7 7:7 0 44.4M 1 loop /snap/snapd/23545
loop8 7:8 0 210.8M 1 loop /snap/thunderbird/634
sda 8:0 0 14.6T 0 disk
sdb 8:16 0 465.8G 0 disk
├─sdb1 8:17 0 1G 0 part /boot/efi
├─sdb2 8:18 0 2G 0 part /boot