!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

549 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org146 Servers

Load older messages


SenderMessageTime
24 Mar 2024
@conr:mozilla.orgconroh right21:45:05
@conr:mozilla.orgconr so i want to wipe all the magic strings with -a? 21:47:37
@elvishjerricco:matrix.orgElvishJerricco conr: that's what I do 21:49:32
@conr:mozilla.orgconr hmm still shows the same name and label in cfdisk. 21:54:59
@conr:mozilla.orgconrit did ask me witch filesystem i wanted, gpt, fat, etc...21:56:16
@conr:mozilla.orgconr * it did ask me which filesystem i wanted, gpt, fat, etc...21:56:25
@elvishjerricco:matrix.orgElvishJerricco conr: did you wipefs the individual partitions or the whole disk? Like wipefs -a /dev/nvme0n1 will just erase the GPT but the file systems on the partitions will remain 21:58:57
@elvishjerricco:matrix.orgElvishJerricco well, on what used to be the partitions 21:59:07
@elvishjerricco:matrix.orgElvishJerriccoso when you create the same partition table again they'll get "resurrected" so to speak21:59:24
@conr:mozilla.orgconr i deleted the partitions with cfdisk first 21:59:37
@conr:mozilla.orgconr then tried wipefs. 21:59:42
@elvishjerricco:matrix.orgElvishJerriccoright, that's just wiping the partition table21:59:48
@elvishjerricco:matrix.orgElvishJerriccoso when you put back the same partitions, their contents are still the same as they used to be22:00:00
@elvishjerricco:matrix.orgElvishJerriccoyou need to wipefs the individual partitions first22:00:10
@elvishjerricco:matrix.orgElvishJerriccothen you can repartition the disk (or not, if you already like the partition layout)22:00:21
@conr:mozilla.orgconrwhat if i can't remember layout?22:01:00
@conr:mozilla.orgconri'll just recreate the zpool then destroy it22:09:13
@conr:mozilla.orgconr ElvishJerricco: i am doing it wrong? should the type be crypt? 23:42:49
@conr:mozilla.orgconr
NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda             8:0    0  10.9T  0 disk
└─sda1          8:1    0  10.9T  0 part
sdb             8:16   0  10.9T  0 disk
└─sdb1          8:17   0  10.9T  0 part
sdc             8:32   0   1.8T  0 disk
└─sdc1          8:33   0   1.8T  0 part
sdd             8:48   0   1.8T  0 disk
└─sdd1          8:49   0   1.8T  0 part
23:42:56
@conr:mozilla.orgconr *
NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda             8:0    0  10.9T  0 disk
└─sda1          8:1    0  10.9T  0 part
sdb             8:16   0  10.9T  0 disk
└─sdb1          8:17   0  10.9T  0 part
sdc             8:32   0   1.8T  0 disk
└─sdc1          8:33   0   1.8T  0 part
sdd             8:48   0   1.8T  0 disk
└─sdd1          8:49   0   1.8T  0 part
nvme0n1       259:0    0 931.5G  0 disk
├─nvme0n1p1   259:1    0     1G  0 part  /boot
├─nvme0n1p2   259:2    0    32M  0 part
│ └─cryptkey  254:0    0    16M  0 crypt
├─nvme0n1p3   259:3    0    32G  0 part
│ └─cryptswap 254:1    0    32G  0 crypt [SWAP]
└─nvme0n1p4   259:4    0 898.5G  0 part
  └─cryptroot 254:2    0 898.5G  0 crypt
23:43:25
@elvishjerricco:matrix.orgElvishJerricco you haven't luksFormat'd them yet 23:43:25
@conr:mozilla.orgconri tried23:43:34
@conr:mozilla.orgconr i mean i follwed the steps and it worked against /dev/sda1, /dev/sdb1` etc... 23:44:17
@conr:mozilla.orgconr * i mean i follwed the steps and it worked against /dev/sda1, /dev/sdb1\ etc... 23:44:21
@conr:mozilla.orgconr * i mean i follwed the steps and it worked against /dev/sda1, /dev/sdb1/ etc... 23:44:27
@conr:mozilla.orgconr * i mean i follwed the steps and it worked with /dev/sda1, /dev/sdb1/ etc... 23:45:36
@conr:mozilla.orgconr do i need a └─ like a subpartition? 23:46:05
@elvishjerricco:matrix.orgElvishJerricco conr: oh, no, TYPE should say part for the physical partition. It says "crypt" for the unlocked virtual device 23:46:45
@elvishjerricco:matrix.orgElvishJerricco you haven't cryptsetup open'd them yet 23:46:52
@conr:mozilla.orgconr i know how to do it with gdisk but not cfdisk 23:47:11

Show newer messages


Back to Room ListRoom Version: 10