Midnight Commander moves files enormously long
I have an QNAP TS-210 NAS and it seems, that there's a Debian Linux on board. I've installed Midnight Commander there and have been using it successfully for years. Today I spotted something weird.
I have to move a large collection of movies (around 130 GB) from one folder to anther. Movies are split into many subfolders. Whenever I enter any particular folder, select all files in MC and press F6 to move them to destination, everything is fine. But, when I attempt to move entire subfolder (destination has it as well, but files inside are different, so there is not overwrite in any case), process takes very, very long. It actually looks like my NAS would be doing a copy, instead of move of this file.
Is this normal condition? When I'm doing the same operation on Windows, move process always is very, very fast, no matter, if I'm moving entire folder or only its contents.
mc move
add a comment |
I have an QNAP TS-210 NAS and it seems, that there's a Debian Linux on board. I've installed Midnight Commander there and have been using it successfully for years. Today I spotted something weird.
I have to move a large collection of movies (around 130 GB) from one folder to anther. Movies are split into many subfolders. Whenever I enter any particular folder, select all files in MC and press F6 to move them to destination, everything is fine. But, when I attempt to move entire subfolder (destination has it as well, but files inside are different, so there is not overwrite in any case), process takes very, very long. It actually looks like my NAS would be doing a copy, instead of move of this file.
Is this normal condition? When I'm doing the same operation on Windows, move process always is very, very fast, no matter, if I'm moving entire folder or only its contents.
mc move
add a comment |
I have an QNAP TS-210 NAS and it seems, that there's a Debian Linux on board. I've installed Midnight Commander there and have been using it successfully for years. Today I spotted something weird.
I have to move a large collection of movies (around 130 GB) from one folder to anther. Movies are split into many subfolders. Whenever I enter any particular folder, select all files in MC and press F6 to move them to destination, everything is fine. But, when I attempt to move entire subfolder (destination has it as well, but files inside are different, so there is not overwrite in any case), process takes very, very long. It actually looks like my NAS would be doing a copy, instead of move of this file.
Is this normal condition? When I'm doing the same operation on Windows, move process always is very, very fast, no matter, if I'm moving entire folder or only its contents.
mc move
I have an QNAP TS-210 NAS and it seems, that there's a Debian Linux on board. I've installed Midnight Commander there and have been using it successfully for years. Today I spotted something weird.
I have to move a large collection of movies (around 130 GB) from one folder to anther. Movies are split into many subfolders. Whenever I enter any particular folder, select all files in MC and press F6 to move them to destination, everything is fine. But, when I attempt to move entire subfolder (destination has it as well, but files inside are different, so there is not overwrite in any case), process takes very, very long. It actually looks like my NAS would be doing a copy, instead of move of this file.
Is this normal condition? When I'm doing the same operation on Windows, move process always is very, very fast, no matter, if I'm moving entire folder or only its contents.
mc move
mc move
edited Jan 27 at 0:00
Rui F Ribeiro
39.9k1479134
39.9k1479134
asked Nov 16 '14 at 19:21
trejdertrejder
3381621
3381621
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
mv works in two ways. mc moves behave the same way.
- If the files are on the same logical device (partition or disk), only the directory entries are moved. This can be extremely fast.
- If the files are on different logical devices, the files are copied and the old file deleted after the copy is done. This is relatively slow as the file must be read, and then written.
If your NAS has multiple disks, then moves may result in data moving between devices. You can check which directories are mounted (and their space utilization) with the df command.
Thanks (+1). But, what you're saying, is -- of course -- obvious to me. But, I'm not sure, if we're talking about the same. No matter, whether I'm moving contents of a subfolder (share/Download/Subfolder/*.*) or just the entire subfolder (share/Download/Subfolder), I'm moving files, that are stored in the very same physical location. So -- in my opinion -- move process should have the same speed in both scenarios. It hasn't. So, either I'm missing something obvious about howmvworks or something obvious from your answers.
– trejder
Nov 17 '14 at 7:38
add a comment |
I have nothing to support my statement other then empirical knowledge but I think mc doesn't completely behave the same as mv. I just stumbled upon this question as I was experiencing slow movement of files by mc whereas mv was instant. The problem seemed to be ownership of files. When I move files in mc, ownership is changed to the current user running mc and it takes forever. When I move by mv command, the move is instant and ownership is kept original.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f168308%2fmidnight-commander-moves-files-enormously-long%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
mv works in two ways. mc moves behave the same way.
- If the files are on the same logical device (partition or disk), only the directory entries are moved. This can be extremely fast.
- If the files are on different logical devices, the files are copied and the old file deleted after the copy is done. This is relatively slow as the file must be read, and then written.
If your NAS has multiple disks, then moves may result in data moving between devices. You can check which directories are mounted (and their space utilization) with the df command.
Thanks (+1). But, what you're saying, is -- of course -- obvious to me. But, I'm not sure, if we're talking about the same. No matter, whether I'm moving contents of a subfolder (share/Download/Subfolder/*.*) or just the entire subfolder (share/Download/Subfolder), I'm moving files, that are stored in the very same physical location. So -- in my opinion -- move process should have the same speed in both scenarios. It hasn't. So, either I'm missing something obvious about howmvworks or something obvious from your answers.
– trejder
Nov 17 '14 at 7:38
add a comment |
mv works in two ways. mc moves behave the same way.
- If the files are on the same logical device (partition or disk), only the directory entries are moved. This can be extremely fast.
- If the files are on different logical devices, the files are copied and the old file deleted after the copy is done. This is relatively slow as the file must be read, and then written.
If your NAS has multiple disks, then moves may result in data moving between devices. You can check which directories are mounted (and their space utilization) with the df command.
Thanks (+1). But, what you're saying, is -- of course -- obvious to me. But, I'm not sure, if we're talking about the same. No matter, whether I'm moving contents of a subfolder (share/Download/Subfolder/*.*) or just the entire subfolder (share/Download/Subfolder), I'm moving files, that are stored in the very same physical location. So -- in my opinion -- move process should have the same speed in both scenarios. It hasn't. So, either I'm missing something obvious about howmvworks or something obvious from your answers.
– trejder
Nov 17 '14 at 7:38
add a comment |
mv works in two ways. mc moves behave the same way.
- If the files are on the same logical device (partition or disk), only the directory entries are moved. This can be extremely fast.
- If the files are on different logical devices, the files are copied and the old file deleted after the copy is done. This is relatively slow as the file must be read, and then written.
If your NAS has multiple disks, then moves may result in data moving between devices. You can check which directories are mounted (and their space utilization) with the df command.
mv works in two ways. mc moves behave the same way.
- If the files are on the same logical device (partition or disk), only the directory entries are moved. This can be extremely fast.
- If the files are on different logical devices, the files are copied and the old file deleted after the copy is done. This is relatively slow as the file must be read, and then written.
If your NAS has multiple disks, then moves may result in data moving between devices. You can check which directories are mounted (and their space utilization) with the df command.
answered Nov 16 '14 at 20:03
BillThorBillThor
7,6831325
7,6831325
Thanks (+1). But, what you're saying, is -- of course -- obvious to me. But, I'm not sure, if we're talking about the same. No matter, whether I'm moving contents of a subfolder (share/Download/Subfolder/*.*) or just the entire subfolder (share/Download/Subfolder), I'm moving files, that are stored in the very same physical location. So -- in my opinion -- move process should have the same speed in both scenarios. It hasn't. So, either I'm missing something obvious about howmvworks or something obvious from your answers.
– trejder
Nov 17 '14 at 7:38
add a comment |
Thanks (+1). But, what you're saying, is -- of course -- obvious to me. But, I'm not sure, if we're talking about the same. No matter, whether I'm moving contents of a subfolder (share/Download/Subfolder/*.*) or just the entire subfolder (share/Download/Subfolder), I'm moving files, that are stored in the very same physical location. So -- in my opinion -- move process should have the same speed in both scenarios. It hasn't. So, either I'm missing something obvious about howmvworks or something obvious from your answers.
– trejder
Nov 17 '14 at 7:38
Thanks (+1). But, what you're saying, is -- of course -- obvious to me. But, I'm not sure, if we're talking about the same. No matter, whether I'm moving contents of a subfolder (
share/Download/Subfolder/*.*) or just the entire subfolder (share/Download/Subfolder), I'm moving files, that are stored in the very same physical location. So -- in my opinion -- move process should have the same speed in both scenarios. It hasn't. So, either I'm missing something obvious about how mv works or something obvious from your answers.– trejder
Nov 17 '14 at 7:38
Thanks (+1). But, what you're saying, is -- of course -- obvious to me. But, I'm not sure, if we're talking about the same. No matter, whether I'm moving contents of a subfolder (
share/Download/Subfolder/*.*) or just the entire subfolder (share/Download/Subfolder), I'm moving files, that are stored in the very same physical location. So -- in my opinion -- move process should have the same speed in both scenarios. It hasn't. So, either I'm missing something obvious about how mv works or something obvious from your answers.– trejder
Nov 17 '14 at 7:38
add a comment |
I have nothing to support my statement other then empirical knowledge but I think mc doesn't completely behave the same as mv. I just stumbled upon this question as I was experiencing slow movement of files by mc whereas mv was instant. The problem seemed to be ownership of files. When I move files in mc, ownership is changed to the current user running mc and it takes forever. When I move by mv command, the move is instant and ownership is kept original.
add a comment |
I have nothing to support my statement other then empirical knowledge but I think mc doesn't completely behave the same as mv. I just stumbled upon this question as I was experiencing slow movement of files by mc whereas mv was instant. The problem seemed to be ownership of files. When I move files in mc, ownership is changed to the current user running mc and it takes forever. When I move by mv command, the move is instant and ownership is kept original.
add a comment |
I have nothing to support my statement other then empirical knowledge but I think mc doesn't completely behave the same as mv. I just stumbled upon this question as I was experiencing slow movement of files by mc whereas mv was instant. The problem seemed to be ownership of files. When I move files in mc, ownership is changed to the current user running mc and it takes forever. When I move by mv command, the move is instant and ownership is kept original.
I have nothing to support my statement other then empirical knowledge but I think mc doesn't completely behave the same as mv. I just stumbled upon this question as I was experiencing slow movement of files by mc whereas mv was instant. The problem seemed to be ownership of files. When I move files in mc, ownership is changed to the current user running mc and it takes forever. When I move by mv command, the move is instant and ownership is kept original.
answered May 6 '18 at 14:19
Martin DMartin D
1011
1011
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f168308%2fmidnight-commander-moves-files-enormously-long%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown