1 (edited by Valiente 2013-09-07 14:15:17)

Topic: Redimensioning virtual disks

redimensioning virtual disks
I download the iso of Gparted to mount as the CD/DVD device in virtualbox
when I try to resize I obtain an error. Even i don't know how can I recover or document this error from inside the virtual machine.
i put screenshots of my tempts.
best regards. Nice to be here.

No screenshots allows me the forum.
The message i received is :
"Ocurrió un error al aplicar las operaciones"
Errro applying operations

Perhaps you know the frequent error messages when resizing virtual disks. i have space not assigned from my original disks of 10 GB and i would like to become in 50 GB. I have apply the command from virtualbox :

Y:\VirtualBox\Data\Machines\WindowsXPpro-btwinVA-COMUNICACIONES Clone\WindowsXPpro-btwinVA-COMUNICACIONES Clone-disk3.vdi

Vboxmanage modifyhd "Y:\VirtualBox\Data\Machines\WindowsXPpro-btwinVA-COMUNICACIONES\WindowsXPpro-btwinVA-COMUNICACIONES-disk3.vdi"  --resize 50000

how can I document the problem to put the result here. please a detailed tutorial i am a dummie.
How can i solve this problem. I need to make the disks bigger.

best Regards

2

Re: Redimensioning virtual disks

Would you be able to provide the gparted_details.htm log file?

See Saving GParted Details.

3

Re: Redimensioning virtual disks

I have done this exactly :

Copying to Hard Drive Partition

    Create a mount point directory by entering:

    user@debian:~$ sudo mkdir /tmp/myhd

    Mount the hard drive partition. For example, to mount the first partition sda1:

        To mount an NTFS partition, enter:

        user@debian:~$ sudo mount -t ntfs-3g /dev/sda1 /tmp/myhd

        To mount other partitions, such as ext2 or fat32, enter:

        user@debian:~$ sudo mount /dev/sda1 /tmp/myhd

    To copy a file, such as /root/gparted_details.htm, enter:

    user@debian:~$ sudo cp /root/gparted_details.htm /tmp/myhd

    When you are finished copying files, unmount the hard drive partition by entering:

    user@debian:~$ sudo umount /tmp/myhd


Where can I find myhd outside the virtual machine ?
or where is the tmp folder ?

Best Regards

4

Re: Redimensioning virtual disks

The virtual machine is under windows xp pro
and the host with w7-64
I have empty the cd unit to enter in the virtual machine. I received notice in the trayicon of a new disk, but I can't find.

5

Re: Redimensioning virtual disks

If the partition /dev/sda1 was mounted on /tmp/myhd and that is where you copied gparted_details.htm, then the file is at the top level of that partition.  For example if your virtual machine normally mounts /dev/sda1 at "/", then the file is available at /gparted_details.htm.

You can learn where GNU/Linux automatically mounts partitions by looking at the contents of the file /etc/fstab in your virtual machine.

6

Re: Redimensioning virtual disks

gedakc wrote:

If the partition /dev/sda1 was mounted on /tmp/myhd and that is where you copied gparted_details.htm, then the file is at the top level of that partition.  For example if your virtual machine normally mounts /dev/sda1 at "/", then the file is available at /gparted_details.htm.

You can learn where GNU/Linux automatically mounts partitions by looking at the contents of the file /etc/fstab in your virtual machine.

I am not a linux user. I have a ubuntu virtual machine and a very basic knowledge.
If I have windows systems i don't understand the /etc/fstab in my virtual machine
The way gparted sees the partitions and the name of the disks is not equal in windows.
When I shutdown gparted i only can see - i supposed so - in the windows partitions.
Where is that file ?
I don't know.
I'll try now to locate with the windows search option under xp.
And comment
best Regards

7

Re: Redimensioning virtual disks

It was situated in c:\gparted_details.htm

The text :

GParted 0.16.1

Libparted 2.3

Agrandar /dev/sdb1 de 10.00 GiB MiB a 48.83 GiB  00:00:00    ( ERROR ) 
     calibrar /dev/sdb1  00:00:00    ( ÉXITO ) 
     ruta: /dev/sdb1
inicio: 63
fin: 20964824
tamaño: 20964762 (10.00 GiB) 

comprobar errores en el sistema de archivos en /dev/sdb1 y (si es posible) arreglarlos  00:00:00    ( ÉXITO ) 
     ntfsresize -P -i -f -v /dev/sdb1 
     ntfsresize v2013.1.13AR.1 (libntfs-3g)
Device name : /dev/sdb1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 10733957632 bytes (10734 MB)
Current device size: 10733958144 bytes (10734 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 2965 MB (27,6%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFTMirr : 5367 MB 1
Ordinary : 5368 MB 10
You might resize at 2964373504 bytes or 2965 MB (freeing 7769 MB).
Please make a test run using both the -n and -s options before real resizing!




ampliar partición desde 10.00 GiB a 48.83 GiB  00:00:00    ( ERROR ) 
     inicio antiguo: 63
fin antiguo: 20964824
tamaño antiguo: 20964762 (10.00 GiB) 
inicio solicitado: 63
fin solicitado: 102399999
tamaño solicitado: 102399937 (48.83 GiB) 

mensajes de libparted    ( INFO ) 
     Parted can't resize partitions managed by Windows Dynamic Disk. 



========================================


Best Regards

8

Re: Redimensioning virtual disks

Thank you for posting the gparted_details.htm log file.  The problem is listed at the end of the log:

Valiente wrote:
mensajes de libparted    ( INFO ) 
     Parted can't resize partitions managed by Windows Dynamic Disk.

Unfortunately Windows dynamic disk partitions are not well understood by the open source community as Microsoft does not freely publish the specifications.

This is a known problem.  See also Bug 634668 - Resizing of NTFS fails if partition type is 42.

If you need to resize a Windows dynamic disk, then unfortunately GParted will not work for you.  You might try searching for other tools that might handle resizing Windows dynamic disks.

9

Re: Redimensioning virtual disks

Best Regards