Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] {OT} Preparing a laptop for sale
Date: Thu, 17 Dec 2009 04:19:43
Message-Id: 4B299C27.4030306@gmail.com
In Reply to: Re: [gentoo-user] {OT} Preparing a laptop for sale by Joshua Murphy
1 Joshua Murphy wrote:
2 > On Wed, Dec 16, 2009 at 6:36 PM, Dale <rdalek1967@×××××.com> wrote:
3 >
4 >> Mick wrote:
5 >>
6 >>> On Wednesday 16 December 2009 18:49:07 Grant wrote:
7 >>>
8 >>>
9 >>>> I'm about to sell my old laptop and I'd like to wipe out the data and
10 >>>> install any flavor of Linux via USB (the CD drive doesn't work any
11 >>>> more). I've got a bootable USB key that will get me into Gentoo. How
12 >>>> would you take it from there? I'm looking for something quick and
13 >>>> easy. My data isn't too sensitive, but I'd like to do some type of
14 >>>> wiping so it isn't all just sitting there with a deleted flag or
15 >>>> however that works.
16 >>>>
17 >>>>
18 >>> First I'd mount the partitions and then emerge/use shred:
19 >>>
20 >>> # shred -v -n 25 -z -u /mnt/a_partition
21 >>>
22 >>> Then I would delete old partitions, create new partitions and format them
23 >>> as required. If you're really paranoid about your data (which from what
24 >>> you're telling me you're not) you can also use dd to randomly overwrite
25 >>> partition tables, but I would probably not bother.
26 >>>
27 >>> Now, there may be more modern tools to do all this with a single button,
28 >>> but I haven't looked into it in any detail.
29 >>>
30 >>> HTH.
31 >>>
32 >>>
33 >> Also note that shred, at least the last I read, doesn't work to well on some
34 >> file systems. I know this used to be true for reiserfs and some other
35 >> journalized file systems.
36 >>
37 >> I'm thinking the dd thing may be the best way here. I don't think it cares
38 >> about file systems when it does its thing.
39 >>
40 >> Dale
41 >>
42 >> :-) :-)
43 >>
44 >>
45 >
46 > That is, of course, when shredding individual files, where the final
47 > location and initial locations for them may not wind up being the same
48 > place on disk. When 'shredding' a whole partition, though, the file
49 > system itself ceases to matter, as it in itself is being overwritten
50 > as well as all the data it provides a means of indexing for.
51 >
52 > Incidentally, I believe the oft referenced here DBAN uses shred
53 > internally, last I looked.
54 >
55 >
56
57 That makes sense. So, the OP shouldn't mount the drives but shred the
58 disk itself?
59
60 Dale
61
62 :-) :-)

Replies

Subject Author
Re: [gentoo-user] {OT} Preparing a laptop for sale Joshua Murphy <poisonbl@×××××.com>