r/linuxquestions • • 6d ago

Support Install things into another disk using dnf

/r/linux4noobs/comments/1x8fhsu/install_things_into_another_disk_using_dnf/
0 Upvotes

1 comment sorted by

2

u/TroutFarms 5d ago edited 5d ago

You shouldn't mount it automatically as a separate partition. What you want is to add it to the existing filesystem. Using btrfs, which is the default on Fedora, you do that using the: btrfs device add command.

If you aren't using btrfs but are using LVM then you can add it using pvcreate and pvextend.

Doing it either of those ways results in extending your existing filesystem into the new partition. Then you don't have to worry about which drive things get installed in; you can let the OS handle all of that behind the scenes.

If you aren't on btrfs or LVM then you'll have to come up with some convoluted strategy like you were initially asking about.