CloneVDI tool: Linux part

Discussions related to using VirtualBox on Linux hosts.
paddler
Posts: 20
Joined: 3. Jan 2011, 17:18
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: ubuntu 10.10 win xp

Re: CloneVDI tool: Linux part

Post by paddler »

Thanks mpack. Thought I was going to need vboxmanage to do this. "Release" was grayed out in my case, because I had already replaced/"removed" the original .vdi through <Settings - Storage - IDE Controller>. The "Remove" option worked fine though. Vm starts up now without the error message. cheers
flomow
Posts: 14
Joined: 25. Oct 2011, 13:59
Primary OS: Other
VBox Version: OSE other
Guest OSses: windows, linux

Re: CloneVDI tool: Linux part

Post by flomow »

Hey,

I am using clonevdi on CENTOS through wine. Unfortunally I can not compact vdis. Cloning with old and new UUUID works great, but when compacting a vdi the partition table ist always set to none (if i load the new vdi into the programm). I am using vclonecdi not with admin rights (is this a problem)? Sorry but I am not the fittest using linux, please write me what additional info you need!

Thanks, flomow
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: CloneVDI tool: Linux part

Post by stefan.becker »

You have to check the option, its not checked as default.
flomow
Posts: 14
Joined: 25. Oct 2011, 13:59
Primary OS: Other
VBox Version: OSE other
Guest OSses: windows, linux

Re: CloneVDI tool: Linux part

Post by flomow »

Hey,
flomow wrote:Unfortunally I can not compact vdis. Cloning with old and new UUUID works great, but when compacting a vdi the partition table ist always set to none (if i load the new vdi into the programm).
as written above, the file size is smaller, but the partition table is "gone". BTW: Starting the vm with the "new" vdi results in "no operating system found", etc
stefan.becker wrote:You have to check the option, its not checked as default.
What do you mean with that?

Thanks, flomow
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool: Linux part

Post by mpack »

flomow wrote:when compacting a vdi the partition table ist always set to none
I can guarantee that CloneVDI is not erasing partition tables - I think others would have noticed that by now. I can think of two strong possibilities, first is that you are cloning the wrong file, e.g. you are cloning the base VDI of a snapshot chain. Second is that you don't have appropriate read or write permission for either the source or destination folders.

I would like to know how you are using CloneVDI - is it under Wine, or are you trying to use in inside a Windows VM while writing to a shared folder?
flomow
Posts: 14
Joined: 25. Oct 2011, 13:59
Primary OS: Other
VBox Version: OSE other
Guest OSses: windows, linux

Re: CloneVDI tool: Linux part

Post by flomow »

Hey mpack,

thanks for you reply.

I am using it with wine. Yesterday I tried compacting a WinXp-disk 15GB. one partition with ntfs. no snapshot chain. after processing just in clone-mode (new or keep uuuid) and loading the new vdi into clonevdi it shows at the partition-field: ,ntfs like before. After checking the compact option (in both new or keep uuuid) the part-field shows: none. The vdi was not bootable anymore. I tried this with user and root privileges. All the same.

Today I tried the following:

generate a new vdi. Add it to a winxp vm, format it with ntfs add dummy-data 800MB, then remove part of that data 700MB. .

then tried the mentioned above.
Obviosly every thing worked fine.I tried it with other vdis every thing worked fine.

I am sorry, but I dont know where the problem is just with this secial vdi.
I attached some snapshots.

Thanks in advance.
Attachments
Inside the Vm (Gparted ISO )
Inside the Vm (Gparted ISO )
Magical Snap - 2012.09.05 13.01 - 003.jpg (78.38 KiB) Viewed 78709 times
Magical Snap - 2012.09.05 12.57 - 002.jpg
Magical Snap - 2012.09.05 12.57 - 002.jpg (44.46 KiB) Viewed 78709 times
Magical Snap - 2012.09.05 12.56 - 001.jpg
Magical Snap - 2012.09.05 12.56 - 001.jpg (29.57 KiB) Viewed 78709 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool: Linux part

