LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-27-2008, 11:05 AM   #1
Jugney
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
File copy error from USB hard drive


Hi all,

I'm running Ubuntu and wiped my machine to do a fresh install of Hardy Heron. I've got everything up and running, except there is one file I cannot copy back onto my hard drive from my external USB drive. It's a VirtualBox hard drive image (.vdi) file that is about 16GB.

When I click on file properties it shows its correct size (and I know the original copy completed because I sat through it). But when I try to copy it back in the Nautilus file browser, it always comes up with this error at 2.0GB into the transfer:

Error while copying "Windows Vista.vdi"

There was an error copying the file into /home/username/.VirtualBox/VDI/WindowsVista.VDI

When I click show more details, it says

Error reading from file: Input/output error

I tried being clever and creating an archive file to transfer it over, but it would never complete creating the archive. I also tried creating an ISO file with KISO, but that showed that the vdi file was only 3.6 GB.

I've also tried using dd copy to get my entire usb hard drive onto my hard disk as an image file. I type in the command:

sudo dd if="/media/Bodhi Drive" of=image.img

And I get this error message:

dd: reading `/media/Bodhi Drive': Is a directory
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00070268 s, 0.0 kB/s

Any ideas?
Jugney

Last edited by Jugney; 04-27-2008 at 11:08 AM.
 
Old 04-27-2008, 03:55 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,297

Rep: Reputation: 205Reputation: 205Reputation: 205
When you copied it to your usb drive did you unmount the drive with the safely remove option? or did you just unplug it? It seems the file write wasn't fully complete and what you've got there is a corrupt vdi file. Are you able to use that file in VirtualBox from the usb drive?
 
Old 04-28-2008, 10:32 PM   #3
Jugney
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the tip about trying to load the virtual disk directly off the USB drive. I tried that and in fact it was broken. So maybe I didn't unmount it. Oh well. I've alraedy reinstalled Windows and the Quickbooks software I use, now I just need to re-enter a couple account-opening deposits...

Jugney
 
Old 04-29-2008, 05:55 AM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,297

Rep: Reputation: 205Reputation: 205Reputation: 205
It's always better to use the 'safely remove' option to ensure all the data has infact been written to the drive. This is especially true when writing large pieces of data. Also it doesn't hurt to double check the data is complete by reloading it back from the backup medium before removing it.
 
  


Reply


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
why I cannot copy to a usb hard drive (640 gb)? Mssg Cannot create folder vikas2008 LinuxQuestions.org Member Intro 1 04-15-2008 10:28 AM
How to copy file from usb device to hard drive?????? Overcool Linux - Newbie 1 01-04-2007 07:06 PM
Error - Can't copy installation image? Hard drive probably doesnt have enough room? spfdz Fedora - Installation 1 03-02-2005 02:35 AM
copy files from your hard drive to usb key with Knoppix ziegen Linux - Distributions 1 08-09-2004 01:06 PM
Copy A File Off A CD To The Hard Drive In Command Line nickae77 Linux - Newbie 4 05-21-2004 04:38 AM


All times are GMT -5. The time now is 11:38 AM.

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