Re: [SLE] Undeletable files/directory

From: Dave Smith (Dave.Smith_at_st.com)
Date: 11/13/03

  • Next message: Sharpe, Richard: "[SLE] SuSE Firewall on CD"
    Date: Thu, 13 Nov 2003 14:34:02 +0000
    To: suse-linux-e@suse.com
    
    

    On Fri, Nov 14, 2003 at 01:25:07AM +1100, blchupin@tpg.com.au wrote:
    > I have a partition (/data1) formatted in reiserfs on the second HD where
    > I store backups of various files.
    >
    > I just installed SUSE 9 and whether this caused the problem I don't know
    > - and I don't really care so long as I can delete some files.
    >
    > What the problem is is that I suddenly found files in a directory in
    > /data1 which I cannot delete even as root. The message I get if I try to
    > delete is Permission denied (13). All the files begin with the character
    > '?' and are 0 bytes long.
    >
    > The files are only visible using mc (Midnight Commander) and are
    > coloured red; they are not visible using ls -la from the command line or
    > using Konqueror.
    >
    > Trying to delete them from the command line using rm <filename> gives
    > the same error message as in mc, ie Permission denied, while doing rm
    > <?filename> gives the message of No such file.
    >
    > Short of reformatting the partition, how may I delete these files? And
    > what the heck are they so that even root cannot touch them?

    Have you tried

      rm \?<filename>

    (without the '<>')?

    The shell might be trying to expand the ?.

    Also, you don't need permission on the file itself to delete it, but the
    directory in which it resides. Run an 'ls -ld /data1', and check the
    permissions. I think that even 'root' can deny permission to itself if
    it wants to. You may also have mounted the partition read-only, so check
    your /etc/fstab, and the output of 'mount'.

    HTH...

    -- 
    David Smith            Work Email: Dave.Smith@st.com
    STMicroelectronics     Home Email: David.Smith@ds-electronics.co.uk
    Bristol, England          GPG Key: 0xF13192F2
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Sharpe, Richard: "[SLE] SuSE Firewall on CD"

    Relevant Pages

    • Re: MFT corruption issue and permissions
      ... not have permission to access folders or files. ... One of my colleagues discovered that the partition only had root ... I have 2 partitions on the same array. ...
      (microsoft.public.windows.server.sbs)
    • Re: [SLE] Undeletable files/directory
      ... >>delete is Permission denied. ... >>The files are only visible using mc (Midnight Commander) and are ... >>the same error message as in mc, ie Permission denied, while doing rm ... >>what the heck are they so that even root cannot touch them? ...
      (SuSE)
    • SUMMARY: Moving /usr From Under Root "/" To Its Own Partition
      ... One of the reasons for doing this is to end up with a smaller root ... Install the boot block and boot off the new drive. ... " In order for the root partition to be fscked and remounted ... D> temporarily on the existing disk. ...
      (SunManagers)
    • RE: Does Scandisk MSG indicate Hardware, Application, or OS Issue? - R
      ... it is hard to find the root cause since the problem disappeared ... Based on my research, there are several reasons why the tab is missing, ... permission on the registry key ...
      (microsoft.public.windows.file_system)
    • Re: Grub Manual
      ... I have digested what you all have said and applied it to the small file I wrote on the Grub Manual. ... Please no more about what is root. ... Many people keep the entire Linux in one partition and in that case both of the root point to the same partition. ... Your computer often wants to use the name of the kernel. ...
      (Fedora)