CloneVDI tool: Linux part
-
- 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
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
-
- Posts: 14
- Joined: 25. Oct 2011, 13:59
- Primary OS: Other
- VBox Version: OSE other
- Guest OSses: windows, linux
Re: CloneVDI tool: Linux part
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
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
-
- Volunteer
- Posts: 7639
- Joined: 7. Jun 2007, 21:53
Re: CloneVDI tool: Linux part
You have to check the option, its not checked as default.
German Howto (Linux): http://www.linuxforen.de/forums/showthread.php?t=236444
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
-
- Posts: 14
- Joined: 25. Oct 2011, 13:59
- Primary OS: Other
- VBox Version: OSE other
- Guest OSses: windows, linux
Re: CloneVDI tool: Linux part
Hey,
Thanks, flomow
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", etcflomow 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).
What do you mean with that?stefan.becker wrote:You have to check the option, its not checked as default.
Thanks, flomow
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: CloneVDI tool: Linux part
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.flomow wrote:when compacting a vdi the partition table ist always set to none
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?
-
- Posts: 14
- Joined: 25. Oct 2011, 13:59
- Primary OS: Other
- VBox Version: OSE other
- Guest OSses: windows, linux
Re: CloneVDI tool: Linux part
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.
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 )
- Magical Snap - 2012.09.05 13.01 - 003.jpg (78.38 KiB) Viewed 82441 times
-
- Magical Snap - 2012.09.05 12.57 - 002.jpg (44.46 KiB) Viewed 82441 times
-
- Magical Snap - 2012.09.05 12.56 - 001.jpg (29.57 KiB) Viewed 82441 times
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: CloneVDI tool: Linux part
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?
Is there any way you can delete that zero partition to test this idea?
-
- Posts: 14
- Joined: 25. Oct 2011, 13:59
- Primary OS: Other
- VBox Version: OSE other
- Guest OSses: windows, linux
Re: CloneVDI tool: Linux part
Hey,
the problem is that the first zero partition isnt recognized by gparted nor fdisk -l. Its somehoe not there...
I'll try to copy the big partition only to another disk using qparted boot-iso.
(or do you have some other suggestion)
flomow
the problem is that the first zero partition isnt recognized by gparted nor fdisk -l. Its somehoe not there...
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.
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: CloneVDI tool: Linux part
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 wrote:the problem is that the first zero partition isnt recognized by gparted nor fdisk -l. Its somehoe not there...
-
- Posts: 14
- Joined: 25. Oct 2011, 13:59
- Primary OS: Other
- VBox Version: OSE other
- Guest OSses: windows, linux
Re: CloneVDI tool: Linux part
What do you suggest to "move" the partition to slot 1?
thanks, flomow
thanks, flomow
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: CloneVDI tool: Linux part
If your partition manager allows that, then yes if you will.flomow wrote:What do you suggest to "move" the partition to slot 1?
thanks, 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
That worked for me, so far, Compacting works without errors.flomow wrote: I'll try to copy the big partition only to another disk using qparted boot-iso.
Best regards, flomow
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: CloneVDI tool: Linux part
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?
Also (if yes to the above): does the partition still start at LBA 2048?
-
- Posts: 14
- Joined: 25. Oct 2011, 13:59
- Primary OS: Other
- VBox Version: OSE other
- Guest OSses: windows, linux
Re: CloneVDI tool: Linux part
Hey, I did the following:
Screenshots attached.
Flomow
- 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
Screenshots attached.
Flomow
- Attachments
-
- Magical Snap - 2012.09.05 20.25 - 005.jpg (45.47 KiB) Viewed 82423 times
-
- Magical Snap - 2012.09.05 20.25 - 004.jpg (32.84 KiB) Viewed 82423 times
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: CloneVDI tool: Linux part
Thanks for the info, that gives me a lot to go on. I'll have a look at the code this weekend.