Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: USB stick's 3 "undeletable" directories.

  1. #1
    Join Date
    Jun 2017
    Location
    Australia
    Posts
    582

    Default USB stick's 3 "undeletable" directories.

    Hi. This irritating little problem has persisted for a few months. I'm now bringing it to the forum for assistance pls as i've run out of ideas.

    The 3 bold-red directories need to be deleted, but all attempts to do so in Dolphin, as normal user or as root, fail. Today i tried in Konsole, but still cannot delete them.
    Code:
    gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2> ls
    20170910-144843-847  20170926-132318-261  20171008-122125-653  20171029-150642-591  20171112-162638-581
    20170916-130426-963  20170927-151309-585  20171009-210219-896  20171103-103941-508  20171118-162101-633
    20170924-130926-174  20170928-224137-598  20171021-104931-318  20171106-011244-786  last_snapshot
    Using the first one as example:
    Code:
    gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2> rm -f -r 20170910-144843-847/
    
    rm: cannot remove '20170910-144843-847/backup/home/gooeygirl/Documents/1. Home/Computer/Microsoft/Excel Stuff/How to open Excel files in separate windows in Windows 7_files/jquery.bi.queue.js': Input/output error
    
    gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2> sudo rm -f -r 20170910-144843-847/
    [sudo] password for root: 
    rm: cannot remove '20170910-144843-847/backup/home/gooeygirl/Documents/1. Home/Computer/Microsoft/Excel Stuff/How to open Excel files in separate windows in Windows 7_files/jquery.bi.queue.js': Input/output error
    gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2>
    So the mysterious file "jquery.bi.queue.js" [which is invisible in Dolphin, despite showing hidden files] seems to be the problem.

    The directories' Permissions seem ok [?]:
    Code:
    gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2> ls -l
    total 57
    drwx------ 1 gooeygirl users 4096 Nov  3 10:47 20170910-144843-847
    drwx------ 1 gooeygirl users 4096 Nov  6 01:19 20170916-130426-963
    drwx------ 1 gooeygirl users 4096 Nov 18 16:28 20170924-130926-174
    drwx------ 1 gooeygirl users 4096 Sep 26 13:29 20170926-132318-261
    drwx------ 1 gooeygirl users 4096 Sep 27 15:19 20170927-151309-585
    drwx------ 1 gooeygirl users 4096 Sep 28 22:48 20170928-224137-598
    drwx------ 1 gooeygirl users 4096 Oct  8 12:28 20171008-122125-653
    drwx------ 1 gooeygirl users 4096 Oct  9 21:09 20171009-210219-896
    drwx------ 1 gooeygirl users 4096 Oct 21 10:55 20171021-104931-318
    drwx------ 1 gooeygirl users 4096 Oct 29 15:13 20171029-150642-591
    drwx------ 1 gooeygirl users 4096 Nov  3 10:45 20171103-103941-508
    drwx------ 1 gooeygirl users 4096 Nov  6 01:18 20171106-011244-786
    drwx------ 1 gooeygirl users 4096 Nov 12 16:31 20171112-162638-581
    drwx------ 1 gooeygirl users 4096 Nov 18 16:26 20171118-162101-633
    lrwxrwxrwx 1 gooeygirl users   46 Nov 18 16:28 last_snapshot -> 20171118-162101-633
    gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2>
    After changing to the specific subdirectory holding this mysterious file, & trying directly therein to delete it... another failure:
    Code:
    gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2/20170910-144843-847/backup/home/gooeygirl/Documents/1. Home/Computer/Microsoft/Excel Stuff/How to open Excel files in separate windows in Windows 7_files> ls
    ls: cannot access 'jquery.bi.queue.js': Input/output error
    jquery.bi.queue.js
    
    
    gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2/20170910-144843-847/backup/home/gooeygirl/Documents/1. Home/Computer/Microsoft/Excel Stuff/How to open Excel files in separate windows in Windows 7_files> sudo rm -f -r jquery.bi.queue.js
    [sudo] password for root: 
    rm: cannot remove 'jquery.bi.queue.js': Input/output errorgooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2/20170910-144843-847/backup/home/gooeygirl/Documents/1. Home/Computer/Microsoft/Excel Stuff/How to open Excel files in separate windows in Windows 7_files>
    Hmmm, ok, so what are the permissions on this strange file itself?
    Code:
    gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2/20170910-144843-847/backup/home/gooeygirl/Documents/1. Home/Computer/Microsoft/Excel Stuff/How to open Excel files in separate windows in Windows 7_files> ls -l
    ls: cannot access 'jquery.bi.queue.js': Input/output error
    total 0
    -????????? ? ? ? ?            ? jquery.bi.queue.js
    gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2/20170910-144843-847/backup/home/gooeygirl/Documents/1. Home/Computer/Microsoft/Excel Stuff/How to open Excel files in separate windows in Windows 7_files>
    Oh my goodness, what does this mean?

  2. #2
    Join Date
    Jun 2015
    Location
    Toulouse
    Posts
    129

    Default Re: USB stick's 3 "undeletable" directories.

    Le 18/11/2017 à 11:26, GooeyGirl a écrit :


    > Oh my goodness, what does this mean?
    >
    >


    may be the file is open in some application? try lsof.

    snapshot? is that a btrfs file system?

    jdd

  3. #3

    Default Re: USB stick's 3 "undeletable" directories.

    First of all, never use usb sticks for holding the only copy of files. Sticks are much too unreliable for this. I knew a guy who had his PhD thesis on a stick (and only there) and the stick failed with only days to go until handing in the paper. Same happened to another guy and his master thesis, though that was on floppy disk at the time.

    That said, input/output error ususally means that either the filesystem is borked or the device has sectors gone bad.

    * run a filesystem check for the fs used on the stick
    * dd the whole stick to file (or /dev/null, we are only interested in errors showing when accessing source sectors) while watching dmesg output

  4. #4

    Default Re: USB stick's 3 "undeletable" directories.

    On 11/18/2017 05:26 AM, GooeyGirl wrote:
    >
    > Hi. This irritating little problem has persisted for a few months. I'm
    > now bringing it to the forum for assistance pls as i've run out of
    > ideas.
    >
    > The 3 bold-red directories need to be deleted, but all attempts to do so
    > in Dolphin, as normal user or as root, fail. Today i tried in Konsole,
    > but still cannot delete them.
    >
    > Code:
    > --------------------
    >
    > gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2> *ls*
    > *20170910-144843-847* 20170926-132318-261 20171008-122125-653 20171029-150642-591 20171112-162638-581
    > *20170916-130426-963* 20170927-151309-585 20171009-210219-896 20171103-103941-508 20171118-162101-633
    > *20170924-130926-174* 20170928-224137-598 20171021-104931-318 20171106-011244-786 last_snapshot
    >
    > --------------------
    >
    >
    > Using the first one as example:
    >
    > Code:
    > --------------------
    >
    > gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2> *rm -f -r 20170910-144843-847/*
    >
    > rm: cannot remove '20170910-144843-847/backup/home/gooeygirl/Documents/1. Home/Computer/Microsoft/Excel Stuff/How to open Excel files in separate windows in Windows 7_files/jquery.bi.queue.js': Input/output error


    You might try using Code:
    *****

    rm -ri *

    ******

    This will invoke an interactive rm dialog asking for confirmation on
    each file. It may provide some further clues.

    --
    Ken
    linux since 1984
    S.u.S.E./openSUSE since 1996

  5. #5
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,173
    Blog Entries
    3

    Default Re: USB stick's 3 "undeletable" directories.

    My way of "fixing" the problem would be:

    Step 1: Make a backup of everything important.
    Step 2: Reformat the USB.
    Step 3: Restore from the backup.

    The old fashioned way of fixing such problems was with "clri". You would use "clri" to clear the inode (zero it out). And then you use use "fsck" to fix the problem created by "clri". And then all would be good.

    The "clri" command is not longer there. Apparently it is now a subcommand of "debugfs". And whether it would be useful, depends on the file system. It wouldn't work with NTFS or FAT. It might not work with "btrfs".
    openSUSE Leap 15.1; KDE Plasma 5;

  6. #6
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,037

    Default Re: USB stick's 3 "undeletable" directories.

    On Sat, 18 Nov 2017 10:26:02 +0000, GooeyGirl wrote:

    > rm: cannot remove
    > '20170910-144843-847/backup/home/gooeygirl/Documents/1.
    > Home/Computer/Microsoft/Excel Stuff/How to open Excel files in
    > separate windows in Windows 7_files/jquery.bi.queue.js': Input/output
    > error


    This tells me that there's likely a problem with the media that's causing
    the issue. I'd concur with the idea of backing the device up, reformat,
    and then test it (maybe using dd to write data to it and see if it throws
    any additional i/o errors).



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  7. #7
    Join Date
    Jun 2017
    Location
    Australia
    Posts
    582

    Default Re: USB stick's 3 "undeletable" directories.

    Thank you all for these helpful replies. Temporarily this matter is on hold, til i resolve a lovely new problem that arose yesterday, https://forums.opensuse.org/showthre...-but-not-login . Once that mess is fixed i'll be able to work again on this USB stick issue, using the collective advice i've received here. I'll post back later with pertinent developments. .

  8. #8
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,431

    Default Re: USB stick's 3 "undeletable" directories.

    Having acquired over time a number of USB sticks with similar problems, I resorted to
    Code:
    dd if=/dev/zero of=/dev/sd?
    In some cases, I got a fully working USB stick back; in some, it had gone too far to be recovered. The main indicator of failure was how long, relatively, the code took to execute.

  9. #9
    Join Date
    Sep 2014
    Location
    Germany
    Posts
    335

    Default AW: USB stick's 3 "undeletable" directories.

    Quote Originally Posted by GooeyGirl View Post
    ... The 3 bold-red directories need to be deleted, but all attempts to do so in Dolphin, as normal user or as root, fail. Today i tried in Konsole, but still cannot delete them.
    Code:
    gooeygirl@linux-Tower:/media/veracrypt2/backintime/GA-Z97-HD3/gooeygirl/2> ls
    20170910-144843-847  20170926-132318-261  20171008-122125-653  20171029-150642-591  20171112-162638-581
    20170916-130426-963  20170927-151309-585  20171009-210219-896  20171103-103941-508  20171118-162101-633
    20170924-130926-174  20170928-224137-598  20171021-104931-318  20171106-011244-786  last_snapshot
    Is there more than one partition on the stick?

    What file system is in use?

    Is there any encryption?

    Did you create those directories/files from MS Windows?

    Regards

    susejunky

  10. #10
    Join Date
    Jun 2017
    Location
    Australia
    Posts
    582

    Default Re: USB stick's 3 "undeletable" directories.

    Quote Originally Posted by jdd View Post
    Le 18/11/2017 à 11:26, GooeyGirl a écrit :


    > Oh my goodness, what does this mean?
    >
    >


    may be the file is open in some application? try lsof.

    snapshot? is that a btrfs file system?

    jdd
    Thanks for yr reply, sorry for my delay [been fighting other crocodiles for several days]. No the files can't still be open; as i said this status has existed for months, across multiple reboots, + the stick is only inserted into the port ~weekly. My root is btrfs whist my home is xfs. However in the context of this thread, that "snapshot" is part of the BackInTime [a backup pgm] file structure [ie, unrelated to btrfs which just happens to use the same word for a very different purpose]. That's what this stick is used for; my weekly data backups via BiT pgm.

Page 1 of 4 123 ... 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
  •