LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 02-19-2011, 02:39 PM   #1
jraz
Member
 
Registered: Feb 2011
Location: TEMPE, AZ
Distribution: Linux Mint LMDE
Posts: 52

Rep: Reputation: 5
VirtualBox VBoxManage clonevdi works to local drive but not external


For backing up purposes I want to clone my win7.vdi to an external drive. I have read many forums and blogs and most point to the same command. I am running host: Mint Julia, VBox v4.04 r70112.
Code:
VBoxManage clonevdi /home/johnny/.VirtualBox/HardDisks/win7.vdi /home/johnny/win7bak.vdi
Outputs to:
Code:
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: 3c2e2f84-7cb7-4615-b3b1-7fbbac8400b6
Successful clone but when trying to use external drive mounted at /media/Ext3_Main
Code:
VBoxManage clonevdi /home/johnny/.VirtualBox/HardDisks/win7.vdi /media/Ext3_Main/vbox_backup/win7bak.vdi
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID:
Nothing happens. I have checked permissions on the external drive and folders and it is a USB drive in case it matters. Attempting to move the successful clone does this:
Code:
mv -v ~/win7bak.vdi /media/Ext3_Main/vbox_backup/HardDisks
`/home/johnny/win7bak.vdi' -> `/media/Ext3_Main/vbox_backup/HardDisks/win7bak.vdi'
mv: writing `/media/Ext3_Main/vbox_backup/HardDisks/win7bak.vdi': Input/output error
I have also tried clonevdi using the UUID with the same result. Any help will be much appreciated.

Last edited by jraz; 02-19-2011 at 02:44 PM. Reason: add information - I also should .add I released the machine first.
 
Old 02-20-2011, 07:22 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
umount & fsck the external
 
1 members found this post helpful.
Old 02-21-2011, 11:11 AM   #3
jraz
Member
 
Registered: Feb 2011
Location: TEMPE, AZ
Distribution: Linux Mint LMDE
Posts: 52

Original Poster
Rep: Reputation: 5
Errors are there

Quote:
Originally Posted by AlucardZero View Post
umount & fsck the external
It is a big drive and it is still running fsck. Errors are being reported and I am attempting fixing them. When done I will try and re-run the clone. Thanks for the heads up on the errors.
 
Old 02-21-2011, 12:19 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
The "Input/output error' were my clue that the filesystem or disk was bad
 
1 members found this post helpful.
Old 02-22-2011, 10:33 PM   #5
jraz
Member
 
Registered: Feb 2011
Location: TEMPE, AZ
Distribution: Linux Mint LMDE
Posts: 52

Original Poster
Rep: Reputation: 5
Still running fsck after a day and a half

Quote:
Originally Posted by AlucardZero View Post
The "Input/output error' were my clue that the filesystem or disk was bad
I don't know whether to keep running it or not. It is up to block 8093970 and counting. The only option I used was -y for unattended running. The drive has crashed to the floor once but never showed any signs until now or errors. I best get my data while I can. Should I kill the fsck job or let it be? Thanks.
 
Old 02-24-2011, 04:17 AM   #6
jraz
Member
 
Registered: Feb 2011
Location: TEMPE, AZ
Distribution: Linux Mint LMDE
Posts: 52

Original Poster
Rep: Reputation: 5
I reluctantly ran the fsck for 2 days on the drive, AlucardZero is correct in the diagnosis of errors. The drive has crashed to the floor once and it appears to be headed for the trash heap someday soon. I can still get some of the data off and will do that soon. Seeing how the command clonevdi worked fine with the good drive, I am going to consider this thread solved. Thanks for the heads up on the drive errors. Any longer and I most likely would not be able to recover data.
 
  


Reply

Tags
virtual box


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't find vboxmanage for VirtualBox ahurd Linux - Newbie 4 07-22-2010 10:42 PM
DNS on local machine works, external it fails temecal Linux - Server 3 12-14-2009 02:55 PM
Slackware 13.0, VirtualBox and USB Flash Drive Works (Sorta) tronayne Slackware 6 11-30-2009 07:37 AM
LXer: Tech Tip: Port Forwarding in Virtualbox with VBoxManage LXer Syndicated Linux News 0 09-10-2009 11:20 PM
One partition of external hard drive works, other doesn't rowebil Linux - Hardware 2 03-11-2009 02:23 PM


All times are GMT -5. The time now is 11:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration