Hello,
I'm sorry if the title is a little wobbly.
More detail:
I ran my own Debian server on my own machine from home.
I now moved the server to a VPS "root server" by
- creating an offline image of the root partition containing the OS, with dd (iirc I used the extension .raw)
- uploading that image to the new provider through their web interface
- booting from it
Surprisingly, this worked immediately, and I thought nothing more of it, until I decided to make use of the full disk - the partition image is only 8GB, I have 80GB. This also shows up in utilities like
fdisk or
df, however - It shows me that the partiion is mounted as /dev/sda, NOT /dev/sda1.
The problem I can create a new partition with
parted, but whenever I try to create a filesystem in it I get
mkfs: /dev/sda1 is apparently in use by the system; will not make a filesystem here.
Very similar with
cryptsetup luksFormat /dev/sda1: Cannot use device /dev/sda1 which is in use (already mapped or mounted). How can I create a new partiion to utilise all the storage I'm paying for? Can I change the current system in a way that it "turns into" a normal partition? I could do that with an offline snapshot, but I would prefer to solve it without having to upload a full snapshot. Reboots are cheap, however. GRUB is installed.
Or am I misunderstanding the problem?