Aero-Graphics
Dabbler
- Joined
- Jun 19, 2023
- Messages
- 16
I had a little SNAFU with my hardware and it appears that the partition table on my drives has been corrupted to the point that TrueNAS will no longer recognize them. I was able to boot a Linux live environment and it will recognize the partitions and mount the ZFS pool. So, I was able to get a copy of the data off just in case. I am now attempting to rebuild the partition table on TrueNAS, but I'm running into a little trouble. Gdisk on Linux shows this for a partition table:
So, I thought that the following commands in TrueNAS might do the trick:
But, I don't even get past the first command:
'geom disk list' shows all the physical drives, but because of the corrupt partition tables I appear unable to perform any operations on them. I'm much more familiar with Linux, what do I need to do to be able to write a new partition table in TrueNAS/FreeBSD?
Thanks,
Rob
Code:
Number Start (sector) End (sector) Size Code 1 128 4194431 2.0 GiB A502 2 4194432 23437770711 10.9 TiB A504
So, I thought that the following commands in TrueNAS might do the trick:
Code:
gpart create -s gpt <device> gpart add -b 128 -s 4194303 -t freebsd-swap <device> gpart add -b 4194432 -s 23433576279 -t freebsd-zfs <device>
But, I don't even get past the first command:
Code:
root@truenas[~]# gpart create -s gpt da0 gpart: geom 'da0': Operation not permitted
'geom disk list' shows all the physical drives, but because of the corrupt partition tables I appear unable to perform any operations on them. I'm much more familiar with Linux, what do I need to do to be able to write a new partition table in TrueNAS/FreeBSD?
Thanks,
Rob