Virtuelle Festplatte vergrösern (Linux)

Allgemeine Diskussionen über den Einsatz von VirtualBox.
Post Reply
Elmar
Posts: 30
Joined: 1. Nov 2016, 11:29

Virtuelle Festplatte vergrösern (Linux)

Post by Elmar »

Mein Host ist ein ubuntu und der Gast ein CentOS6 welche vergrösert werden soll

Hierzu habe ich den Befel eingegeben.

Code: Select all

root@HP-Server /mnt/media1/vbox-isos/CentOS6 > VBoxManage modifyhd --resize 15000 CentOS6.vdi
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Code: Select all

VBoxManage showhdinfo CentOS6.vdi
UUID:           09ddebbb-03c8-4b2d-8422-4d1230912058
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       /mnt/media1/vbox-isos/CentOS6/CentOS6.vdi
Storage format: VDI
Format variant: dynamic default
Capacity:       15000 MBytes
Size on disk:   6849 MBytes
Encryption:     disabled
Nur ich habe immer noch 6.5 Gig zur Verfügung und keine 15

Was muß noch getan werden um die gewünschte Kapazität zu nutzen?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Virtuelle Festplatte vergrösern (Linux)

Post by socratis »

[color=#BF6000]DeepL translator[/color] wrote: Nur ich habe immer noch 6.5 Gig zur Verfügung und keine 15
Only I still have 6.5 gig available and no 15 gigs left.
The command that you gave, resized the HD to 15000 MB, total size. Your new, resized HD *is* 15000 MB total size, as you can see from the "VBoxManage showhdinfo" command. And from that you use 6849 MB, which leaves another (15000-6849)=8151 MB available.

Take also a look at "How to resize a Virtual Drive".
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Elmar
Posts: 30
Joined: 1. Nov 2016, 11:29

Re: Virtuelle Festplatte vergrösern (Linux)

Post by Elmar »

Habe mit gparted die Partition vergrößert.Aber an der Größe der Platte hat sich nichts verändert
Noch jemand eine Idee

Code: Select all

[root@PXE-Server ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_pxeserver-lv_root
                      6,5G  2,5G  3,7G  40% /
tmpfs                 502M     0  502M   0% /dev/shm
/dev/sda1             477M   52M  400M  12% /boot
[root@PXE-Server ~]#
Attachments
gparted.JPG
gparted.JPG (43.91 KiB) Viewed 2655 times
Post Reply