Could not delete Trash.0 folder from external hard disk
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I am using WD external hard drive and linux OS. I deleted some files in hard disk by mistake I selected those file and just pressed [delete] button instead of [shift+del] in linux. Now it created Trash.0 folder. I tried to delete files using [shift+delete] it gives following error:
Could not delete file "4.6"
Error removing file /media/root/My Passport/Trash.0/expunged/2697747326/usr/include: Directory not empty.
Error removing file /media/root/My Passport/Trash.0/expunged/3073970550/gcc/arm-linux-androideabi/4.6: Directory not empty.
I also tried to delete the folder "include and 4.6" but not working I also tried to use command:
sudo rmdir Trash.0
and
sudo rmdir --ignore-fail-on-non-empty Trash.0
still not working....
linux hard-drive unix xfce
add a comment |
I am using WD external hard drive and linux OS. I deleted some files in hard disk by mistake I selected those file and just pressed [delete] button instead of [shift+del] in linux. Now it created Trash.0 folder. I tried to delete files using [shift+delete] it gives following error:
Could not delete file "4.6"
Error removing file /media/root/My Passport/Trash.0/expunged/2697747326/usr/include: Directory not empty.
Error removing file /media/root/My Passport/Trash.0/expunged/3073970550/gcc/arm-linux-androideabi/4.6: Directory not empty.
I also tried to delete the folder "include and 4.6" but not working I also tried to use command:
sudo rmdir Trash.0
and
sudo rmdir --ignore-fail-on-non-empty Trash.0
still not working....
linux hard-drive unix xfce
add a comment |
I am using WD external hard drive and linux OS. I deleted some files in hard disk by mistake I selected those file and just pressed [delete] button instead of [shift+del] in linux. Now it created Trash.0 folder. I tried to delete files using [shift+delete] it gives following error:
Could not delete file "4.6"
Error removing file /media/root/My Passport/Trash.0/expunged/2697747326/usr/include: Directory not empty.
Error removing file /media/root/My Passport/Trash.0/expunged/3073970550/gcc/arm-linux-androideabi/4.6: Directory not empty.
I also tried to delete the folder "include and 4.6" but not working I also tried to use command:
sudo rmdir Trash.0
and
sudo rmdir --ignore-fail-on-non-empty Trash.0
still not working....
linux hard-drive unix xfce
I am using WD external hard drive and linux OS. I deleted some files in hard disk by mistake I selected those file and just pressed [delete] button instead of [shift+del] in linux. Now it created Trash.0 folder. I tried to delete files using [shift+delete] it gives following error:
Could not delete file "4.6"
Error removing file /media/root/My Passport/Trash.0/expunged/2697747326/usr/include: Directory not empty.
Error removing file /media/root/My Passport/Trash.0/expunged/3073970550/gcc/arm-linux-androideabi/4.6: Directory not empty.
I also tried to delete the folder "include and 4.6" but not working I also tried to use command:
sudo rmdir Trash.0
and
sudo rmdir --ignore-fail-on-non-empty Trash.0
still not working....
linux hard-drive unix xfce
linux hard-drive unix xfce
asked Mar 21 '18 at 16:32
karlkarl
1
1
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
First empty the "Trash can", e.g. in nautilus or other FM. The folder should be deletable either immediately or after reboot.
add a comment |
cd to that folder and issue ls -al and check if there are any hidden files
then do rm -rf * to recursively and forcefully remove it
add a comment |
.Trash-0 folder is created to improve file recovery for external drives.
Whenever you mount an external disk, a .Trash-* directory will be created in the "root" directory where files are moved to if deleted from the GUI, like the trash on your desktop.
Take a backup of the files and try to format the hard-disk.
or.....
You need to install it:
sudo apt-get install secure-delete
and then
srm -rf /media/Elements/.Trash-1000/
add a comment |
Just boot with a Live Ubuntu 18.04 MATE USB and open the folder leading up to the .Trash-0 folder and also that folder itself as Administrator (you do this by right clicking on the folder and select Open As Administrator) and now you can delete the files :-)
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2fsuperuser.com%2fquestions%2f1306533%2fcould-not-delete-trash-0-folder-from-external-hard-disk%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
First empty the "Trash can", e.g. in nautilus or other FM. The folder should be deletable either immediately or after reboot.
add a comment |
First empty the "Trash can", e.g. in nautilus or other FM. The folder should be deletable either immediately or after reboot.
add a comment |
First empty the "Trash can", e.g. in nautilus or other FM. The folder should be deletable either immediately or after reboot.
First empty the "Trash can", e.g. in nautilus or other FM. The folder should be deletable either immediately or after reboot.
answered Mar 21 '18 at 19:14
DrMoishe PippikDrMoishe Pippik
10.4k21432
10.4k21432
add a comment |
add a comment |
cd to that folder and issue ls -al and check if there are any hidden files
then do rm -rf * to recursively and forcefully remove it
add a comment |
cd to that folder and issue ls -al and check if there are any hidden files
then do rm -rf * to recursively and forcefully remove it
add a comment |
cd to that folder and issue ls -al and check if there are any hidden files
then do rm -rf * to recursively and forcefully remove it
cd to that folder and issue ls -al and check if there are any hidden files
then do rm -rf * to recursively and forcefully remove it
answered Mar 28 '18 at 20:03
qr2qr2
1012
1012
add a comment |
add a comment |
.Trash-0 folder is created to improve file recovery for external drives.
Whenever you mount an external disk, a .Trash-* directory will be created in the "root" directory where files are moved to if deleted from the GUI, like the trash on your desktop.
Take a backup of the files and try to format the hard-disk.
or.....
You need to install it:
sudo apt-get install secure-delete
and then
srm -rf /media/Elements/.Trash-1000/
add a comment |
.Trash-0 folder is created to improve file recovery for external drives.
Whenever you mount an external disk, a .Trash-* directory will be created in the "root" directory where files are moved to if deleted from the GUI, like the trash on your desktop.
Take a backup of the files and try to format the hard-disk.
or.....
You need to install it:
sudo apt-get install secure-delete
and then
srm -rf /media/Elements/.Trash-1000/
add a comment |
.Trash-0 folder is created to improve file recovery for external drives.
Whenever you mount an external disk, a .Trash-* directory will be created in the "root" directory where files are moved to if deleted from the GUI, like the trash on your desktop.
Take a backup of the files and try to format the hard-disk.
or.....
You need to install it:
sudo apt-get install secure-delete
and then
srm -rf /media/Elements/.Trash-1000/
.Trash-0 folder is created to improve file recovery for external drives.
Whenever you mount an external disk, a .Trash-* directory will be created in the "root" directory where files are moved to if deleted from the GUI, like the trash on your desktop.
Take a backup of the files and try to format the hard-disk.
or.....
You need to install it:
sudo apt-get install secure-delete
and then
srm -rf /media/Elements/.Trash-1000/
edited Apr 1 '18 at 10:19
answered Apr 1 '18 at 9:59
jimjim
11
11
add a comment |
add a comment |
Just boot with a Live Ubuntu 18.04 MATE USB and open the folder leading up to the .Trash-0 folder and also that folder itself as Administrator (you do this by right clicking on the folder and select Open As Administrator) and now you can delete the files :-)
add a comment |
Just boot with a Live Ubuntu 18.04 MATE USB and open the folder leading up to the .Trash-0 folder and also that folder itself as Administrator (you do this by right clicking on the folder and select Open As Administrator) and now you can delete the files :-)
add a comment |
Just boot with a Live Ubuntu 18.04 MATE USB and open the folder leading up to the .Trash-0 folder and also that folder itself as Administrator (you do this by right clicking on the folder and select Open As Administrator) and now you can delete the files :-)
Just boot with a Live Ubuntu 18.04 MATE USB and open the folder leading up to the .Trash-0 folder and also that folder itself as Administrator (you do this by right clicking on the folder and select Open As Administrator) and now you can delete the files :-)
answered Jan 26 at 14:29
adenioadenio
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1306533%2fcould-not-delete-trash-0-folder-from-external-hard-disk%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