Announcement

Collapse
No announcement yet.

even the power of sudo cannot remove it

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    even the power of sudo cannot remove it

    LOL
    ok, so i have this rare occurrence that is starting to get annoying.
    occasionally when i move (cut/paste) a folder to another location, sometimes a folder (and sometimes a sub-folder) will remain at the "from" location.
    nothing will be in this folder, it won't have a lock on the icon, but it won't delete.
    i've tried:
    1. delete keyboard button
    2. right-click-->move to trash
    3. drag-n-drop over the trash icon
    4. shift+delete combo
    5. open konsole-->type sudo rm -r "path to folder"
    6. moving (cut/paste) the folder to another location to delete

    1-3 shows the folder disappear and says it was moved to the trash, but hitting F5 to refresh and the folder pops back into existence.
    4 reads the error message at the bottom of the window saying 'Could not remove folder..."
    5 says 'cannot remove file...; file exists'
    and 6 basically just copies the folder which CAN be deleted but the original still remains


    any suggestions?
    this is a weird one... even for me LOL
    Thermaltake Armor chassis<br />Intel Pentium D 960 @ 3.6Ghz<br />4GB DDR2 memory @ PC2-5300<br />6x internal SATA HDD [4.27TB total]<br />1x external 1,000GB HDD via firewire<br />nVidia GeForce 7950 GX2 Extreme<br />52&quot; LCD HDTV | 1920 X 1080p rez<br />Saitek Cyborg keyboard | SilverStone Raven mouse<br />running Kubuntu 10.04

    #2
    Re: even the power of sudo cannot remove it

    not sure why this happens, but I have seen this also...what works for me is
    Code:
    sudo su
    rm -r /path/to/folder
    exit
    mm0
    Dell Inspiron 1720 Laptop<br />Intel T9300 Core2Duo Processor @ 2.5Ghz<br />4 GB Ram | 1920 X 1200 Resolution<br />2 X 160 GB SATA HD Internal<br />Nvidia GeForce 8600M Graphics Adapter<br />Using Kubuntu 9.10

    Comment


      #3
      Re: even the power of sudo cannot remove it

      thanks, mm0, but i just tried that and it too says

      rm: cannot remove directory `/media/1.5TB/My Documents/My Videos/willNotDelete/House/House MD Season 3': File exists

      thanks though.... i guess i could change the folder names to be used in place of folders that will delete... make the most of it or something LOL
      Thermaltake Armor chassis<br />Intel Pentium D 960 @ 3.6Ghz<br />4GB DDR2 memory @ PC2-5300<br />6x internal SATA HDD [4.27TB total]<br />1x external 1,000GB HDD via firewire<br />nVidia GeForce 7950 GX2 Extreme<br />52&quot; LCD HDTV | 1920 X 1080p rez<br />Saitek Cyborg keyboard | SilverStone Raven mouse<br />running Kubuntu 10.04

      Comment


        #4
        Re: even the power of sudo cannot remove it

        rm works only on files. You are trying to remove a directory. Use rmdir instead. By default, rmdir will only remove the target directory if it is empty of all files, including hidden ones.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: even the power of sudo cannot remove it

          hahahaha
          figures i'd be too tired to catch that (rm --> rmdir).
          went back and tried it but still got the same result. i've gone and checked the folder and there aren't any hidden files in it. the "willNotDelete" folder and the 2 sub folders just won't die

          time to reboot LOL
          Thermaltake Armor chassis<br />Intel Pentium D 960 @ 3.6Ghz<br />4GB DDR2 memory @ PC2-5300<br />6x internal SATA HDD [4.27TB total]<br />1x external 1,000GB HDD via firewire<br />nVidia GeForce 7950 GX2 Extreme<br />52&quot; LCD HDTV | 1920 X 1080p rez<br />Saitek Cyborg keyboard | SilverStone Raven mouse<br />running Kubuntu 10.04

          Comment


            #6
            Re: even the power of sudo cannot remove it

            No. Just cd into the directory one level above the last 'sub-directory' and rmdir that directory. Then cd .. to back out one level and rmdir the next 'sub-directory.' Repeat this process until the directory structure you want removed is gone.

            Open a console and type man rmdir to learn about the command.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Re: even the power of sudo cannot remove it

              rmdir will remove empty directories

              rm with -r, -R or --recursive option should remove directories, subdirectories and all the files.

              Comment


                #8
                Re: even the power of sudo cannot remove it

                Originally posted by kubicle
                rmdir will remove empty directories

                rm with -r, -R or --recursive option should remove directories, subdirectories and all the files.
                and -f will force the issue
                # make install --not-war

                Comment

                Working...
                X