Why does after move I can get sync to work but not after cp -r *?
I have seen this happen multiple times. For example, I move a hypothetical file to a the usb disk.
$ mv somefilename.someext /media/shirish/Seagate/sometilename.someext
after this I simply say sync -
$ sync
If I do the same thing as copying it on the same hdd it would be -
$ cp -r somefolder /media/shirish/seagate/
Now if you try syncing, it goes into a sort of endless loop. Dos anybody know why ?
Update - 03/3/2016 - the data I am moving or copying is usually a media file about 300 MB in size so not much.
linux debian coreutils
add a comment |
I have seen this happen multiple times. For example, I move a hypothetical file to a the usb disk.
$ mv somefilename.someext /media/shirish/Seagate/sometilename.someext
after this I simply say sync -
$ sync
If I do the same thing as copying it on the same hdd it would be -
$ cp -r somefolder /media/shirish/seagate/
Now if you try syncing, it goes into a sort of endless loop. Dos anybody know why ?
Update - 03/3/2016 - the data I am moving or copying is usually a media file about 300 MB in size so not much.
linux debian coreutils
How much data are you copying / moving? Are the source and the target on the same filesystem (I assume not, but it's best confirmed)?
– dhag
Mar 2 '17 at 19:04
sync can be long if you have a very high memory and it is caching a lot of things, or if the drive being written to has a lot of pending opérations (can be very long in the case of some raid disks while they are rebuilding)
– Olivier Dulac
Mar 2 '17 at 21:24
add a comment |
I have seen this happen multiple times. For example, I move a hypothetical file to a the usb disk.
$ mv somefilename.someext /media/shirish/Seagate/sometilename.someext
after this I simply say sync -
$ sync
If I do the same thing as copying it on the same hdd it would be -
$ cp -r somefolder /media/shirish/seagate/
Now if you try syncing, it goes into a sort of endless loop. Dos anybody know why ?
Update - 03/3/2016 - the data I am moving or copying is usually a media file about 300 MB in size so not much.
linux debian coreutils
I have seen this happen multiple times. For example, I move a hypothetical file to a the usb disk.
$ mv somefilename.someext /media/shirish/Seagate/sometilename.someext
after this I simply say sync -
$ sync
If I do the same thing as copying it on the same hdd it would be -
$ cp -r somefolder /media/shirish/seagate/
Now if you try syncing, it goes into a sort of endless loop. Dos anybody know why ?
Update - 03/3/2016 - the data I am moving or copying is usually a media file about 300 MB in size so not much.
linux debian coreutils
linux debian coreutils
edited 10 mins ago
Rui F Ribeiro
40.7k1479137
40.7k1479137
asked Mar 2 '17 at 18:28
shirishshirish
3,82763388
3,82763388
How much data are you copying / moving? Are the source and the target on the same filesystem (I assume not, but it's best confirmed)?
– dhag
Mar 2 '17 at 19:04
sync can be long if you have a very high memory and it is caching a lot of things, or if the drive being written to has a lot of pending opérations (can be very long in the case of some raid disks while they are rebuilding)
– Olivier Dulac
Mar 2 '17 at 21:24
add a comment |
How much data are you copying / moving? Are the source and the target on the same filesystem (I assume not, but it's best confirmed)?
– dhag
Mar 2 '17 at 19:04
sync can be long if you have a very high memory and it is caching a lot of things, or if the drive being written to has a lot of pending opérations (can be very long in the case of some raid disks while they are rebuilding)
– Olivier Dulac
Mar 2 '17 at 21:24
How much data are you copying / moving? Are the source and the target on the same filesystem (I assume not, but it's best confirmed)?
– dhag
Mar 2 '17 at 19:04
How much data are you copying / moving? Are the source and the target on the same filesystem (I assume not, but it's best confirmed)?
– dhag
Mar 2 '17 at 19:04
sync can be long if you have a very high memory and it is caching a lot of things, or if the drive being written to has a lot of pending opérations (can be very long in the case of some raid disks while they are rebuilding)
– Olivier Dulac
Mar 2 '17 at 21:24
sync can be long if you have a very high memory and it is caching a lot of things, or if the drive being written to has a lot of pending opérations (can be very long in the case of some raid disks while they are rebuilding)
– Olivier Dulac
Mar 2 '17 at 21:24
add a comment |
0
active
oldest
votes
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%2f348744%2fwhy-does-after-move-i-can-get-sync-to-work-but-not-after-cp-r%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f348744%2fwhy-does-after-move-i-can-get-sync-to-work-but-not-after-cp-r%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
How much data are you copying / moving? Are the source and the target on the same filesystem (I assume not, but it's best confirmed)?
– dhag
Mar 2 '17 at 19:04
sync can be long if you have a very high memory and it is caching a lot of things, or if the drive being written to has a lot of pending opérations (can be very long in the case of some raid disks while they are rebuilding)
– Olivier Dulac
Mar 2 '17 at 21:24