| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| linux:notes:drive_wipe [2024/10/20 12:07] – Sean Rhone | linux:notes:drive_wipe [2025/10/21 03:46] (current) – Sean Rhone |
|---|
| * Useful to perform before OS installations | * Useful to perform before OS installations |
| |
| * Ideally use [[linux;distros;opensuse_tumbleweed_gnome#gnome_live|openSUSE Tumbleweed's latest GNOME Live image]] on USB due to it having up-to-date tools, a GUI, and USB data persistence ((can copy a command into Terminal and run it on one machine, boot the drive on another machine, and use Terminal history to re-run the command; it's quite convenient :p)) | * https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-XFCE-Live-x86_64-Current.iso |
| * TODO: Leap GNOME: https://download.opensuse.org/download/distribution/openSUSE-stable/live/openSUSE-Leap-15.6-GNOME-Live-x86_64-Media.iso | |
| | https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-XFCE-Live-x86_64-Current.iso |
| | |
| | ====== Notes ====== |
| | |
| | * [[linux:notes:ufs_freebsd_mount|FreeBSD UFS mount]] (from Linux LiveUSB) |
| | * [[linux:notes:disk_gpt_format|Disk Format (GPT)]] |
| | * [[linux:notes:rsync_nas|Drive-to-drive rsync]] |
| |
| ====== Tools ====== | ====== Tools ====== |
| | |
| | **** |
| |
| <code>sudo zypper install 'nvme-cli' -y && sync</code> | <code>sudo zypper install 'nvme-cli' -y && sync</code> |
| |
| <code>sudo dnf install nvme-cli hdparm -y && sync</code> | ===== Dell Fan Speed ===== |
| |
| <code>sudo apt install 'nvme-cli' -y && sync</code> | cat '/sys/firmware/acpi/platform_profile' && echo 'performance' | sudo tee '/sys/firmware/acpi/platform_profile' > '/dev/null' && cat '/sys/firmware/acpi/platform_profile' |
| | |
| | cat '/sys/firmware/acpi/platform_profile_choices' |
| | |
| | ==== Old ==== |
| | |
| | **** |
| | |
| | sudo zypper install -y 'python3-smbios-utils' && sudo smbios-thermal-ctl --set-thermal-mode='performance' && sudo zypper remove --clean-deps 'python3-smbios-utils' |
| |
| ====== Suspend/Wake ====== | ====== Suspend/Wake ====== |
| |
| <code>sudo dd if='/dev/zero' of='/dev/sdb' count='1024'</code> | <code>sudo dd if='/dev/zero' of='/dev/sdb' count='1024'</code> |
| |
| ==== sdc ==== | |
| |
| **** | |
| |
| <code>sudo blkdiscard --force --verbose '/dev/sdc' && sudo hdparm --user-master u --security-set-pass 'x' '/dev/sdc' && sudo hdparm --user-master u --security-erase 'x' '/dev/sdc' && sudo hdparm --user-master u --security-set-pass 'x' '/dev/sdc' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sdc' && sudo rm -f '/sys/firmware/efi/efivars/'* || sync</code> | |
| |
| === Individual === | |
| |
| <code>sudo blkdiscard --force --verbose '/dev/sdc'</code> | |
| |
| <code>sudo hdparm --user-master u --security-set-pass 'x' '/dev/sdc' && sudo hdparm --user-master u --security-erase 'x' '/dev/sdc'</code> | |
| |
| <code>sudo hdparm --user-master u --security-set-pass 'x' '/dev/sdc' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sdc'</code> | |
| |
| <code>sudo wipefs --all --force '/dev/sdc'</code> | |
| |
| <code>sudo dd if='/dev/zero' of='/dev/sdc' count='1024'</code> | |
| |
| ====== Sector Size Notes ====== | ====== Sector Size Notes ====== |
| * :!: Steam and Oculus were **known** to be broken with 4K sector size on Windows 11 | * :!: Steam and Oculus were **known** to be broken with 4K sector size on Windows 11 |
| * Steam and Oculus worked fine with 4K sector size on Windows 10 LTSC 2021 and Linux | * Steam and Oculus worked fine with 4K sector size on Windows 10 LTSC 2021 and Linux |
| * iTunes possibly fails with 4K sectors due to Bonjour and dnssd.dll ([[https://www.techpowerup.com/forums/threads/setting-4k-sector-size-on-nvme-ssds-does-performance-actually-change.289757/page-3#post-4981622|thread]]) | * iTunes possibly fails with 4K sectors due to Bonjour and dnssd.dll ([[https://www.techpowerup.com/forums/threads/setting-4k-sector-size-on-nvme-ssds-does-performance-actually-change.289757/page-3#post-4981622|post]]) |
| |
| ===== Sector Size ===== | ===== Sector Size ===== |