我刚收到我的新 SSD,因为旧的死了。此 Intel 320 SSD 支持 TRIM。出于测试目的,我的经销商在其上安装了 Windows,但我想摆脱它并在其上安装 Kubuntu。
它不必是“安全擦除”,我只需要以最健康的方式清空磁盘。我相信这dd if=/dev/zero of=/dev/sda只是用零填充块,从而进行另一次写入(如果我错了,请纠正我)。
我已经看到了如何启用 TRIM的答案,但它看起来适合清除空块,而不是擦除磁盘。
hdparm似乎是执行此操作的程序,但我不确定它是清除磁盘还是清除空块。从其手册页:
Run Code Online (Sandbox Code Playgroud)--trim-sector-ranges For Solid State Drives (SSDs). EXCEPTIONALLY DANGEROUS. DO NOT USE THIS OPTION!! Tells the drive firmware to discard unneeded data sectors, destroying any data that may have been present within them. This makes those sectors available for immediate use by the firmware's garbage collection mechanism, to improve scheduling for wear-leveling of the flash media. This option expects one or …
wiki.ubuntuusers.de说如果我想在加密的 SSD 上使用 TRIM,我至少需要 cryptsetup 1.4 和 kernel 3.1。在创建分区和设置加密时,我是否需要这个,或者之后升级就足够了?