Score:0

Running Linux Server: Howto Install Ubuntu to an Available Empty Partition & Migrate?

mw flag

I want to install Ubuntu on a headless server, over my present Linux install (older Ubuntu and a different flavor), using an available empty partition.

My root device has /boot, / and the empty partition (call it E). From the running Linux server, I'd like to install Ubuntu to E and then shift the system to running from E.

Then, I'd like wipe the original / partition, copy E over it, and update grub so I can boot into that. Then, wiping E and expanding the original partition to the whole space, hopefully I should be good.

Pointers would be much appreciated.

Nikita Kipriyanov avatar
za flag
Basically you create a new filesystem on that partition for the root and use `debootstrap` utility to bootstrap the system there. Then, when all packages you wanted are installed, you reconfigure your current bootloader to use that partition as the root. You can pull the condensed path from [here](https://gist.github.com/81887821/1bbd2ff019548ddc01e7cd989b858ef0); just adapt it to your needs if you don't want BTRFS.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.