Post by mpack »

Well, the obvious thing that leaps out at me is that there is only one partition defined on that drive, but it isn't defined in the first partition entry as it normally would be. Instead the first partition entry is all zeros, with a start LBA of zero (coincidentally where the partition map is also stored). CloneVDI shouldn't be upset by that, but it's a credible bug (perhaps my earlier guarantee was a bit rash...) : part of the compaction job done by CloneVDI is to discard blocks in unpartitioned areas, and the empty and zero size partition entry at the top of the list may be confusing its identification of "between partitions" areas.

Is there any way you can delete that zero partition to test this idea?
flomow
Posts: 14
Joined: 25. Oct 2011, 13:59
Primary OS: Other
VBox Version: OSE other
Guest OSses: windows, linux

Re: CloneVDI tool: Linux part

Post by flomow »

Hey,

the problem is that the first zero partition isnt recognized by gparted nor fdisk -l. Its somehoe not there... :x

I'll try to copy the big partition only to another disk using qparted boot-iso.
(or do you have some other suggestion)

flomow
Last edited by flomow on 5. Sep 2012, 16:27, edited 1 time in total.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool: Linux part

Post by mpack »

flomow wrote:the problem is that the first zero partition isnt recognized by gparted nor fdisk -l. Its somehoe not there... :x
Well, just to be clear: there is no such partition, so of course fdisk/gparted will not list one. My point is that CloneVDI may be confused by the fact that slot 2 in the partition map is defined, while slot 1 has been left blank (as have slots 3 and 4 of course). Added to that is the fact that the first partition is defined to start 2MB into the disk image, which I suspect means that CloneVDI may be considering the first 2MB between slots 1 and 2 as unpartitioned - and therefore discardable from the clone when compacting.
flomow
Posts: 14
Joined: 25. Oct 2011, 13:59
Primary OS: Other
VBox Version: OSE other
Guest OSses: windows, linux

Re: CloneVDI tool: Linux part

Post by flomow »

What do you suggest to "move" the partition to slot 1?
thanks, flomow
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool: Linux part

Post by mpack »

flomow wrote:What do you suggest to "move" the partition to slot 1?
thanks, flomow
If your partition manager allows that, then yes if you will.
flomow
Posts: 14
Joined: 25. Oct 2011, 13:59
Primary OS: Other
VBox Version: OSE other
Guest OSses: windows, linux

Re: CloneVDI tool: Linux part

Post by flomow »

flomow wrote: I'll try to copy the big partition only to another disk using qparted boot-iso.
That worked for me, so far, Compacting works without errors.

Best regards, flomow
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool: Linux part

Post by mpack »

Sorry, please clarify: are you saying that the operation, which previously did not work, now works on the modified disk which has the same big partition in the first slot of the partition table?

Also (if yes to the above): does the partition still start at LBA 2048?
flomow
Posts: 14
Joined: 25. Oct 2011, 13:59
Primary OS: Other
VBox Version: OSE other
Guest OSses: windows, linux

Re: CloneVDI tool: Linux part

Post by flomow »

Hey, I did the following:
  • Creating a new vdi disk with the same size as the "broken" one
  • Adding it to the WinXP-VM
  • Booting with a qpartesd live image
  • Writing the partitiontalbe to sdb
  • copying sda1 to sdb
  • set the boot flag to sdb1
  • shutdown
  • compactig it with clone vdi
Note: CloneVDI said now "NTFS" instead of",NTFS" in the partitions-field.

Screenshots attached.

Flomow
Attachments
Magical Snap - 2012.09.05 20.25 - 005.jpg
Magical Snap - 2012.09.05 20.25 - 005.jpg (45.47 KiB) Viewed 78691 times
Magical Snap - 2012.09.05 20.25 - 004.jpg
Magical Snap - 2012.09.05 20.25 - 004.jpg (32.84 KiB) Viewed 78691 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool: Linux part

Post by mpack »

Thanks for the info, that gives me a lot to go on. I'll have a look at the code this weekend.
Post Reply