LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-25-2006, 02:03 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
Why am I unable to move a file?


Code:
veronica@veronica-desktop:~/vmware/Windows XP Professional$ ls -lh
total 2.1G
-rw------- 1 veronica veronica 2.0G 2006-08-23 17:53 Windows XP Professional-f001.vmdk
veronica@veronica-desktop:~/vmware/Windows XP Professional$ mv -v * /var/vmware/Windows\ XP\ Professional/
`Windows XP Professional-f001.vmdk' -> `/var/vmware/Windows XP Professional/Windows XP Professional-f001.vmdk'
mv: reading `Windows XP Professional-f001.vmdk': Input/output error
veronica@veronica-desktop:~/vmware/Windows XP Professional$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              59G   23G   34G  41% /
varrun                379M  124K  379M   1% /var/run
varlock               379M  4.0K  379M   1% /var/lock
udev                  379M  144K  379M   1% /dev
devshm                379M     0  379M   0% /dev/shm
lrm                   379M   19M  361M   5% /lib/modules/2.6.15-26-386/volatile
/dev/hda1              55G   31G   22G  59% /home
/dev/hdb              641M  641M     0 100% /media/cdrom0
veronica@veronica-desktop:/var/vmware/Windows XP Professional$ ls -l /var/vmware/
total 8
drwxr-xr-x 2 veronica veronica 4096 2006-08-24 09:47 Freespire
drwxr-xr-x 2 veronica veronica 4096 2006-08-25 03:23 Windows XP Professional
veronica@veronica-desktop:/var/vmware/Windows XP Professional$
 
Old 08-25-2006, 02:09 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Put the spaced directory in quotes like this:

mv -v * "/var/vmware/Windows\ XP\ Professional/"
 
Old 08-25-2006, 03:22 PM   #3
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Those spaces are already escaped with \'s. No quotes are necessary. Adding quotes will cause further errors.

The input/output error leads me to believe that the media on which "Windows XP Professional-f001.vmdk" is stored might have physical errors.

Try:
Code:
dd if="Windows XP Professional-f001.vmdk" of=/dev/null
And see if you get an input/output error.
 
Old 08-25-2006, 04:26 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I've moved this to the Linux General forum since its not really a software related question.
 
Old 08-26-2006, 10:53 AM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Also, look at dmesg to see if there are any messages indicating problems with your hard drive.
 
Old 08-28-2006, 02:53 PM   #6
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
That was my Window's XP install on VMware Server. It refused to move. Windows XP didn't like Linux, so I had to delete it and reinstall it. However, my Freespire install on VMware Server had no problem moving to a different partition and running from there.
 
Old 08-28-2006, 03:05 PM   #7
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Did you try our suggestions? If so, what was the output?

A file doesn't "refuse to move" with an input/output error. An input/output error usually signals hardware or filesystem problems; it means that the OS could not physically read from / write to the disk at that location. Further, whether or not the OS installed in a file "likes" the currently running OS makes no difference in regards to whether or not that file can be moved.

Your filesystem may still have errors, or your disk may have bad blocks. Now that you've deleted the file, this will be harder to diagnose. I'd recommend running fsck on the potentially bad disk. If you use ext2 or ext3, you might want to try e2fsck with the -c option, which will also check for bad blocks.
 
  


Reply



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
move file ust Linux - Software 4 12-24-2005 08:31 AM
move file ust Linux - Software 1 08-29-2005 04:06 AM
how to move a file to a different file system? iclinux Linux - Newbie 1 07-06-2005 10:42 AM
help dont know how to move file the_highway_man Linux - Newbie 7 01-24-2004 01:53 PM
Re: possible to move file under /dev? raindrop Linux - General 5 11-14-2002 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration