LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-05-2005, 05:58 PM   #1
blancs
Member
 
Registered: Mar 2005
Posts: 49

Rep: Reputation: 15
Angry rm: cannot remove directory `ff': Directory not empty


Nothing I do will delete this dir, and it couldn't be anyome empty! what the ....?
 
Old 03-05-2005, 06:04 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there are no dot files in it? show use the output of "ls -la /that/direc/tory/"
 
Old 03-05-2005, 06:05 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Have tried the following command ' rm -drf ff '. Requires root to do this operation.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 03-05-2005, 06:18 PM   #4
blancs
Member
 
Registered: Mar 2005
Posts: 49

Original Poster
Rep: Reputation: 15
here is a the 'ls -la output'
//
dhcp-17:ff # ls -la
total 8
drwxrwxrwx 1 root users 4096 Mar 5 18:07 .
drwxrwxrwx 3 root users 4096 Mar 5 18:07 ..
//

also:
# rm -drf ff
rm: cannot remove directory `ff': Directory not empty
 
Old 03-06-2005, 02:02 PM   #5
blancs
Member
 
Registered: Mar 2005
Posts: 49

Original Poster
Rep: Reputation: 15
Red face

anybody?
 
Old 03-06-2005, 03:17 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What about rmdir?
rmdir ff
 
Old 03-06-2005, 03:46 PM   #7
blancs
Member
 
Registered: Mar 2005
Posts: 49

Original Poster
Rep: Reputation: 15
same output error
 
Old 03-07-2005, 04:04 AM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Have you tried running fsck on that partition? Maybe the filesystem has errors.

You can reboot and force fsck to run as it reboots if you use shutdown -Fr in a console.
 
Old 03-07-2005, 10:23 AM   #9
blancs
Member
 
Registered: Mar 2005
Posts: 49

Original Poster
Rep: Reputation: 15
That was it, not sure why i didnt think about that... thanks tredegar
 
Old 05-08-2008, 01:46 PM   #10
Cyhaxor
Member
 
Registered: Nov 2004
Location: UK
Distribution: Fedora 12
Posts: 129

Rep: Reputation: 15
Try:
Code:
rm -R directoryname/*
and then 
rm -R directoryname
 
Old 05-08-2008, 03:29 PM   #11
Omer Fadul
LQ Newbie
 
Registered: Feb 2005
Location: Khartoum, Sudan
Distribution: Redhat+Suse
Posts: 12

Rep: Reputation: 0
also try: find . -name 'directoryname*' |xargms rm -fr
 
Old 05-08-2008, 03:53 PM   #12
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
@ Cyhaxor & Omer Fadul,
I don't know how you reached this thread, or why you thought you should post to it, but it was answered three YEARS ago.
It is DEAD and should be left to rest in peace.

Last edited by tredegar; 05-08-2008 at 03:54 PM.
 
Old 05-08-2008, 06:20 PM   #13
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by tredegar View Post
It is DEAD and should be left to rest in peace.
Go easy. I've accidentally posted to old threads, too. Generally due to a search I did on a subject, and didn't look at the last post date.
 
Old 05-12-2008, 01:28 AM   #14
Omer Fadul
LQ Newbie
 
Registered: Feb 2005
Location: Khartoum, Sudan
Distribution: Redhat+Suse
Posts: 12

Rep: Reputation: 0
Dear tredegar
firstly, there is no rule stopping me to post to any threads on this site. beside i was facing the same problem a few weeks a go and i was unable to remove all the files on /var/log/clientmailqueue because i am not using sendmail or postfix services and all root emails was logged to that directory; the total number of files exceeded 635,981 files, the ususal rm -f did not work, and after alot of work i reach to that solution. all i was trying to add was to share my knowledge with others.
 
Old 06-03-2008, 03:06 AM   #15
Sabastian.xu
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
i have the same problem
# rm -R Qtopia/*
rm: cannot remove `Qtopia/*': No such file or directory

check
# df -h Qtopia/
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 3.0G 69M 2.8G 3% /opt/Qtopia

U can try
# umount Qtopia/
# rm -rf Qtopia/
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove a non empty directory in shell acidjuice Slackware 10 06-28-2011 12:02 PM
Empty directory contents stefaandk Linux - General 1 08-22-2005 07:03 AM
How do you remove a non empty directory aaronruss Linux - Newbie 3 06-05-2004 08:26 PM
RMDIR - how to remove a non-empty directory?? jacksmash Linux - Newbie 15 11-23-2003 12:51 PM
Mounting a non-empty directory MasterBean Linux - General 1 07-12-2001 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:19 AM.

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