Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] OT: blanking disk of linux appliance
Date: Mon, 14 Jan 2013 02:11:46
Message-Id: CAC=wYCGq4GePRQUwg+eWLGNsnQSoRPtZbQm0X1NkPc1QPC9FAw@mail.gmail.com
1 shred and dd available, but not srm etc
2
3 I want to remove the user account info before the device is returned, but
4 dont want to cripple the device. Filesystem is ext3 with default mount
5 options, which implies its mounted with the default data=ordered, and
6 according to the docs "In both the data=ordered (default) and
7 data=writeback modes, shred works as usual"
8
9 Would these steps be effective?
10 - set root pw back to installation default
11 - manually create copies of passwd and shadow (named passwd2 shadow2, NOT
12 by copying files then deleting extra lines) containing only the default
13 installation entries
14 - shred /etc/passwd /etc/shadow
15 - mv passwd2 and shadow2 to passwd and shadow
16 - dd if=/dev/zero of=/blah (to blank all spare blocks on fs, dd will bail
17 out once full. Will it miss info from non-fully allocated blocks?)
18 - rm /blah

Replies

Subject Author
Re: [gentoo-user] OT: blanking disk of linux appliance Mick <michaelkintzios@×××××.com>
Re: [gentoo-user] OT: blanking disk of linux appliance Florian Philipp <lists@×××××××××××.net>
Re: [gentoo-user] OT: blanking disk of linux appliance Stroller <stroller@××××××××××××××××××.uk>