On 2017-03-17, tu...@posteo.de <tu...@posteo.de> wrote:

> Finally I moved to my new root and it seems to be $HOME
> enough to wiupe the old root.
>
> The old root is on a separate partition to which I will move
> the contents of the new root after wiping the new root.
>
> May be the following question is born from to much worry, but...
>
> First I thought: Mount the old root to a certain mountpoint
> somewhere, cd into it (as root) and do a rm -rf....
>
> Then I saw symlinks directly pointing to /usr/lib... (for example)
> right into my new root...
>
> What is a recommended way to do what I am trying to do

It's not clear waht you are trying to do.  Do you want to make sure
none of the old data can be recovered from the partition, or do you
just want the partition to contain an empty filesystem?

> without
> a) deleting anything outside the old root
> b) doing it not TOOO SLOW
> c) without leaving filesystem debris somewhere (for example after
>    a dd if=/dev/zero of=/dev/sda2 count=1 bs=4096
> d) anything else I forgot to think about

If you want to make sure no data is recoverable, then run 'wipe' on
the parition.  If you just want an empty filesystem then just run
'mkfs -t<whatever>' on the partition.

-- 
Grant Edwards               grant.b.edwards        Yow! Uh-oh!!  I forgot
                                  at               to submit to COMPULSORY
                              gmail.com            URINALYSIS!


Reply via email to