# Disable Unsupported Nvme

{% hint style="info" %}
Trước tiên chúng ta hãy cùng nhau tìm hiểu rằng tại sao cần phải disable unsupported nvme. Do nếu bạn đang có một ổ cứng nvme không support thì bạn không thể nào boot được&#x20;

> Ngay cả khi bạn không cài trên ổ cứng đó và cài trên một ổ cứng khác
>
> > Nhưng chỉ cần ổ cứng đó trong máy thì bạn đã không thể nào boot được rồi
> > {% endhint %}

## Disable trong bios

B1: Boot vào bios&#x20;

> Để xem hot key vào bios của các bạn có thể xem [tại đây](https://www.dienmayxanh.com/kinh-nghiem-hay/cach-vao-menu-boot-bios-tren-cac-dong-laptop-asus-1221041#:~:text=nh%E1%BA%A5n%20ph%C3%ADm%20F11-,Menu%20BIOS%2C%20BOOT%20Laptop%20Lenovo%2C%20Thinkpad%3A,BOOT%20MENU%20nh%E1%BA%A5n%20ph%C3%ADm%20F12)

B2: Các bạn tìm đến option `Storge Controller`&#x20;

B3: Chuyển từ `AHCI` mode sang `RST` mode

> Nếu các bạn không thể chỉnh option này trong bios hoặc option này không có thì có thể thao khảo 2 cách dưới đây:
>
> * Mod bios theo hướng dẫn [tại đây](/general/cach-mod-bios.md)
>
> * Hoặc các bạn có thể tham khảo các cách ở dưới
>
> > Lưu ý cách này chỉ để test vì khi sử dụng các này toàn bộ ổ cứng trong máy sẽ bị disable

## Disable bằng `boot-arg`

B1: Mount `EFI` theo hướng dẫn [tại đây](https://basic.heavietnam.com)

B2: Mở `config.plist` bằng [propertree](https://github.com/corpnewt/ProperTree)&#x20;

B3: Add arg `nvme=-1` vào `Root --> NVMRAM --> 7C436110-AB2A-4BBB-A880-FE41995C9F82 --> boot-arg`

> Hoặc add vào `Root --> Boot --> Arguments`
>
> Tuy nhiên cách này chỉ để test
>
> Vì khi tắt bằng cách này tất cả SSD nvme trên máy sẽ bị Disable
>
> > Chỉ SSD NVME bị disable thôi còn SSD SATA thì vẫn hoạt động bình thường

## Disable bằng `SSDT-NVME-DISABLE`

### Xác định `ACPI Path`&#x20;

B1: Chuột phải vào logo `windows` chọn `Device Manager`&#x20;

<figure><img src="/files/SllUjcxt4dgxSpaXOWZZ" alt=""><figcaption></figcaption></figure>

B2: Các bạn chuột phải vào `Storage Controllers --> Standard NVM Express Controller` chọn `Properties`

<figure><img src="/files/MFbL90HsgLQR1cfAeRuF" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/U1xjqu8b3qK3a7ykBitI" alt=""><figcaption></figcaption></figure>

B3: Vào tab `Details --> BIOS device name --> Value`

<figure><img src="/files/EJXGZCYxjjfAQlBLl9jS" alt=""><figcaption></figcaption></figure>

> Nếu như máy các bạn không có `BIOS device name`  thì có thể tìm đến `location path--> Value` rồi từ đó convert thành `ACPI path` theo hướng dẫn [tại đây](https://install.heavietnam.com/general/cach-xac-dinh-phan-cung)
>
> ![](/files/UVsxtyF6ZnfXNA4AlqJ3)

B4: Lưu lại hoặc nhớ `ACPI Path` vừa thu được&#x20;

> Như ở đây mình có là `_SB.PCI0.GPP1.DEV0`

### Tiến hành sửa SSDT

B1: Tải `SSDT-NVME-DISABLE.aml` [tại đây](https://github.com/king-dragon/opencore-tweak/blob/main/SSDT-Disable_NVMe.dsl)

> Link backup [tại đây](https://www.mediafire.com/file/yims1ekwr9euk15/SSDT-Disable_NVMe.dsl/file)

B2: Tải [Maciasl](https://github.com/acidanthera/MaciASL/releases)&#x20;

> Hoặc [Xiasl](https://github.com/ic005k/Xiasl/releases)

B3: Các bạn tiến hành thay thế mục `scope` và các `External`

<figure><img src="/files/x41WCB8oZsEn9dpGlBIG" alt=""><figcaption><p>Before</p></figcaption></figure>

<figure><img src="/files/u9aQETAoYXkwN5dEtXPk" alt=""><figcaption><p>After</p></figcaption></figure>

B4: Các bạn ấn `Complie`

B5: Convert thành `.aml` theo hướng dẫn [tại đây](/acpi-advance/patch-dsdt-phan-1.md)

B6: Thêm SSDT vừa build vào `EFI --> OC --> ACPI` và snapshot

> Hoặc thêm vào `EFI --> Clover --> ACPI --> Patched`

B7: Save lại và reboot

{% hint style="info" %}
Lưu ý rằng: Nếu các bạn đã làm theo nhưng vẫn không được thì các bạn tiến hành check như sau:

* Dump DSDT theo hướng dẫn [tại đây](/acpi-advance/patch-dsdt-phan-1.md)
* Mở DSDT bằng Maciasl hoặc Xiasl&#x20;
* Tiến hành search `(_DSM`
* Nếu như tìm thấy thì DSDT các bạn có method `_DSM`&#x20;
  * Như vậy nên SSDT không thể ghi đề được&#x20;
  * Ta cần phải rename `_DSM to XDSM`&#x20;
* Tiến hành add patch rename [sau](https://www.mediafire.com/file/2swjfw7g7ueyx0r/Change+_DSM+to+XDSM.plist/file) vào`Config.plist`
  * Backup link [tại đây](https://drive.heavietnam.com/d/s/zGcfQYiYNpENz0FLaZdpvYshGgSrDn13/GxvoiPRcGDYYuZUEhiYeVDK57hMdM8H_-ObtA5Y2Xggs)
  * `Root --> ACPI --> Patch`&#x20;
    {% endhint %}

## Disable bằng Device-Properties

### Xác định `Device-Path`&#x20;

B1: Chuột phải vào logo `windows` chọn `Device Manager`&#x20;

<figure><img src="/files/SllUjcxt4dgxSpaXOWZZ" alt=""><figcaption></figcaption></figure>

B2: Các bạn chuột phải vào `Storage Controllers --> Standard NVM Express Controller` chọn `Properties`

<figure><img src="/files/MFbL90HsgLQR1cfAeRuF" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/U1xjqu8b3qK3a7ykBitI" alt=""><figcaption></figcaption></figure>

B3: vào tab `Details --> Location path --> Value`

<figure><img src="/files/LFC1gNnESthN8Hku6bPL" alt=""><figcaption></figcaption></figure>

> Xem chi tiết các covert theo hướng dẫn [tại đây](https://install.heavietnam.com/general/cach-xac-dinh-phan-cung)
>
> Như ở đây của mình là `PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)`

### Tiến hành sửa Config.plist

B1: Mở file config.plist bằng [propertree](https://github.com/corpnewt/ProperTree)

B2: Add `Pci root` đã xác định ở trên theo đường dẫn `Root --> Device Properties`

<table><thead><tr><th width="379.3333333333333">PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)</th><th>Dictionary</th><th>2 key/value pair</th></tr></thead><tbody><tr><td><code>class-code</code></td><td>Data</td><td><code>FFFFFFFF</code></td></tr><tr><td><code>vendor-id</code></td><td>Data</td><td><code>12340000</code></td></tr></tbody></table>

B3: Save lại và reboot

{% hint style="info" %}
Lưu ý: Sau khi reboot ở các cách chúng tôi khuyến khích bạn rest NVRAM
{% endhint %}

## Lưu ý

{% hint style="info" %}
Đối với những máy có 2 SSD NVME thì các bạn sẽ có 2 `Standard NVM Express Controller`

&#x20;![](/files/2d9lLsJ5M23l3ToWzBU5)

> Chúng ta sẽ có cách phân biệt như sau:

* vào tab `Details --> Children --> Value`
  * `Hoaặc Details --> Bus relations --> Value`
* Lúc này nó sẽ hiện tên ổ cứng của bạn
  * Xem bảng bên dưới
    {% endhint %}

<table><thead><tr><th width="366">Children </th><th width="376.3333333333333">Bus relations</th></tr></thead><tbody><tr><td><img src="/files/3EyRPxCwKOQxSwiwoWxf" alt=""></td><td><img src="/files/Z9R2u9uOKLVln8UWlGRW" alt="" data-size="original"></td></tr></tbody></table>

> Source tham khảo: <https://elitemacx86.com/threads/how-to-disable-unsupported-nvme-drives-on-macos-clover-opencore.1202/> | <https://www.reddit.com/r/hackintosh/comments/m3f9zn/how_do_i_disable_an_nvme_pcie_slot_dell_7501/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://advance.heavietnam.com/acpi-advance/disable-unsupported-nvme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
