Если у вас есть диск с самошифрованием -(, большинство современных жестких дисков и практически все твердотельные накопители также являются дисками с самошифрованием )и на диске нет ничего, что стоило бы несколько 10 000 долл. США в виде расширенных услуг по восстановлению данных,вы можете использовать безопасную очистку диска:
Whole disk erasure is very fast, and remarkably simple for a SED. Simply passing a cryptographic disk erasure (or crypto erase) command (after providing the correct authentication credentials) will have the drive self-generate a new random encryption key (DEK) internally. This will permanently discard the old key, thus rendering the encrypted data irrevocably un-decryptable.
Процесс подробно описан здесь . Как правило, вам просто нужно запустить две команды:
hdparm --user-master u --security-set-pass your_password /dev/X
hdparm --user-master u --security-erase your_password /dev/X
Конечно, восстановление данных все еще возможно, поскольку производители жестких дисков обычно отслеживают, какой ключ использовался на каком жестком диске, а это означает, что они также смогут его восстановить. Они, как правило, делают это только для людей, которые приходят с несколькими 10000 долларов или постановлением суда, поэтому, если наиболее конфиденциальной частью информации на этом жестком диске является ваш пароль на Facebook, никто не будет беспокоиться.
Если у вас действительно есть конфиденциальная информация на этом диске, я бы последовал совету @jpmc26 и просто оставил диск себе. Это на 100% безопасно с почти нулевой вероятностью что-то испортить в процессе.
Предполагая, что он был сгенерирован с помощью инструментов GNU в Linux, верхний и нижний колонтитулы указываются вместе как аргументы макроса .TH
. Изman 7 groff_man
:
.TH title section
[footer-middle] [footer-outside] [header-middle] Define the
title of the man page as title and the section as section.
See man(1) for details on the section numbers and suffixes
applicable to your system. title and section are positioned
together at the left and right in the header line (with
section in parentheses immediately appended to title).
footer-middle is centered in the footer line. footer-outside
is positioned at the left in the footer line (or at the left
on even pages and at the right on odd pages if double-sided
printing is active). header-middle is centered in the header
line. If section is a simple integer between 1 and 9
(inclusive), or is exactly “3p”, there is no need to specify
header-middle; the macro package will supply text for it.
А остальная часть конвенции дана вman 7 man-pages
:
Title line
The first command in a man page should be a TH command:
.TH title section date source manual
where:
title The title of the man page, written in all caps
(e.g., MAN-PAGES).
section The section number in which the man page should be
placed (e.g., 7).
date The date of the last nontrivial change that was made
to the man page. (Within the man-pages project, the
necessary updates to these timestamps are handled
automatically by scripts, so there is no need to
manually update them as part of a patch.) Dates
should be written in the form YYYY-MM-DD.
source The source of the command, function, or system call.
For those few man-pages pages in Sections 1 and 8,
probably you just want to write GNU.
For system calls, just write Linux. (An earlier
practice was to write the version number of the
kernel from which the manual page was being
written/checked. However, this was never done
consistently, and so was probably worse than
including no version number. Henceforth, avoid
including a version number.)
For library calls that are part of glibc or one of
the other common GNU libraries, just use GNU C
Library, GNU, or an empty string.
For Section 4 pages, use Linux.
In cases of doubt, just write Linux, or GNU.
manual The title of the manual (e.g., for Section 2 and 3
pages in the man-pages package, use Linux
Programmer's Manual).