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

Thread: I can not delete files

  1. #1

    Default I can not delete files

    Hello.

    I was performing a backup on a external disk with ntfs Backintime in which uses rsync. I turned off the external drive while I was doing a copy and some files that were copied to the disk can not remove them.

    Also I tried rm-rf but I get the following error:

    rm: can not remove 'new_snapshot/backup/home/jonatan/.config/teamviewer8/dosdevices/c:' Error in/out

    As I can delete those files?

    Thank you.

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,481
    Blog Entries
    3

    Default Re: I can not delete files

    Quote Originally Posted by jony127 View Post
    I was performing a backup on a external disk with ntfs Backintime in which uses rsync. I turned off the external drive while I was doing a copy and some files that were copied to the disk can not remove them.
    My suggestion: Plug the external drive into a Windows system. Then run
    Code:
    CHKDSK /F
    on the disk. You might need to do that from an Administrative command prompt.

    It is best to let Windows fix broken NTFS file systems.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: I can not delete files

    On 2014-05-21 01:06, jony127 wrote:
    >
    > Hello.
    >
    > I was performing a backup on a external disk with ntfs Backintime in
    > which uses rsync. I turned off the external drive


    That corrupted the ntfs filesystem, and Linux can not repair it. Till
    you do, it is mounted read only, and you can not delete things, nor
    write to it - just an educated guess.

    You need to "repair" that disk using Windows.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,977

    Default Re: I can not delete files

    And that leads to the uderlying problem. Why do you use a non-Linux file system for backup? It will not store ownership, etc. and it will give you problems like the above. Better use non-Linux file systems only for exchanging files with non-Linux systems. And making backups does not fall into that category IMHO.
    Henk van Velden

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: I can not delete files

    On 2014-05-21 09:46, hcvv wrote:
    >
    > And that leads to the uderlying problem. Why do you use a non-Linux file
    > system for backup? It will not store ownership, etc. and it will give
    > you problems like the above. Better use non-Linux file systems only for
    > exchanging files with non-Linux systems. And making backups does not
    > fall into that category IMHO.


    Yes, absolutely.

    On an ntfs filesystem you can not store Linux ownership information, nor
    file permissions, and I think nor acls. Symlinks are possible, but I
    have doubts about hardlinks - and Backintime uses them.

    The only way to make backups from Linux to an ntfs/fat filesystem is
    using an archive (zip, tar, cpio...).

    The exception is, of course, making copies of data files, where
    permissions are more or less irrelevant because they all belong to a
    single user.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  6. #6

    Default Re: I can not delete files

    use ntfs external drives because it is where I store the games iso windows and also use the external drive for backups.

    Now leave me worried that Backintime not successful backups in ntfs. The theme of the permits does not worry me too much.

    Someone can confirm me if not done correctly Backintime copies ntfs, I do not care about saving the permits.

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: I can not delete files

    On 2014-05-21 13:06, jony127 wrote:
    >
    > use ntfs external drives because it is where I store the games iso
    > windows and also use the external drive for backups.


    Get another one for Linux :-)

    > Now leave me worried that Backintime not successful backups in ntfs. The
    > theme of the permits does not worry me too much.


    Depending on what you backup exactly, it may matter a lot.
    For instance, if you try to backup and restore the system, it will not
    work, simple as that. You can only backup data files, like your
    documents on home.

    (permissions is vague: some linux permissions specify the file
    type, like executable, device, pipe...)

    Another problem you may hit is that Linux and Windows (ntfs) do not
    allow the same names on files. For instance, in Linux you can have
    "mine:financial" as a valid file name. Windows will refuse the ':' and
    not backup that file, or "sanitize" it.

    Another problem is the charset used for names, so names not purely in
    English might not translate. Linux uses UTF-8. Windows, depends.


    > Someone can confirm me if not done correctly Backintime copies ntfs,


    I do not understand this sentence.



    In any case, you need to repair that ntfs disk in Windows.


    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  8. #8

    Default Re: I can not delete files

    I have already repaired properly.

    Now I've seen that gives windows errors with the character ":"

    Only use Backintime to make copies of my home in the ntfs drive. What if I make only copy of my home in ntfs no problem?

  9. #9
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,481
    Blog Entries
    3

    Default Re: I can not delete files

    Quote Originally Posted by hcvv View Post
    And that leads to the uderlying problem. Why do you use a non-Linux file system for backup? It will not store ownership, etc. and it will give you problems like the above.
    That needs a bit of clarification.

    If you are backing up to some sort of archive (with "tar" or "dar" or "clonezilla"), then unix permissions/ownership, etc will be in the archive. So NTFS can be okay in that case. But backup by direct copying of files to the NTFS file system will lose important information.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,977

    Default Re: I can not delete files

    I can only repeat what I said earlier:
    Better use non-Linux file systems only for exchanging files with non-Linux systems.
    I am only using non-Linux file systems on e.g. an USB stick when somebody comes with something on it from his/her system, or when I have to offer somebody, that has yet not seen the light of Linux, a file. Never for anything else. And I can not give any advice on what under what special circumstances or with what restrictions or with what special handling you may be able to do with non-Linux file systems when you persist on using them.

    And backups are to precious to me to put them on such file systems. But you may be happy with it.
    Henk van Velden

Page 1 of 2 12 LastLast

Posting Permissions

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