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 through the SCP
- 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?
===============================================================
Hallo,
Tut mir leid dass der Titel etwas wackelig ist.
Mehr Details:
Ich habe meinen eigenen Debian-Server auf meinem eigenen Rechner von zu Hause aus betrieben.
Ich habe den Server jetzt auf einen Root Server VPS umgezogen:
- Erstellen eines Offline-Images der Root-Partition, die das Betriebssystem enthält, mit dd (ich glaube ich habe die Erweiterung .raw verwendet)
- Hochladen dieses Bildes über das SCP
- davon booten
Überraschenderweise hat das sofort funktioniert, und ich habe mir nichts weiter dabei gedacht, bis ich mich entschied, die volle Festplatte zu nutzen - das Partitionsabbild ist nur 8 GB groß, ich habe 80 GB. Dies wird auch in fdisk oder df angezeigt - aber es zeigt mir auch dass die Partition als /dev/sda gemountet ist, NICHT als /dev/sda1.
Das Problem
Ich kann mit parted eine neue Partition erstellen, aber wenn ich versuche, ein Dateisystem darin zu erstellen, bekomme ich
mkfs: /dev/sda1 is apparently in use by the system; will not make a filesystem here.
Ähnlich auch mit
cryptsetup luksFormat /dev/sda1: Cannot use device /dev/sda1 which is in use (already mapped or mounted).
Wie kann ich eine neue Partition erstellen, um den gesamten Speicherplatz zu nutzen für den ich bezahle? Kann ich das aktuelle System so ändern, dass es sich in eine normale Partition „verwandelt“? Ich könnte das mit einem Offline-Snapshot machen, aber ich würde es vorziehen, es zu lösen, ohne einen vollständigen Snapshot hochladen zu müssen. Neustarts sind jedoch billig. GRUB ist installiert.
Oder verstehe ich das Problem doch falsch?