User Tools

Site Tools


linux:notes:drive_wipe

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:notes:drive_wipe [2024/10/23 14:42] Sean Rhonelinux:notes:drive_wipe [2025/10/21 03:46] (current) Sean Rhone
Line 5: Line 5:
   * 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 ====== ====== Notes ======
Line 15: Line 16:
  
 ====== 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'
  
-===== Dell Fan Speed =====+  cat '/sys/firmware/acpi/platform_profile_choices'
  
-  2024/10: Seemingly broken in new-ish/6.11+ kernels but works fine from 6.6(?) in oS Leap 15.6+==== Old ==== 
 + 
 +****
  
-  sudo smbios-thermal-ctl --set-thermal-mode='performance'+  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 ======
Line 129: Line 134:
  
 <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 ======
Line 157: Line 144:
   * :!: 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 =====
/srv/www/wiki/data/attic/linux/notes/drive_wipe.1729708945.txt.gz · Last modified: by Sean Rhone