LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-22-2021, 11:00 PM   #1
generic.newb_
LQ Newbie
 
Registered: Apr 2021
Posts: 21

Rep: Reputation: Disabled
Cool How do I delete /dev /usr /var /run and /sys folders from a drive with NTFS filesystem on it?


Hello

I wanted to backup all files from my / directory to then gradually replace folders/files in my actual fileststem with original ones to troubleshoot an issue that appears AFTER I reconfigure my desktop enviromant (probably I only needed /etc and /home but I decided to just copy everything "for peace of mind").

I literally used rsync to copy everything that was in my / directory to an external drive with NTFS fileststem on it. I excluded /proc and /mnt directories because with proc rsync crashed and my brain is warping when I try to imagine what happens if I tried to copy /mnt including drive that Im copying everythin to, which is also mounted in there.

Now I can't remove dev usr var run sys folders from the drive I copied them to. I can't remove them with rm -r * command and I can't even remove them from under windows10 because of wierd "filename-size" and "unknown" errors. They are permanently stuck on my drive and I can't think of a way of getting rid of them.

They all take 10 gigs and there is literally no way to remove them. rm -r * returns errors when I try it. I could just format the drive but this is beyond crazy to me why and what is happening.

Is there any way I can clean this up without formatting the drive?

Last edited by generic.newb_; 04-22-2021 at 11:12 PM.
 
Old 04-22-2021, 11:11 PM   #2
generic.newb_
LQ Newbie
 
Registered: Apr 2021
Posts: 21

Original Poster
Rep: Reputation: Disabled
Ok, now it just worked by just going into desktop enviroment and deleting it by "right click remove".
 
  


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
Shell Script to compare folders,Sub-Folders and Sub-Sub-Folders unix_72427 Programming 8 08-08-2012 02:51 PM
find -exec command to recursively delete files and folders in folders with X name Joan Murt Linux - Newbie 2 07-08-2009 04:35 PM
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 08:43 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
rm cannot remove /var/run/atd.pid and /var/run/xdm.pid danishmr Linux - Software 1 05-04-2004 08:01 AM

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

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