LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2006, 12:37 AM   #1
captainnico
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
Unhappy deletion of a recursive directory?


Don't ask how this happened, because I don't know. I was using my external 200GB HD (Western digital) in windows xp using the ext2fsd drivers (it's formatted as ext3). Now that I bought a new case for it, there's a weird recursive directory in it. No, it's not just a link. I'm no noob to linux, but this is weird. How can I remove it? rm -rf just leads to recursion madness and never deletes anything. I guess the question is, can I remove it?

Last edited by captainnico; 02-02-2006 at 12:43 AM.
 
Old 02-02-2006, 06:01 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
I don't know what a "recursive directory" is??? What exactly do you see?
I infer you are viewing it from Linux, if you tried rm -rf.
Can you also access the drive from Windows? How does the weird thing appear then?
 
Old 02-03-2006, 01:53 AM   #3
captainnico
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Original Poster
Rep: Reputation: 0
if I cd into it, I'm still where I started, if I cd .. out of it, it takes me up a level. I can't rm -rf because the r stands for recursive, and since it's going to keep deleting the folder inside itself, it will never delete anything because it goes infinitely deep into this folder that leads to its own location. In other words, rm -rf is the same as changing into the directory and deleting the contents, then deleting the folder. This doesn't work here because the folder and the contents are one and the same. It's trippy, I know. Konqueror ignores this folder. It literally has no name. To cd into it, I have to type cd .// Windows does not see the folder using the ext2fsd, but it sees it from my linux samba share. It's not doing any harm or taking up any space, it's just an extremely odd phenomena that I would like to get rid of or at least understand.
 
Old 02-03-2006, 07:35 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
What if you move it into a new empty directory, then rm -f that new directory? just a hunch..
 
Old 02-03-2006, 02:30 PM   #5
Vagrant
Member
 
Registered: Nov 2001
Posts: 75

Rep: Reputation: 15
That's a really interesting problem. If you do a lsattr on the directoy, do you see any odd attributes? There is a similar problem, unrelated, that Novell shares have with Apple, I forgot the specifics but it does what you describe, so you're not crazy. This is something that happens. My guess is that its due to some sort of obscure bug.
 
Old 02-04-2006, 05:02 AM   #6
captainnico
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Original Poster
Rep: Reputation: 0
nothing odd, the folder in question shows up as simply ./
I really don't think there is a solution, and that this was caused by a bug in the ext2fsd, that or windows, but I think I already blame most computer problems on windows, so I'm gonna give it a break this time.
 
Old 02-04-2006, 05:16 AM   #7
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
i thought ./ in linux meant the current directory and ../ means the parent directory. If you do ls -a you should see . and .. in every directory. That kind of sounds what your describing but i dunno. Hard to tell unless i could see it for myself.
 
Old 02-04-2006, 05:26 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
The gallopping nitpicker strikes....

current directory is simply "." Typically not used except--eg--in "./file" to run "file" without the system looking in PATH
parent directory is ".." As in "cd .." to go one up--or "cd ../newplace" to go sideways
 
Old 02-04-2006, 05:39 AM   #9
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
yeah but /sbin and /sbin/ are the same thing. You can leave the backslash off. But if you did that with trying to run a script like .scriptname it might get confused and think the . is part of the scriptname. What is a galloping nitpicker?
 
Old 02-04-2006, 05:52 AM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
Quote:
Originally Posted by dr_zayus69
yeah but /sbin and /sbin/ are the same thing. You can leave the backslash off. But if you did that with trying to run a script like .scriptname it might get confused and think the . is part of the scriptname. What is a galloping nitpicker?
Now we are at the Nitpickers convention.....

/xxx and /xxx/ might be the same in some contexts, but certainly not others---consider this:

mv filename /xxx
mv filename /xxx/
VERY different outcomes!!

Technically, the "/" is the divider between directory names, n'est-ce pas?
When we refer to the "root" directory, are we not really referring to an invisible directory name followed by "/"?
/sbin means go the top--no name--directory and then down one to sbin. to get the the very top, you type "/" because you can't type the invisible name!!

A "galloping nitpicker" is someone who writes posts like this....
 
  


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
How to do recursive file copy of directory for specific files? Arodef Linux - Newbie 4 06-29-2004 05:35 PM
fedora core 2 test 2 disk 4 has recursive directory hooya27 Fedora - Installation 3 04-13-2004 10:09 PM
recursive file permissions does not change new files in same directory PAB Linux - Newbie 2 03-08-2004 12:27 PM
recursive directory traversal klfreese Linux - Newbie 2 08-20-2003 07:27 PM
recursive search of a string in a directory ?! realos Linux - Software 4 11-27-2002 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration