LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2014, 09:00 AM   #1
Donny Bahama
Member
 
Registered: Aug 2009
Location: Margaritaville (a state of mind west of Las Vegas), NV
Distribution: Linux Mint
Posts: 61

Rep: Reputation: 1
mv: inter-device move failed


When I try to move a directory from one drive to another, (using "mv Lossy /media/500tmp") I'm getting a message that says:
mv: inter-device move failed: 'Lossy' to '/media/500tmp/Lossy'; unable to remove target: ls a directory

I don't understand this. The same command works with other directories!?
 
Old 01-12-2014, 11:47 AM   #2
Cristiano Urban
Member
 
Registered: Jul 2013
Location: Gonars (UD), Italy
Distribution: Slackware 14.2 x86_64
Posts: 76

Rep: Reputation: 10
Hi,
maybe this link could help you
 
Old 01-12-2014, 12:27 PM   #3
Donny Bahama
Member
 
Registered: Aug 2009
Location: Margaritaville (a state of mind west of Las Vegas), NV
Distribution: Linux Mint
Posts: 61

Original Poster
Rep: Reputation: 1
Thanks for the response. I actually read that before posting and it didn't clarify anything for me.
I don't understand this statement:
Quote:
This happens when mv has to actually move your data to another device, but cannot remove the inode/pointer, because if it did then there will be no data to fall back to, and if it didn’t then mv operation is not really complete because we will end up with data in source.
but the author goes on to say (basically) that you have to use cp instead of mv, them remove the source directory with rm -rf.

That seems preposterous. What's the point of having a move command if you're just going to copy then delete the source?

Interestingly enough, since posting the original message, I've found that if I issue the mv command and the destination directory does NOT already have a directory with the specified name, the mv command works fine.
 
1 members found this post helpful.
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with "mv: inter-device move failed: " frenchn00b Debian 5 01-22-2019 04:07 AM
[SOLVED] device-mapper: remove ioctl on failed: Device or resource busy jheengut Linux - Kernel 1 10-23-2013 08:38 AM
[SOLVED] Inter process and inter computer communication jthjth Linux - Newbie 1 12-27-2011 03:53 PM
Command failed: device-mapper: reload ioctl failed: Invalid argument azza Programming 2 01-10-2011 03:16 AM
issue with mv: "inter-device move failed, unable to remove target: Is a directory " Xeratul Debian 3 12-06-2010 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:28 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