Unable to change partition type...?

SharkBait

Active Member
Joined
Feb 14, 2022
Messages
30
Reaction score
17
Location
Pretoria
I am struggling to change a partition to Linux RAID:
Code:
user@h1016:~$ sudo mdadm -E /dev/nvme0n1
/dev/nvme0n1:
   MBR Magic : aa55
Partition[0] :   1875385007 sectors at            1 (type ee)
user@h1016:~$ sudo fdisk /dev/nvme0n1

Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): t
No partition is defined yet!

Command (m for help): n
Partition number (1-128, default 1):
First sector (34-1875384974, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-1875384974, default 1875384974):

Created a new partition 1 of type 'Linux filesystem' and of size 894.3 GiB.

Command (m for help): t
Selected partition 1
Partition type or alias (type L to list all): fd
Type of partition 1 is unchanged: Linux filesystem.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

user@h1016:~$ sudo mdadm -E /dev/nvme0n1
/dev/nvme0n1:
   MBR Magic : aa55
Partition[0] :   1875385007 sectors at            1 (type ee)

I have tried code 29 as well, but it just doesn't want to change... :-(
 
Don't bother with an old school mdadm raid setup.

Take a look at ZoL (ZFS On Linux) instead.

You get compression / deduplication / the ability to snapshot volumes at points in time / mirroring storage to external nodes and more.
 
Top
Sign up to the MyBroadband newsletter
X