LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-29-2007, 12:51 PM   #1
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Rep: Reputation: 30
cannot delete folder


i have a folder on my external hdd that i want to delete. according to properties there should not be any problem. instead, i get an error message "couldn't delete folder", without any further reference to a reason. i haven't tried it as root yet, but what could be the problem? i cannot create a folder directly on the hdd either, just subfolders to those already there.

best regards
ungua
 
Old 04-29-2007, 02:03 PM   #2
chuckbuhler
Member
 
Registered: Oct 2005
Distribution: SuSe
Posts: 95

Rep: Reputation: 17
Sounds like it could be an ownership issue. From a shell, type in:

ls -l /path/<name of dir>

You should get some lines that resemble:

drwxr-xr-x 2 me users 4096 2007-03-20 09:29 public_html
drwxr-xr-x 6 me users 4096 2007-04-23 20:22 tmp

Where these lines have "me" listed your's should have the username that you are logged in as. If it isn't, as root, you could use the command:

chown <your username> <path to directory>
or
chown billy /mmt/disk/dir01

It does sound like the external drive is mounted as root, or some other user than what you are currently logged in as.



Another possibility could be that there is a user still in that directory. You my have something open, that thinks it's current directory is in there.
 
Old 05-08-2007, 06:59 AM   #3
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Original Poster
Rep: Reputation: 30
thank you for your excellent reply! it seems that i can only delete one folder at a time, weird.

best regards
ungua
 
Old 05-09-2007, 07:42 AM   #4
cormack
Member
 
Registered: Oct 2005
Location: Scotland, UK
Distribution: Kubuntu 9.10, ubuntu 8.04.2 server
Posts: 156

Rep: Reputation: 30
In order to delete more than one at a time, assuming they are all in the same sub tree listing, eg delete1>delete2>delete3..., then you have to use the rm -R command. This will delete all the folders and files in that tree. I think this is what you are getting at? Where -R is recursive

So
(su)
rm -R /mnt/point/of/folder/

And that will delete all the folders in that tree

Ryan
 
  


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
can't delete a folder that I created. randell6564 Ubuntu 32 08-18-2006 02:14 AM
seems like I delete my /etc folder. bladehaze Debian 9 09-12-2005 11:47 AM
How do I delete a folder and everything in it? wuya Linux - Newbie 3 04-22-2005 02:03 PM
Unable to delete folder arctuniol Red Hat 2 10-11-2004 02:07 PM
I just delete the /lib folder :( Boogieman Linux - Software 8 07-13-2004 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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