Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: can't remove 0 byte files

  1. #1
    Join Date
    Jan 2008
    Location
    /home/Lebanon
    Beans
    130
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Question can't remove 0 byte files

    I got two exactly same files, in very the same folder that are not visible only in terminal. They somehow do now allow my system to boot,it asks for manual scan and it stops on this file.

    B# ls -s
    ls: cannot access Radoslaw Skowron.doc: No such file or directory
    ls: cannot access Radoslaw Skowron.doc: No such file or directory
    total 0
    0 Radoslaw Skowron.doc 0 Radoslaw Skowron.doc
    root@ubuntu:#

    # rm Radoslaw\ Skowron.doc
    rm: cannot remove `Radoslaw Skowron.doc': No such file or director

    cant get rid of these files .. its soo annoying.. .. anyone ?
    Qosmio F40 Santa Rosa
    HTC Hero rocks
    “A bartender is a temporary pharmacist with a limited inventory”

  2. #2
    Join Date
    Jan 2008
    Location
    the space between spaces.
    Beans
    1,654

    Re: can't remove 0 byte files

    Hm... try removing the folder maybe?
    Code:
    rm -r foldername
    "If a cluttered desk signs a cluttered mind, Of what, then, is an empty desk a sign?" -Albert Einstein.

  3. #3
    Join Date
    Jan 2008
    Location
    /home/Lebanon
    Beans
    130
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: can't remove 0 byte files

    Quote Originally Posted by damis648 View Post
    Hm... try removing the folder maybe?
    Code:
    rm -r foldername
    tried that too..nothing :\ even mv ...
    Qosmio F40 Santa Rosa
    HTC Hero rocks
    “A bartender is a temporary pharmacist with a limited inventory”

  4. #4
    Join Date
    Nov 2007
    Location
    192.168.1.65
    Beans
    78
    Distro
    Ubuntu Karmic Koala (testing)

    Re: can't remove 0 byte files

    Yes, that would help. Generally, you need to add flags for deleting files. For directories, I usually just use: rm -rf foldername

    It has stuck with me since I'm an old school user. If you want to remove a file in a folder, just cd into the folder and remove it that way.

    Good luck and I hope this helps.

    -Evil

  5. #5
    Join Date
    Jan 2008
    Location
    /home/Lebanon
    Beans
    130
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: can't remove 0 byte files

    Quote Originally Posted by evilaim View Post
    Yes, that would help. Generally, you need to add flags for deleting files. For directories, I usually just use: rm -rf foldername

    It has stuck with me since I'm an old school user. If you want to remove a file in a folder, just cd into the folder and remove it that way.

    Good luck and I hope this helps.

    -Evil
    and this is what my laptop got to say on that :
    # rm -rf USB/
    rm: cannot remove directory `USB': Directory not empty

    let me see if everything is fine now.

    brb


    its a folder on my desktop called USB ..

    but ... i tried -rf inside that folder , i specified that file.. and its gone now.
    Last edited by marcon00; March 25th, 2009 at 10:34 PM.
    Qosmio F40 Santa Rosa
    HTC Hero rocks
    “A bartender is a temporary pharmacist with a limited inventory”

  6. #6
    Join Date
    Nov 2007
    Location
    192.168.1.65
    Beans
    78
    Distro
    Ubuntu Karmic Koala (testing)

    Re: can't remove 0 byte files

    Good to hear, but you don't need a / at the end of it...
    you could always do: rm -rf USB/*
    but generally rm -rf USB
    would work great.

  7. #7
    Join Date
    Jan 2008
    Location
    /home/Lebanon
    Beans
    130
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: can't remove 0 byte files

    Quote Originally Posted by evilaim View Post
    Good to hear, but you don't need a / at the end of it...
    you could always do: rm -rf USB/*
    but generally rm -rf USB
    would work great.
    thanks.. but guess what, somehow they came back .. im so lost why this happens. I'm gonna hard format my Drives, see if there are any problems with the disk ( i need to format anyways )

    sss2.docx
    ?? ?????.EXT ???? ??????? ???? ??????.txt
    ?? ?????.EXT ???? ??????? ???? ??????.txt
    ?? ?????.EXT ???? ??????? ???? ??????.txt
    ?? ?????.EXT ???? ??????? ???? ??????.txt
    ?? ?????.EXT ???? ??????? ???? ??????.txt
    ?? ?????.EXT ???? ??????? ???? ??????.txt


    cant delete them .. again .. even with -rf
    Qosmio F40 Santa Rosa
    HTC Hero rocks
    “A bartender is a temporary pharmacist with a limited inventory”

  8. #8
    Join Date
    Sep 2007
    Location
    the Hague, Netherlands
    Beans
    949
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: can't remove 0 byte files

    Did you make those files or did they really "just appear"? It sounds like you got a virus. Which would be pretty bad, because it would be the first destructive, hard-to-remove virus for linux, ever

  9. #9
    Join Date
    Aug 2007
    Beans
    949

    Re: can't remove 0 byte files

    It's probably not a virus. It sounds to me more like a file system problem, run as root

    Code:
    fsck -C / -r
    To check your file system integrity. (assuming your suspect files are in your / partition)

    EDIT.
    And unmount the partition first.
    Last edited by soltanis; April 9th, 2009 at 11:10 PM. Reason: clerical error

  10. #10
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: can't remove 0 byte files

    Quote Originally Posted by soltanis View Post
    It's probably not a virus. It sounds to me more like a file system problem, run as root

    Code:
    fsck -C / -r
    To check your file system integrity. (assuming your suspect files are in your / partition)

    EDIT.
    And unmount the partition first.
    Which means this cannot be done on a booted system.

    Boot off a Live CD and do a check on the partition using the Partition Manager.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •