!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

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

Load older messages


SenderMessageTime
13 May 2024
@producermatt:nixos.devProducerMatt joined the room.18:58:09
14 May 2024
@chrillefkrr:matrix.orgchrillefkrr joined the room.15:41:47
15 May 2024
@jowburner:matrix.orgjowburner joined the room.12:32:49
@aurorasystem:matrix.orgAurora Ennie Seidr set a profile picture.18:09:28
20 May 2024
@northben:pixelchef.netnorthben joined the room.20:33:51
22 May 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:25:51
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:28:06
@infinidoge:matrix.orgMigrated to @infinidoge:inx.moe changed their display name from Infinidoge to Migrated to @infinidoge:inx.moe.21:36:38
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️ joined the room.22:21:22
@infinidoge:matrix.orgMigrated to @infinidoge:inx.moe left the room.22:21:26
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️ changed their display name from Infinidoge 🏳️‍⚧️ to Migrated to @infinidoge:inx.moe.22:35:31
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️ changed their display name from Migrated to @infinidoge:inx.moe to Infinidoge.22:37:11
23 May 2024
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️ changed their display name from Infinidoge to Infinidoge🏳️‍⚧️.01:31:17
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️ changed their display name from Infinidoge🏳️‍⚧️ to Infinidoge 🏳️‍⚧️.01:31:27
@zoechi:matrix.orgzoechi joined the room.05:33:26
@lazycaaat:matrix.orglazycaaat joined the room.10:47:09
26 May 2024
@user6372:matrix.orgJasper left the room.17:25:48
@arndot:tchncs.dearndot joined the room.19:53:37
28 May 2024
@netpleb:matrix.orgnetpleb joined the room.17:50:30
@netpleb:matrix.orgnetplebI have a flake nixos system but where the root partition is ext4 and I would like to convert it to btrfs. There are some tutorials for non-nixos systems to do this, but I am a little confused how to do it on nixos.17:52:10
@k900:0upti.meK900Generally, reinstall is your best option 17:54:49
@k900:0upti.meK900If you really want to avoid that, boot a live CD, btrfs convert, mount as btrfs, adjust config, nixos-install17:55:20
@netpleb:matrix.orgnetpleb

the git repo / flake which declares the system is currently on the root partition itself, so my thinking is something like the following should work:

  1. clone git repo to thumbdrive
  2. boot into some sort of recovery mode (or do I need a full live distro on another thumbdrive and boot into it?)
  3. do the conversion to btrfs (btrfs convert ...), mount it, and so on
  4. nixos-generate-config and grab the relevant parts of the new hardware config, put them in flake
  5. nixos-rebuild switch
17:55:53
@netpleb:matrix.orgnetpleb
In reply to @k900:0upti.me
If you really want to avoid that, boot a live CD, btrfs convert, mount as btrfs, adjust config, nixos-install
Ok, thanks. I probably should just reinstall it seems, and properly backup beforehand.
17:57:13
@rvdp:infosec.exchangeRamses 🇵🇸You don't need to wipe the disks, you can do an installation as usual, but instead of creating new partitions, you do the conversion, and then continue with the installation as usual17:58:05
@rvdp:infosec.exchangeRamses 🇵🇸I'd still take a backup beforehand just in case though17:58:20
@netpleb:matrix.orgnetpleb
In reply to @rvdp:infosec.exchange
You don't need to wipe the disks, you can do an installation as usual, but instead of creating new partitions, you do the conversion, and then continue with the installation as usual
what about doing the whole thing over ssh? too risky?
18:01:23
@rvdp:infosec.exchangeRamses 🇵🇸If you're comfortable with kexec'ing into an image in memory, then it's doable. If you've never done that before, then I'd make sure that you're able to get to the machine in case you mess up18:03:13
@k900:0upti.meK900I would generally not do anything but routine updates over SSH with no backup plan18:04:40
@netpleb:matrix.orgnetpleb
In reply to @rvdp:infosec.exchange
If you're comfortable with kexec'ing into an image in memory, then it's doable. If you've never done that before, then I'd make sure that you're able to get to the machine in case you mess up
I have never done that before, but it sounds like that is what I would like to do. I can get to the machine physically if I mess up. Is kexec'ing better than, say, this: https://lord.re/en/posts/58-pivot_root-unmount-son-root/ ?
18:05:02

There are no newer messages yet.


Back to Room ListRoom Version: 10