LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-2005, 02:58 PM   #1
pistonbrew
LQ Newbie
 
Registered: Jun 2004
Location: London, innit
Distribution: Mandrva 2005 / BLAG 30000
Posts: 12

Rep: Reputation: 0
"WARNING: Circular directory structure" error when deleting directory


Hi

I'm trying to delete a folder (a Superkaramba theme) from my 512mb USB memory stick, but I get this scary looking error:

[root@localhost removable]# rm -rf TubeClock/
rm: WARNING: Circular directory structure.
This almost certainly means that you have a corrupted file system.
NOTIFY YOUR SYSTEM MANAGER.
The following directory is part of the cycle:
`TubeClock//TubeClock'

[root@localhost removable]#


I'm on Mandrake 10.1, and haven't had any other problems with the USB stick so far. Is there some way I can format it? I'm a relative noob to Linux.


Cheers

Bob
 
Old 02-02-2005, 04:02 PM   #2
cadkins
Member
 
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98

Rep: Reputation: 15
well, it doesn't sound good does it?

Have a look here : https://lists.dulug.duke.edu/piperma...er/015939.html

seems like someone else was having that problem.
 
Old 02-03-2005, 03:02 AM   #3
pistonbrew
LQ Newbie
 
Registered: Jun 2004
Location: London, innit
Distribution: Mandrva 2005 / BLAG 30000
Posts: 12

Original Poster
Rep: Reputation: 0
ah, thanks for the tip, i'll try it later and post the result here.

weird though, i have no idea why it's happened- all i did was copy a superkaramba theme onto the USB stick from my home system, and took it to work to install there. each time you descend into the /Tubeclock directory, there's another /Tubeclock directory, and so on, probably forever... but if i inspect the file on my home system then it looks perfectly normal.

cheers for the link anyway!

bob

Quote:
Originally posted by cadkins
well, it doesn't sound good does it?

Have a look here : https://lists.dulug.duke.edu/piperma...er/015939.html

seems like someone else was having that problem.
 
Old 02-03-2005, 05:57 AM   #4
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
if you go to /Tubeclock and do an 'ls -l' what do you see? Do you see something resembling:

[code]

user@foo:/Tubeclock>Tubeclock -> ../Tubeclock

[code]

or anything remotely similar? Usually when you have an error regarding a circular file reference you have a file linked to "." or something equally dopey. If you try to traverse it in a shell prompt it won't do much of anything but graphical file managers are often too stupid to trap such conditions - garbage in | garbage out applies in those cases. You need to find where that link is and remove it. This is of course if I have a correct understanding of the symptom.
 
Old 02-03-2005, 05:59 AM   #5
pistonbrew
LQ Newbie
 
Registered: Jun 2004
Location: London, innit
Distribution: Mandrva 2005 / BLAG 30000
Posts: 12

Original Poster
Rep: Reputation: 0
well i tried to follow the suggestions in that link, but couldn't format the USB stick. it would umount OK but wouldn't format:

[root@www bob]# umount /mnt/removable/
[root@www bob]# mkfs.vfat /mnt/removable/
mkfs.vfat 2.10 (22 Sep 2003)
mkfs.vfat: unable to open /mnt/removable/
[root@www bob]#


due to my limited understanding, i'm most likely committing some basic error here, so i just stuck the thing into a WinXP box and deleted the offending item there (no probs at all). then i formatted the stick FAT32 just for good measure and it is working fine in linux again.

i wonder if these problems are due to me pulling the USB stick without umounting it first i hadn't realised it was a no-no...
 
Old 02-03-2005, 06:05 AM   #6
pistonbrew
LQ Newbie
 
Registered: Jun 2004
Location: London, innit
Distribution: Mandrva 2005 / BLAG 30000
Posts: 12

Original Poster
Rep: Reputation: 0
hi

unfortunately i've got rid of /TubeCLock now (see above post), and i have no idea why or what caused the circular file structure. if i tried to delete or move it in the GUI it would get to around the 400th folder before erroring out, and in shell it would error with the "Circular..." message.

would love to know why!

thanks for the suggestion anyway

bob



Quote:
Originally posted by KimVette
if you go to /Tubeclock and do an 'ls -l' what do you see? Do you see something resembling:

[code]

user@foo:/Tubeclock>Tubeclock -> ../Tubeclock

[code]

or anything remotely similar? Usually when you have an error regarding a circular file reference you have a file linked to "." or something equally dopey. If you try to traverse it in a shell prompt it won't do much of anything but graphical file managers are often too stupid to trap such conditions - garbage in | garbage out applies in those cases. You need to find where that link is and remove it. This is of course if I have a correct understanding of the symptom.
 
  


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
"/usr/bin/ls: reading directory .: Input/output error" DiZi Slackware 15 07-13-2008 10:03 AM
Recursively deleting ".directory" Frank616 Linux - Software 2 03-25-2005 11:58 PM
Wine: Error message: Warning: the specified Windows directory L"c:\\windows" and such DarkNice Linux - Software 4 11-14-2004 06:36 PM
Debian kernels: "warning: can't open /etc/mtab: No such file or directory" brurien Debian 1 10-22-2003 06:09 PM
RH9 NIS login error: "home directory does not exist" airrr Linux - Networking 2 08-06-2003 01:47 PM


All times are GMT -5. The time now is 03:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration