LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-03-2010, 02:49 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 57
Issue with "mv: inter-device move failed: "


Code:
mv PDF /home/gerard/
mv: inter-device move failed: `PDF' to `/home/gerard/PDF'; unable to remove target: Is a directory
I did ls -ltra and visibly there is no LN link file going on ... I still do not understand what is about this issue
 
Old 12-04-2010, 05:20 AM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Quote:
mv or move does not actually move the file/folder to another location, it rather replaces the pointer in the first sector of your device. The pointer (in inode table) will be moved, but nothing is actually being copied. This will work as long as you stay within the same media/device.

Now, when you try to move files from one device to another (/dev/sda1 to /dev/sda2) you will run into “inter-device move failed, unable to remove target: Is a directory” error. 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.
Do it with cp, or you can try to add -b(backup) flag to mv. It may work.

Last edited by alan_ri; 12-04-2010 at 07:22 PM. Reason: BB code
 
Old 12-04-2010, 05:54 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
When asked to move a file or directory from one file system to another, mv silently does a copy and delete (just tested both to confirm because this is contrary to the likes of this page).

The reason for the error message is probably that /home/gerard/ contains a directory called PDF.

Last edited by catkin; 12-04-2010 at 05:55 AM. Reason: missing )
 
Old 12-04-2010, 07:27 PM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
I've fixed the BB code thing in #2, although postting it without it, wasn't what I really wanted to do anyway.

File system is one and hard drive is another thing. And I still think that problem is in what is quoted in #2.

Last edited by alan_ri; 12-05-2010 at 05:25 AM.
 
Old 01-21-2019, 05:13 PM   #5
DLSieving
LQ Newbie
 
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
Thanks!

Quote:
Originally Posted by alan_ri View Post
Do it with cp, or you can try to add -b(backup) flag to mv. It may work.
Couldn't figure out how to upvote alan_ri, so I'll just say "Thanks!" instead.
 
Old 01-22-2019, 04:07 AM   #6
l0f4r0
Member
 
Registered: Jul 2018
Location: Paris
Distribution: macOS, Slackware
Posts: 803

Rep: Reputation: 281Reputation: 281Reputation: 281
^ See 4th item in my sig
By the way, please refrain yourself from unearthing an 8+ year old thread

Last edited by l0f4r0; 01-22-2019 at 04:09 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 13.1 "VLC failed to initialize your sound output device" if opened after Firefox RajahBrooke Slackware 17 08-31-2010 06:46 AM
when use minicom, received "Device /dev/ttyS1 access failed: Permission denied." fulee1 Linux - Newbie 3 04-02-2010 03:11 PM
wireless configuration "SET failed on device" zlya Linux - Wireless Networking 1 10-04-2007 06:59 AM
kismet "channel get ioctl failed...no such device" fatblueduck Linux - Software 0 01-03-2006 01:51 AM
"Failed to initialize the NVIDIA graphics device" WTH went wrong with driver install Ohmn Mandriva 3 06-29-2004 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration