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
So, still in the spirit of idle curiosity, i’m tossing up now whether to repeat the command on the actual stick itself [ie, [i]/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?
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.
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.
I would have dd’t the actual device, not a partition. So
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
Thanks for this. It’s now my Wed mid-morning, but i did actually see your reply very late last night. I immediately tried it, & was so upset at what i discovered [NOT upset at your advice, but at what my naughty stick has now done], but too tired to think clearly, so i decided to look again after some sleep.
gooeygirl@linux-Tower:~> **sudo blkid**[sudo] password for root:
gooeygirl@linux-Tower:~> **sudo dd 'status=progress' if=/dev/zero of=/dev/sdc bs=1M count=100**
100+0 records in
100+0 records out
104857600 bytes (105 MB, 100 MiB) copied, 0.026515 s, 4.0 GB/s
This is what Dolphin showed me after earlier running “deano’s” command, & continued to show me after “your” command [ie, the now-obliterated 100 GB VeraCrypt volume on the stick seems never to have “given back” its space; my 128 GB stick became a 17 GB stick. But wait, it gets even worse, read on…]:
Now this morning, having unmounted & removed the stick from Tower, upon reinserting it Tower no longer even detects it. Sigh. I booted up Lappy & tried it there… also nothing at all. Expletives.
PS - I hope my thanks to deano for fast replies was not accidentally construed by any other Mods as insulting them. Everyone here is wonderful re help & i did not intend to imply otherwise. It’s just that i was kinda sharing some antipodean wry humour about us being in an apparent latitudinal minority here.
Yes i knew/know that, thanks… but possibly what i failed to understand is that a consequence of that is that neither pc now even knows that the stick is inserted in a(ny) USB port. If the stick is not detected by the OS, how can i proceed to do those important next steps you described?
EDIT: Ah, more coffee needed. Answer = GParted. I’m a dope.
Yay, thanks so much all, in each timezone!]. Post-gparted, with creating msdos partition table then new ext4 partition, Dolphin [of course] now sees the stick. It claims it has “110.8 GB free of 116.9 GB (5% used)”. Is it right for me to conclude that the “missing” space [it is / was notionally a 128 GB stick, once] is the result of the unserviceable blocks gogalthorp previously described?