GNU bug report logs -
#27420
Self Destruct - Self Erase of All Data On SD Card Using Shred,
Previous Next
Reported by: John Shearing <johnshearing <at> gmail.com>
Date: Sun, 18 Jun 2017 16:40:02 UTC
Severity: normal
Tags: notabug
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27420 in the body.
You can then email your comments to 27420 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#27420
; Package
coreutils
.
(Sun, 18 Jun 2017 16:40:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
John Shearing <johnshearing <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Sun, 18 Jun 2017 16:40:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
favorite
<https://raspberrypi.stackexchange.com/questions/68635/self-destruct-self-erase-of-all-data-on-sd-card-using-shred-dd-or-some-other#>
I will be using a raspberry pi as an air-gapped computer to make secure
encrypted transactions on the Ethereum BlockChain. Once in awhile I will
want to update the software I am using which will mean taking the SD card
out of the pi and inserting it into a laptop computer which is connected to
the Internet. I would like to use some program or command line utility on
the raspberry pi to securely erase everything on the SD card before
removing it as this will eliminate all possibility of sensitive information
being read off the SD card by bad actors which may have compromised my
laptop.
The following command typed in at the pi terminal conveys the idea of what
I hope to accomplish:
shred --verbose *.*
Is this possible using shred?
Thanks, John
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#27420
; Package
coreutils
.
(Sun, 18 Jun 2017 18:44:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 27420 <at> debbugs.gnu.org (full text, mbox):
tag 27420 notabug
close 27420
stop
On 18/06/17 00:22, John Shearing wrote:
> favorite
> <https://raspberrypi.stackexchange.com/questions/68635/self-destruct-self-erase-of-all-data-on-sd-card-using-shred-dd-or-some-other#>
>
> I will be using a raspberry pi as an air-gapped computer to make secure
> encrypted transactions on the Ethereum BlockChain. Once in awhile I will
> want to update the software I am using which will mean taking the SD card
> out of the pi and inserting it into a laptop computer which is connected to
> the Internet. I would like to use some program or command line utility on
> the raspberry pi to securely erase everything on the SD card before
> removing it as this will eliminate all possibility of sensitive information
> being read off the SD card by bad actors which may have compromised my
> laptop.
>
> The following command typed in at the pi terminal conveys the idea of what
> I hope to accomplish:
> shred --verbose *.*
>
> Is this possible using shred?
shred already supports passing multiple files, however
you would be much safer shredding at the device level,
since there is all sort of reallocation etc. happening within filesystems.
I.E. something along the lines of:
SDCARD=/dev/sdb1
umount $SDCARD
shred --verbose $SDCARD
mkfs.ext4 $SDCARD
Note you can partition the SDCARD if there only a portion that
you want to destructively recreate like this.
cheers,
Pádraig.
Added tag(s) notabug.
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Sun, 18 Jun 2017 18:44:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
27420 <at> debbugs.gnu.org and John Shearing <johnshearing <at> gmail.com>
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Sun, 18 Jun 2017 18:44:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#27420
; Package
coreutils
.
(Thu, 22 Jun 2017 08:03:01 GMT)
Full text and
rfc822 format available.
Message #15 received at submit <at> debbugs.gnu.org (full text, mbox):
On Sunday 18 June 2017, Pádraig Brady wrote:
> tag 27420 notabug
> close 27420
> stop
>
> On 18/06/17 00:22, John Shearing wrote:
> > favorite
> > <https://raspberrypi.stackexchange.com/questions/68635/self-destruc
> >t-self-erase-of-all-data-on-sd-card-using-shred-dd-or-some-other#>
> >
> > I will be using a raspberry pi as an air-gapped computer to make
> > secure encrypted transactions on the Ethereum BlockChain. Once in
> > awhile I will want to update the software I am using which will
> > mean taking the SD card out of the pi and inserting it into a
> > laptop computer which is connected to the Internet. I would like to
> > use some program or command line utility on the raspberry pi to
> > securely erase everything on the SD card before removing it as this
> > will eliminate all possibility of sensitive information being read
> > off the SD card by bad actors which may have compromised my laptop.
> >
> > The following command typed in at the pi terminal conveys the idea
> > of what I hope to accomplish:
> > shred --verbose *.*
> >
> > Is this possible using shred?
>
> shred already supports passing multiple files, however
> you would be much safer shredding at the device level,
> since there is all sort of reallocation etc. happening within
> filesystems. I.E. something along the lines of:
>
> SDCARD=/dev/sdb1
> umount $SDCARD
> shred --verbose $SDCARD
> mkfs.ext4 $SDCARD
>
> Note you can partition the SDCARD if there only a portion that
> you want to destructively recreate like this.
Does schred support SSD on the lowlevel? I don't think you can truly
wipe na SSD by overwriting it, especially if you would overwrite only a
file or partition
If the drive supports "ATA Secure Erase commands" you should
use "hdparm" like this:
https://www.thomas-krenn.com/en/wiki/SSD_Secure_Erase#Step_3:_Secure_Erase
Otherwise, and if you are not paranoid, you could also use "blkdiscard"
(ATA TRIM).
FYI, here somebody explains the issues with erasing SSDs very well
https://superuser.com/a/856491/229214
Regarding shred, maybe it's worth to add something about SSDs in the
CAUTION section of the man page.
cu,
Rudi
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#27420
; Package
coreutils
.
(Thu, 22 Jun 2017 08:03:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#27420
; Package
coreutils
.
(Sat, 24 Jun 2017 03:10:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 27420 <at> debbugs.gnu.org (full text, mbox):
On 22/06/17 01:02, Ruediger Meier wrote:
> On Sunday 18 June 2017, Pádraig Brady wrote:
>> tag 27420 notabug
>> close 27420
>> stop
>>
>> On 18/06/17 00:22, John Shearing wrote:
>>> favorite
>>> <https://raspberrypi.stackexchange.com/questions/68635/self-destruc
>>> t-self-erase-of-all-data-on-sd-card-using-shred-dd-or-some-other#>
>>>
>>> I will be using a raspberry pi as an air-gapped computer to make
>>> secure encrypted transactions on the Ethereum BlockChain. Once in
>>> awhile I will want to update the software I am using which will
>>> mean taking the SD card out of the pi and inserting it into a
>>> laptop computer which is connected to the Internet. I would like to
>>> use some program or command line utility on the raspberry pi to
>>> securely erase everything on the SD card before removing it as this
>>> will eliminate all possibility of sensitive information being read
>>> off the SD card by bad actors which may have compromised my laptop.
>>>
>>> The following command typed in at the pi terminal conveys the idea
>>> of what I hope to accomplish:
>>> shred --verbose *.*
>>>
>>> Is this possible using shred?
>>
>> shred already supports passing multiple files, however
>> you would be much safer shredding at the device level,
>> since there is all sort of reallocation etc. happening within
>> filesystems. I.E. something along the lines of:
>>
>> SDCARD=/dev/sdb1
>> umount $SDCARD
>> shred --verbose $SDCARD
>> mkfs.ext4 $SDCARD
>>
>> Note you can partition the SDCARD if there only a portion that
>> you want to destructively recreate like this.
>
> Does schred support SSD on the lowlevel? I don't think you can truly
> wipe na SSD by overwriting it, especially if you would overwrite only a
> file or partition
This is a good point and already mentioned in the shred info docs.
That mainly protects against sophisticated access to the device though,
whereas the case here is for standard access (through a compromised laptop).
cheers,
Pádraig
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 22 Jul 2017 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 329 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.