Page cover image

无损切换 SATA 模式

AHCI to RAID
  • linux
  • windows
Date
Oct 23, 2022
Description
AHCI to RAID
Public
Public
Published
Tags
linux
windows
URL
 
 
 
有一天重装 bios 的时候 , 发现在 RAID ON 的模式下, Linux 可以正常启动了
 
于是乎打算将 SATA 模式切换回官方默认的 RAID ON
 
据说在 Windows 下有读写优化

Linux

 
Arch Wiki 找到了这样一段话
 
Alternatively, the kernel can be configured to load the vmd kernel module before looking for the boot disk. Add vmd to the MODULES array in your mkinitcpio.conf and regenerate the initramfs
 
 
于是将 VMD 加入了内核预加载模块当中, 准备启动时发现无法进入 GRUB
 
貌似是因为 GRUB 不支持 RAID ON
 
 
切换 sytemd-boot 之后正常启动了
 
又发现 lts 的内核无法读取 / 分区
 
….好吧 暂也不知道是哪个版本开始支持的
 
继续用 Linux Zen 内核吧

Windows

 
为了避免重装, 咱在切换之前得打开 CMD 输入
 
bcdedit /set {current} safeboot minimal
在下次重启进入 安全模式
 
此时再进入 bios 切换模式
 
成功启动后, 再关闭安全模式
 
bcdedit /deletevalue {current} safeboot
 

最后

 
至于 AHCIRAID 在这台机器上的具体使用区别
 
以及 Linux 内核啥时候支持这个模式的
 
等有空再研究了
 
至于为什么切换回来, 还是怪我这该死的强迫症