Announcement

Collapse
No announcement yet.

Can not delete file from NAS.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can not delete file from NAS.

    I've got a 500 GB hdd in a low-cost NAS device. The device uses a Linux OS and file system.

    I'm trying to access a particular file on the NAS but I keep getting the error:

    Can not delete "xyz":Cannot find the specified file. Make sure you specify the correct path and file name.

    This is happening on three of the many files on the NAS device. Is there a way I can fix/remove the file from my WinXP workstation?

    NAS is a LAN-DRIVEQ device.
    |
    +-- JDMils
    |
    +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
    |

  • #2
    Re: Can not delete file from NAS.

    The issue might be permission's related. (Meaning: don't rely on the dumb error message, I saw it in too many occasions )
    Does your NAS have any WEB managing console? I would try to connect to it and check the file from there (permissions, that it really is there and such, that it is not left open by a previous connection).
    Keep us posted.

    Sorin Solomon


    In order to succeed, your desire for success should be greater than your fear of failure.
    -

    Comment


    • #3
      Re: Can not delete file from NAS.

      If you login on the linuxbox and you give a "chmod 777" on that file, can you delete it then?
      Marcel
      Technical Consultant
      Netherlands
      http://www.phetios.com
      http://blog.nessus.nl

      MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
      "No matter how secure, there is always the human factor."

      "Enjoy life today, tomorrow may never come."
      "If you're going through hell, keep going. ~Winston Churchill"

      Comment


      • #4
        Re: Can not delete file from NAS.

        The NAS device is similar to an external USB case- just with onboard OS and a network port.

        Looking at the problemeatic file:

        Name: Family Sydney Trip 06-07-01 - Clip 001.avi
        Attributes: Archive
        Can't read Summary tab details- "Summary properties are unavailable for the selected source(s)."

        When I try to delete it, it tells me that the file is not found. I remembered that the NAS is also accessible via FTP so I logged in. Here's what I found:

        Permissions: 666 (-rw-rw-rw-)

        Whowa! FTP can delete the file!!! Whereas Windows can not!??

        I tried changing the properties of the file to Read Only, Hidden & Archive but I get an error:

        An error occurred applying attributes to the file:

        <Name>

        The process can not access the file because it is being used by another process.

        I can rename the file thru FTP but not Windows. However, one of the files is so stubborn not even FTP will delete it:

        STATUS:> [7/01/2008 10:13:27 PM] Getting listing "/Media/Video/[2002-02-00] Emily's first day at kinda"...
        COMMAND:> [7/01/2008 10:13:27 PM] CWD /Media/Video/[2002-02-00] Emily's first day at kinda
        [7/01/2008 10:13:27 PM] 250 Requested file action okay, completed.
        STATUS:> [7/01/2008 10:13:27 PM] PWD skipped. Current folder: "/Media/Video/[2002-02-00] Emily's first day at kinda".
        COMMAND:> [7/01/2008 10:13:27 PM] PASV
        [7/01/2008 10:13:27 PM] 227 Entering Passive Mode (192,168,100,2,80,23).
        COMMAND:> [7/01/2008 10:13:27 PM] LIST
        STATUS:> [7/01/2008 10:13:27 PM] Connecting FTP data socket... 192.168.100.2:20503...
        [7/01/2008 10:13:27 PM] 150 File status okay; about to open data connection.
        [7/01/2008 10:13:27 PM] 226 Closing data connection.
        STATUS:> [7/01/2008 10:13:27 PM] Directory listing completed.
        COMMAND:> [7/01/2008 10:13:30 PM] DELE Emily's first day at kinda - Clip 003.avi
        [7/01/2008 10:13:30 PM] 550 Requested action not taken.
        ERROR:> [7/01/2008 10:13:30 PM] Requested action not taken (e.g., file or directory not found, no access).
        I changed the properties thru FTP to "777" and it deleted OK (was 666).

        I've now managed to delete the handful of problematic files but it is worrying that my NAS developed such a problem in the first place!! I'll go and restore those files now........
        |
        +-- JDMils
        |
        +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
        |

        Comment


        • #5
          Re: Can not delete file from NAS.

          Glad it worked out for you
          Marcel
          Technical Consultant
          Netherlands
          http://www.phetios.com
          http://blog.nessus.nl

          MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
          "No matter how secure, there is always the human factor."

          "Enjoy life today, tomorrow may never come."
          "If you're going through hell, keep going. ~Winston Churchill"

          Comment


          • #6
            Re: Can not delete file from NAS.

            Hey, JDMills.
            I'm glad you solved the issue.
            I would pay attention to the filenames I give to files and folders on that box. After all, you're saving Windows files on a Linux filesystem.
            So, I would refrain myself from using special punctuation signs, like apostrophe, for example. And long file names? That
            Family Sydney Trip 06-07-01 - Clip 001.avi
            long? These might be the reasons you got the problem in the first place...

            Sorin Solomon


            In order to succeed, your desire for success should be greater than your fear of failure.
            -

            Comment


            • #7
              Re: Can not delete file from NAS.

              oh, a second option could be the ownership (hey just like windows )
              In that case you could use the command chown...
              Marcel
              Technical Consultant
              Netherlands
              http://www.phetios.com
              http://blog.nessus.nl

              MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
              "No matter how secure, there is always the human factor."

              "Enjoy life today, tomorrow may never come."
              "If you're going through hell, keep going. ~Winston Churchill"

              Comment


              • #8
                Re: Can not delete file from NAS.

                Thanks Marcel, can you do a CHOWN using FTP?
                |
                +-- JDMils
                |
                +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
                |

                Comment


                • #9
                  Re: Can not delete file from NAS.

                  depends on the linux/ftp version.
                  I would say, Try it
                  Marcel
                  Technical Consultant
                  Netherlands
                  http://www.phetios.com
                  http://blog.nessus.nl

                  MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
                  "No matter how secure, there is always the human factor."

                  "Enjoy life today, tomorrow may never come."
                  "If you're going through hell, keep going. ~Winston Churchill"

                  Comment


                  • #10
                    Re: Can not delete file from NAS.

                    Originally posted by JDMils View Post
                    Thanks Marcel, can you do a CHOWN using FTP?
                    i would recommend SSH. ftp isnt a very secure method of passing root commands...
                    its easier to beg forgiveness than ask permission.
                    Give karma where karma is due...

                    Comment

                    Working...
                    X