You are not logged in.
Pages: 1
Topic closed
Greetings!
On a disk drive there was ZFS filesystem installed, and now it's been replaced with btrfs. But "zfs_member" label remains as the disk label:
$ lsblk -f
sda
|----sda1 ntfs label1
sdb zfs_member
|----sdb1 btrfs label2How can this label be removed?
Last edited by nbd (2015-05-27 22:04:02)
bing different
Offline
No ideas?
UPDATE: seems like 'wipefs' does the job.
Last edited by nbd (2015-05-27 09:35:12)
bing different
Offline
You didn't post the full table with collumn headers and I also think you placed "zfs_member" incorrectly next to the disk instead of the partition (unless perhaps the entire disk was used by ZFS?). If I look at my ZFS volume zfs_member is FSTYPE:
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ext4 BOOT 78084ff0-4d07-4f29-9ab9-06de42c8cb33 /boot
├─sda2 ext4 ROOT 66546aee-aef7-4bfb-a396-5e1330019e19 /
└─sda3 ext4 HOME 908df2cb-c3f4-4368-b2f4-09879781d2ca /home
sdb
├─sdb1 zfs_member Data 4444402127394475649
└─sdb9
sdc
├─sdc1 zfs_member Data 4444402127394475649
└─sdc9
sdd
├─sdd1 zfs_member Data 4444402127394475649
└─sdd9
sr0
zd0 swap c9b47709-a106-499a-a0b8-8be8dd4d8b96 [SWAP]A label can be set with mkfs -L label. The FSTYPE gets overwritten when you create a filesystem. So if it was a zfs_member and you create an ext4 filesystem, it will show ext4 in the FSTYPE collumn.
Last edited by mouseman (2015-05-27 15:17:53)
Offline
I also think you placed "zfs_member" incorrectly next to the disk instead of the partition (unless perhaps the entire disk was used by ZFS?).
That was the case. And the label could not be removed even with gparted. For dealing with such cases there is a special program: wipefs.
bing different
Offline
And the label could not be removed even with gparted.
Because zfs_member wasn't a label, it was the FSTYPE of the disk.
Either way, please mark it as solved by editing your first post.
Offline
Because zfs_member wasn't a label, it was the FSTYPE of the disk.
Yes, in wipefs it's called a "signature".
bing different
Offline
I had the same issue. I opened the disk with `fdisk /dev/sdc` and there was a red warning saying something like that: "The type of disk is set to zfs_member. It will be erased on (w)rite" and I pressed "w" to write the changes(?) (there were no changes) and whole disk is wiped out! That was not an issue at this particular case, as I was poking around. I'm placing this experiment as a warning for others.
I started to recreate the partitions. As I was creating my partitions with a script of mine, I created the exact same layout, so fdisk displayed "Ext2 signature exists" and "LUKS signature exists" warnings. I interrupted the partitioning process and realized that the exact same partition table is now back (probably as my new partition table is exactly the same table as the previous one, it's like it's restored), so I didn't loose any data.
Offline
Thanks for the potentially relevant contribution, but the thread is old and the issue solved.
Closing.
Offline
Pages: 1
Topic closed