From 5eb79aec7e7e6eea9ce98478ef0b78ba4f7c6e0a Mon Sep 17 00:00:00 2001
From: musicomputer-tao <2227369817@qq.com>
Date: Sat, 22 Jun 2024 12:14:59 +0800
Subject: [PATCH 1/8] Create: Prevent driver loading in booting
Create a tip, Preventing Btrfs driver loading during system booting, or unistall Btrfs driver (in some cases) that causes (in some cases) contained system BSOD.
---
doc/Prevent driver loading in booting | 35 +++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 doc/Prevent driver loading in booting
diff --git a/doc/Prevent driver loading in booting b/doc/Prevent driver loading in booting
new file mode 100644
index 00000000..2b1f07f8
--- /dev/null
+++ b/doc/Prevent driver loading in booting
@@ -0,0 +1,35 @@
+# Preventing Btrfs driver loading during system booting, or unistall Btrfs driver (in some cases) that causes (in some cases) contained system BSOD.
+
+Maybe you want to unistall the driver without entering to the OS which installed it.
+(Such as, there are errors in a Btrfs part. This can cause Windows BSOD, show blue or green screen, very quick after desktop appears-- at least on WinBtrfs v1.9.)
+(So, it is sometimes necessary to prevent Btrfs driver loading during system booting.)
+
+You can switch to another OS, open regedit as admin. (Of course avaible in Windows PE, or is it also avaible in Linux?)
+Press win+r, then type "regedit", press Enter.
+
+Such as, load regedit of target OS to HKLM(HKEY_LOCAL_MACHINE) as name "sys", and it is in part P, as I did.
+(Switch to regedit.) Press HKLM, Alt+F, Alt+L (to load configuration unit), then switch folder directory to "P:\Windows\System32\config\", find and choose the file "system".
+(P:\Windows\System32\config\system)
+(If your target system is in other part, please change part letter to yours. Such as, P:\Windows\System32\config\ -> D:\Windows\System32\config\ .)
+(But do this before, please make sure mount the part including the target OS as read-write able. Such as you need to care about, the OS is in VHD/VHDX, is as RAMOS or ghost/shadow OS.)
+Name it as "sys".(Need, or you need to modify the text copied from below.)
+
+Now, copy five lines below to an empty text(notepad) file, and save it as an reg file(such as"Btrfs_driver-stop.reg")(ANSI encoding method is ok.).
+
+---
+Windows Registry Editor Version 5.00
+
+[HKEY_LOCAL_MACHINE\sys\ControlSet001\Services\btrfs]
+"Start"=dword:00000004
+
+---
+
+Double click the file, press Alt+Y, to continue import it to regedit.
+
+Now, you can switch to regedit, press "sys", Alt+F, Alt+U, Alt+Y, to unmount the regedit "system" of target OS.
+(Remember to unmount VHD/VHDX if it exists. )
+
+Now it is done preventing Btrfs driver loading in system booting.
+Restart the computer, switch to the target OS, then you can delete the btrfs key and remove C:\Windows\System32\drivers\btrfs.sys, unistalling the btrfs driver.
+
+(For more, there is more options for mounting. You can get in much farther down to get, #Mount options .)
From a645979ea392b90e89740829370aa540a94b67e4 Mon Sep 17 00:00:00 2001
From: musicomputer-tao <2227369817@qq.com>
Date: Sat, 22 Jun 2024 12:49:15 +0800
Subject: [PATCH 2/8] Update README.md, add a tip.
---
README.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/README.md b/README.md
index 5c5468e9..b6d9489f 100644
--- a/README.md
+++ b/README.md
@@ -124,6 +124,9 @@ HKLM\SYSTEM\CurrentControlSet\services\btrfs\Start to 4, to disable the service.
After you reboot, you can then delete the btrfs key and remove
C:\Windows\System32\drivers\btrfs.sys.
+If you want to prevent Btrfs driver loading during system booting, for example you have to because of system BSOD(Blue or green screen, very quick after desktop appears.),
+please read this tip.
+
Compilation
-----------
From b2c5c108eb20cb33e9d7ca81c85c9cd88efa81a5 Mon Sep 17 00:00:00 2001
From: musicomputer-tao <2227369817@qq.com>
Date: Sat, 22 Jun 2024 12:51:07 +0800
Subject: [PATCH 3/8] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index b6d9489f..4c32900c 100644
--- a/README.md
+++ b/README.md
@@ -125,7 +125,7 @@ After you reboot, you can then delete the btrfs key and remove
C:\Windows\System32\drivers\btrfs.sys.
If you want to prevent Btrfs driver loading during system booting, for example you have to because of system BSOD(Blue or green screen, very quick after desktop appears.),
-please read this tip.
+please read this tip.
Compilation
-----------
From 2d2f4f9fe7a4b06210f5486c6feb25bd4fa3ede6 Mon Sep 17 00:00:00 2001
From: musicomputer-tao <2227369817@qq.com>
Date: Sat, 22 Jun 2024 13:09:01 +0800
Subject: [PATCH 4/8] Update README.md
---
README.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 4c32900c..acf340e0 100644
--- a/README.md
+++ b/README.md
@@ -125,7 +125,7 @@ After you reboot, you can then delete the btrfs key and remove
C:\Windows\System32\drivers\btrfs.sys.
If you want to prevent Btrfs driver loading during system booting, for example you have to because of system BSOD(Blue or green screen, very quick after desktop appears.),
-please read this tip.
+please read this tip.
Compilation
-----------
@@ -284,6 +284,10 @@ On very old versions of Windows (XP, Server 2003?), Windows ignores Linux partit
entirely. If this is the case for you, try running `fdisk` on Linux and changing your
partition type from 83 to 7.
+* Windows system turns to show BSOD after every booting time! How to prevent Btrfs driver loading?
+
+please read this tip.
+
Changelog
---------
From 2e956fcb17a545330256a10fec5bb0e2432ed05a Mon Sep 17 00:00:00 2001
From: musicomputer-tao <2227369817@qq.com>
Date: Sat, 22 Jun 2024 13:10:11 +0800
Subject: [PATCH 5/8] Update README.md
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index acf340e0..4d7f5d61 100644
--- a/README.md
+++ b/README.md
@@ -124,7 +124,8 @@ HKLM\SYSTEM\CurrentControlSet\services\btrfs\Start to 4, to disable the service.
After you reboot, you can then delete the btrfs key and remove
C:\Windows\System32\drivers\btrfs.sys.
-If you want to prevent Btrfs driver loading during system booting, for example you have to because of system BSOD(Blue or green screen, very quick after desktop appears.),
+If you want to prevent Btrfs driver loading during system booting,
+for example you have to because of system BSOD(Blue or green screen, very quick after desktop appears.),
please read this tip.
Compilation
From 6b884c94f3bb4ced4c7487c9f58e4fb3060b60c1 Mon Sep 17 00:00:00 2001
From: musicomputer-tao <2227369817@qq.com>
Date: Sat, 22 Jun 2024 13:12:18 +0800
Subject: [PATCH 6/8] Update Prevent driver loading in booting
---
doc/Prevent driver loading in booting | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/Prevent driver loading in booting b/doc/Prevent driver loading in booting
index 2b1f07f8..de866c84 100644
--- a/doc/Prevent driver loading in booting
+++ b/doc/Prevent driver loading in booting
@@ -32,4 +32,4 @@ Now, you can switch to regedit, press "sys", Alt+F, Alt+U, Alt+Y, to unmount the
Now it is done preventing Btrfs driver loading in system booting.
Restart the computer, switch to the target OS, then you can delete the btrfs key and remove C:\Windows\System32\drivers\btrfs.sys, unistalling the btrfs driver.
-(For more, there is more options for mounting. You can get in much farther down to get, #Mount options .)
+(For more, there is more options for mounting. You can get in much farther down to get, Mount options .)
From 7ddda57468d2f2001814852908c548eb37d25032 Mon Sep 17 00:00:00 2001
From: musicomputer-tao <2227369817@qq.com>
Date: Sat, 22 Jun 2024 13:14:58 +0800
Subject: [PATCH 8/8] Update Prevent driver loading in booting
---
doc/Prevent driver loading in booting | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/doc/Prevent driver loading in booting b/doc/Prevent driver loading in booting
index 91168209..e2583371 100644
--- a/doc/Prevent driver loading in booting
+++ b/doc/Prevent driver loading in booting
@@ -32,4 +32,5 @@ Now, you can switch to regedit, press "sys", Alt+F, Alt+U, Alt+Y, to unmount the
Now it is done preventing Btrfs driver loading in system booting.
Restart the computer, switch to the target OS, then you can delete the btrfs key and remove C:\Windows\System32\drivers\btrfs.sys, unistalling the btrfs driver.
-(For more, there is more options for mounting. You can get in much farther down to get, Mount options .)
+(For more, there is more options for mounting. You can get in much farther down to get, Mount options .)
+