LMDE & VirtualBox Clone Issue [Solved...in a way]
Posted: Mon Jun 06, 2011 5:49 pm
Last month I built myself a new PC and installed LMDE. I had been running LMDE on my old PC but decided to upgrade the hardware.
For the first time ever I have formatted my partitions with ext4 and am using kernel version 2.6.32-5-amd64.
I want to experiment with LMDE without breaking my main install so I installed VirtualBox 4.0.8 and created a LMDE 64bit guest machine. With all the updates installed on the guest machine I now want to clone it but this is where I am having problems.
Following the various guides I have found online I have tried the clonehd command
VBoxManage clonehd LMDE.vdi LMDE_clone.vdi
I have tried this command in various ways:
With and without LMDE.vdi being released in Virtual Media Manager.
With and without Virtual Box running, the LMDE virtual machine was switched off when VB was running.
Navigating to the folder where LMDE.vdi resides and running the command from there and also
running it with full path names.
Running the command as myself and also using sudo
Each time the result is always the same, the output from the command is
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID:
As you can see there is no new UUID created and when I look in the folder there is no clone file.
When watching the folder, while the command is running, a file appears with the LMDE_clone.vdi name but when the cloning is about 30% through the file disappears and the process jumps up to 100%.
I have tried copying the file in Nautilus, as myself and as superuser, but I get the error:
Error splicing file: Input/output error
I have also tried copying the file in the terminal, again as myself and as superuser, but get the error:
cp: reading `LMDE_VM.vdi': Input/output error
I don't know if the issue is with Virtual Box, the kernel or ext4, or a combination of them. Has anyone else experienced this problem?
Searching online the 'splicing file error' seems to occur with large file sizes, my file is 5.7GB. In some cases the problem has been down to the errors on the disks but mine is a brand new Samsung Spinpoint F3. I am not saying it isn't down to the hardware but I think unlikely, especially as the virtual machine boots and runs fine.
I found a Ubuntu thread where people have the same issue and the only solution is to use ddrescue.
http://ubuntuforums.org/showthread.php?t=1500384
There is a Peppermint thread where the problem is being experienced with PCManFM. In one post Kendall, the maintainer of LM LXDE and Fluxbox editions, says they are aware of the issue with LXDE and it is being worked on.
http://peppermintos.net/viewtopic.php?f=54&t=3028
On a number of other threads I found the only way around has been to boot into Windows and create a copy of the file that way.
Is anyone able to help me with this issue?
As an experiment I booted my PC using a LM7 XFCE Live CD to see if I could copy the file under that Mint flavour. I mounted the ext4 partition but couldn't see any of the folders on the partition so wasn't able to attempt the copy.
I am wondering if I should re-install LMDE but format my partitions in ext3. Maybe I should create a virtual machine first to try it out.
Thanks for any help or guidance you can give me.
(Apologies for the long post)
For the first time ever I have formatted my partitions with ext4 and am using kernel version 2.6.32-5-amd64.
I want to experiment with LMDE without breaking my main install so I installed VirtualBox 4.0.8 and created a LMDE 64bit guest machine. With all the updates installed on the guest machine I now want to clone it but this is where I am having problems.
Following the various guides I have found online I have tried the clonehd command
VBoxManage clonehd LMDE.vdi LMDE_clone.vdi
I have tried this command in various ways:
With and without LMDE.vdi being released in Virtual Media Manager.
With and without Virtual Box running, the LMDE virtual machine was switched off when VB was running.
Navigating to the folder where LMDE.vdi resides and running the command from there and also
running it with full path names.
Running the command as myself and also using sudo
Each time the result is always the same, the output from the command is
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID:
As you can see there is no new UUID created and when I look in the folder there is no clone file.
When watching the folder, while the command is running, a file appears with the LMDE_clone.vdi name but when the cloning is about 30% through the file disappears and the process jumps up to 100%.
I have tried copying the file in Nautilus, as myself and as superuser, but I get the error:
Error splicing file: Input/output error
I have also tried copying the file in the terminal, again as myself and as superuser, but get the error:
cp: reading `LMDE_VM.vdi': Input/output error
I don't know if the issue is with Virtual Box, the kernel or ext4, or a combination of them. Has anyone else experienced this problem?
Searching online the 'splicing file error' seems to occur with large file sizes, my file is 5.7GB. In some cases the problem has been down to the errors on the disks but mine is a brand new Samsung Spinpoint F3. I am not saying it isn't down to the hardware but I think unlikely, especially as the virtual machine boots and runs fine.
I found a Ubuntu thread where people have the same issue and the only solution is to use ddrescue.
http://ubuntuforums.org/showthread.php?t=1500384
There is a Peppermint thread where the problem is being experienced with PCManFM. In one post Kendall, the maintainer of LM LXDE and Fluxbox editions, says they are aware of the issue with LXDE and it is being worked on.
http://peppermintos.net/viewtopic.php?f=54&t=3028
On a number of other threads I found the only way around has been to boot into Windows and create a copy of the file that way.
Is anyone able to help me with this issue?
As an experiment I booted my PC using a LM7 XFCE Live CD to see if I could copy the file under that Mint flavour. I mounted the ext4 partition but couldn't see any of the folders on the partition so wasn't able to attempt the copy.
I am wondering if I should re-install LMDE but format my partitions in ext3. Maybe I should create a virtual machine first to try it out.
Thanks for any help or guidance you can give me.
(Apologies for the long post)