Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35

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

  1. #21
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

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

    Quote Originally Posted by GooeyGirl View Post
    Last night i kicked off with your suggestion, but [out of pure curiosity] i chose to initially perform the command in the ~128 GB stick's 100 GB VeraCrypt volume. For a couple of hours i could not specifically understand if anything was happening, but decided it was, when i noticed the cpu usage was unnaturally high [& all my other ongoing usual stuff i was doing does not do that].
    You can use the dd 'status=progress' option to get some feedback while it is active.

    After another couple of hours when i checked Konsole again, i discovered this:
    Code:
    gooeygirl@linux-Tower:/media/veracrypt2> sudo blkid
    [sudo] password for root: 
    
    /dev/sdc1: LABEL="SanDisk_ExtremePro" UUID="3690848A13C24128" TYPE="ntfs" PARTUUID="0008e9e6-01"
    /dev/mapper/veracrypt2: UUID="389896A298965DE6" TYPE="ntfs"
    
    gooeygirl@linux-Tower:/media/veracrypt2> sudo dd if=/dev/zero of=/dev/mapper/veracrypt2
    [sudo] password for root: 
    dd: writing to '/dev/mapper/veracrypt2': No space left on device
    209714689+0 records in
    209714688+0 records out
    107373920256 bytes (107 GB, 100 GiB) copied, 12813.3 s, 8.4 MB/s
    gooeygirl@linux-Tower:/media/veracrypt2>
    So, still in the spirit of idle curiosity, i'm tossing up now whether to repeat the command on the actual stick itself [ie, /dev/sdc1], or alternatively try to format it, then inspect the wreckage afterwards to see what is left. I also acknowledge that i don't understand the proper interpretation of that command output above. Is the fact of the records count differing by [only?] 1 evidence of a catastrophically damaged device, or instead of a device that still is in fair condition?
    That output looks okay to me. Why not format it and put to the test again?

  2. #22
    Join Date
    Jun 2017
    Location
    Australia
    Posts
    582

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

    Thanks deano [btw, this arrangement of you living just over the ditch from me works great during daytimes wrt you kindly giving me timely replies].

    Cool command -- thanks, i look fwd to trying it.

    By "format it and put to the test again", do you mean that post-format i should simply begin using it as normal for my backups [ie, a "real life test"], or do you mean instead to do the dd bizzo on it? I suspect you mean the latter. If so, & if i get similar output again, does that mean the stick IS serviceable without further to-do [if so, do i then need to reformat again post-dd before creating a new VC volume?]? I did read the dd man page, but it speaks at the micro scale whereas i don't grasp the big-picture of that command.

  3. #23
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

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

    Quote Originally Posted by GooeyGirl View Post
    Thanks deano [btw, this arrangement of you living just over the ditch from me works great during daytimes wrt you kindly giving me timely replies].
    Yes, I wish we had more members from this side of the equator!

    By "format it and put to the test again", do you mean that post-format i should simply begin using it as normal for my backups [ie, a "real life test"], or do you mean instead to do the dd bizzo on it? I suspect you mean the latter.
    The 'dd' command was used to wipe the device at a low-level. I actually meant install a file system on it again.

  4. #24
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

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

    Quote Originally Posted by GooeyGirl View Post
    So, still in the spirit of idle curiosity, i'm tossing up now whether to repeat the command on the actual stick itself [ie, /dev/sdc1],...
    I think this would have been a better idea - zero the device itself rather than the encrypted partition.

  5. #25
    Join Date
    Jun 2017
    Location
    Australia
    Posts
    582

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

    Quote Originally Posted by deano_ferrari View Post
    I think this would have been a better idea - zero the device itself rather than the encrypted partition.
    Got it. Now done:
    Code:
    gooeygirl@linux-Tower:/run/media/gooeygirl> sudo blkid
    [sudo] password for root: 
    
    /dev/sdc1: LABEL="SanDisk_ExtremePro" UUID="3690848A13C24128" TYPE="ntfs" PARTUUID="0008e9e6-01"
    
    
    gooeygirl@linux-Tower:/run/media/gooeygirl> sudo dd 'status=progress' if=/dev/zero of=/dev/sdc1
    128025813504 bytes (128 GB, 119 GiB) copied, 13822 s, 9.3 MB/s
    dd: writing to '/dev/sdc1': No space left on device
    250064562+0 records in
    250064561+0 records out
    128033055232 bytes (128 GB, 119 GiB) copied, 13822.9 s, 9.3 MB/s
    gooeygirl@linux-Tower:/run/media/gooeygirl>
    Opinions, pls?

  6. #26
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,586
    Blog Entries
    14

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

    Opinions don't count in ICT , we love booleans.

    I would have dd't the actual device, not a partition. So
    Code:
    dd if=/dev/zero of=/dev/sdc bs=1M count=100
    where I add the bs= option to set the block size of writing ( 1 MB ) and count= to set the number of blocks to write. This combo makes sure the partition table is destroyed completely and allows the stick to be repartitioned and have filesystems on the new partitions.
    From the other side of the equator, but timely I hope
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  7. #27
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,140

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

    Quote Originally Posted by Knurpht View Post
    Opinions don't count in ICT , we love booleans.
    Yeh... but... I always thought an opinion was analogous to the high impedance state in tri-state logic; effectively disconnected
    Regards, Paul

    Tumbleweed (Snapshot: 20190716) KDE Plasma 5
    Leap 15.0 KDE Plasma 5
    [Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected]

  8. #28
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

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

    Quote Originally Posted by tannington View Post
    Yeh... but... I always thought an opinion was analogous to the high impedance state in tri-state logic; effectively disconnected
    Yes, but even then your 'opinions' can be 'biased' with a pull-up or pull-down resister

  9. #29
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

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

    Quote Originally Posted by Knurpht View Post

    I would have dd't the actual device, not a partition. So
    Code:
    dd if=/dev/zero of=/dev/sdc bs=1M count=100
    where I add the bs= option to set the block size of writing ( 1 MB ) and count= to set the number of blocks to write. This combo makes sure the partition table is destroyed completely and allows the stick to be repartitioned and have filesystems on the new partitions.
    +1 to Knurpht's advice.

  10. #30
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,586
    Blog Entries
    14

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

    Quote Originally Posted by deano_ferrari View Post
    Yes, but even then your 'opinions' can be 'biased' with a pull-up or pull-down resister
    Whoohah ...........
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Page 3 of 4 FirstFirst 1234 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
  •