Gentoo Archives: gentoo-user

From: Nils Freydank <nils.freydank@××××××.de>
To: Gentoo <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Wiping the old root without killing the new root
Date: Fri, 17 Mar 2017 16:45:53
Message-Id: 2394398.LGvGtfVfJA@pygoscelis
In Reply to: [gentoo-user] Wiping the old root without killing the new root by tuxic@posteo.de
1 Am Freitag, 17. März 2017, 17:24:27 CET schrieb tuxic@××××××.de:
2 > Hi,
3 >
4 > Finally I moved to my new root and it seems to be $HOME
5 > enough to wiupe the old root.
6
7 > The old root is on a separate partition to which I will move
8 > the contents of the new root after wiping the new root.
9 => I would just unmount the partition and wipe it on FS level (i.e. running
10 mkfs with some kind of --force parameter). Another way would running find to
11 find and remove symlinks, but putting that one together and removing files
12 after could consume more time than mkfs ;)
13
14 > May be the following question is born from to much worry, but...
15 >
16 > First I thought: Mount the old root to a certain mountpoint
17 > somewhere, cd into it (as root) and do a rm -rf....
18 BTW, avoid "rm -rf /" (yes, I know, there are DAU checks now) on UEFI systems,
19 because they tend to mount essential stuff rw and don’t like deletion of
20 stuff.
21
22 > [...]
23
24 Greetings,
25 Nils
26
27 --
28 GPG fingerprint: '00EF D31F 1B60 D5DB ADB8 31C1 C0EC E696 0E54 475B'
29 Nils Freydank

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies