this post was submitted on 04 Sep 2023
11 points (100.0% liked)
Sysadmin
5587 readers
1 users here now
A community dedicated to the profession of IT Systems Administration
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There is a filesystem type field in the partition table. Formatting the partition won't change it. Delete the partition and recreate it with the correct filesystem type. In parted you can do that with "mkpartfs".
Ah my apologies, I used the word formatted incorrectly. I use parted to do: ''' Rm 1 Mkpart primary btrfs 1 3,6T '''
Parted then shows the btrfs filesystem. If I then quit and look at 'lsblk -fs' it shows me the table in my post. I think I do this right. Im going to remove the disk and see how it behaves on another pc.
After creating it with mkpart, are you formatting it with mkfs.btrfs? You need to both steps (create partition and format it). Also, try running partprobe or rebooting after making changes so that the kernel re-detects it.
Hey thanks! Thats it. mkfs.btrfs fixed it. Its weitd though that the other disks were recognized correctly.
Now I can go and experiment with raid setups