Add blog posts
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
BIN
content/posts/windows-and-linux-on-ntfs/archinstall.png
(Stored with Git LFS)
Normal file
BIN
content/posts/windows-and-linux-on-ntfs/archinstall.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
content/posts/windows-and-linux-on-ntfs/fdisk.png
(Stored with Git LFS)
Normal file
BIN
content/posts/windows-and-linux-on-ntfs/fdisk.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
content/posts/windows-and-linux-on-ntfs/hero.jpg
(Stored with Git LFS)
Normal file
BIN
content/posts/windows-and-linux-on-ntfs/hero.jpg
(Stored with Git LFS)
Normal file
Binary file not shown.
96
content/posts/windows-and-linux-on-ntfs/index.md
Normal file
96
content/posts/windows-and-linux-on-ntfs/index.md
Normal file
@@ -0,0 +1,96 @@
|
||||
+++
|
||||
title = "Installing Windows and Linux on the Same Partition"
|
||||
date = 2022-01-09T15:06:00Z
|
||||
draft = false
|
||||
summary = "Have you ever wanted to make God cry? If that's the case then this is the perfect post for you!"
|
||||
tags = ["Experiment", "Guide", "Linux", "Windows"]
|
||||
|
||||
aliases = ['/windows-and-linux-on-ntfs']
|
||||
|
||||
[hero]
|
||||
src = "hero.jpg"
|
||||
caption = 'Photo by <a href="https://unsplash.com/@abject">benjamin lehman</a> via <a href="https://unsplash.com">Unsplash</a>'
|
||||
+++
|
||||
|
||||
Have you ever wanted to make God cry? Perhaps you want to take revenge on one of your Computer Scientist friends? Maybe you just hate your laptop and want to see it suffer? If that's the case then this is the perfect post for you!
|
||||
|
||||
With the help of Paragon's new [NTFS3 driver](https://www.kernel.org/doc/html/latest/filesystems/ntfs3.html), it is now possible to install Linux on an NTFS partition. So, why not take it to the next level and install Windows on that partition as well?
|
||||
|
||||
> [!warning] Disclaimer
|
||||
> I shouldn't have to say this, but DO NOT do this on a bare-metal system. There are several known issues, such as the system bricking itself after a few reboots. I am only doing this as an experiment.
|
||||
|
||||
## Requirements
|
||||
|
||||
- [Arch Linux Installation ISO](https://archlinux.org/download/)
|
||||
- [Microsoft Windows Installation ISO](https://www.microsoft.com/software-download/windows10ISO)
|
||||
- Optional: If you are insane enough to try this on a bare-metal system, you will also need a USB stick with the above ISOs burned onto it
|
||||
- A lot of patience
|
||||
|
||||
## Steps
|
||||
|
||||
1. Boot using the Arch Install ISO.
|
||||
|
||||
2. Format the target drive. In my case, that's `/dev/sda`. It needs to have a GPT partition table and 2 partitions in total:
|
||||
- 1GB EFI Filesystem
|
||||
- The rest of the drive (leave it unallocated for now)
|
||||
|
||||

|
||||
|
||||
3. Shut down your system and boot using the Windows ISO.
|
||||
|
||||
4. Make sure to select "Custom: Install Windows only (advanced)".
|
||||
|
||||

|
||||
|
||||
5. Select the Unallocated Space we created earlier and finish the installation.
|
||||
|
||||

|
||||
|
||||
6. Once the installation is complete, shut the system down and boot into the Arch ISO once again.
|
||||
|
||||
7. Mount the Windows partition as `/mnt/archinstall`.
|
||||
|
||||
8. Run the `archinstall` installation script.
|
||||
|
||||

|
||||
|
||||
9. When asked about which drives to configure, make sure to not select anything.
|
||||
|
||||
10. I also decided to use GRUB as my bootloader since I am more familiar with it, but you can use whatever you like.
|
||||
|
||||

|
||||
|
||||
11. The install script will fail during GRUB's installation, so we must continue manually.
|
||||
|
||||
12. Change root into the installation folder and install GRUB.
|
||||
|
||||

|
||||
|
||||
13. Add the windows bootloader as a custom GRUB entry by editing `/etc/grub.d/40_custom`. Make sure to replace `{UUID}` with your disk's UUID. You can get it by running `blkid /dev/sda1`.
|
||||
|
||||
```
|
||||
menuentry 'Windows 10' {
|
||||
search --fs-uuid --no-floppy --set=root {UUID}
|
||||
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
|
||||
}
|
||||
```
|
||||
|
||||
14. Add `rootfstype=ntfs3` to your kernel parameters. You can do that by editing `/etc/default/grub` and appending it to `GRUB_CMDLINE_LINUX_DEFAULT`.
|
||||
|
||||
15. Run `grub-mkconfig -o /boot/grub/grub.cfg` to regenerate the GRUB configuration.
|
||||
|
||||
16. Shut down your system. If everything went well, you should be able to boot into both Windows and Linux from the same partition.
|
||||
|
||||
17. I recommend backing up your drive at this point since you can boot about 5 times before your system nukes itself.
|
||||
|
||||
18. Done!
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## Conclusion
|
||||
|
||||
If you have successfully followed this post... why? Go see a therapist.
|
||||
|
||||
Original idea by [u/fabi_sh](https://www.reddit.com/user/fabi_sh/) on [Reddit](https://www.reddit.com/r/archlinux/comments/qwsftq/arch_linux_on_ntfs3/).
|
BIN
content/posts/windows-and-linux-on-ntfs/linux-chroot.png
(Stored with Git LFS)
Normal file
BIN
content/posts/windows-and-linux-on-ntfs/linux-chroot.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
content/posts/windows-and-linux-on-ntfs/linux-drive.png
(Stored with Git LFS)
Normal file
BIN
content/posts/windows-and-linux-on-ntfs/linux-drive.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
content/posts/windows-and-linux-on-ntfs/linux.png
(Stored with Git LFS)
Normal file
BIN
content/posts/windows-and-linux-on-ntfs/linux.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
content/posts/windows-and-linux-on-ntfs/windows-drive.png
(Stored with Git LFS)
Normal file
BIN
content/posts/windows-and-linux-on-ntfs/windows-drive.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
content/posts/windows-and-linux-on-ntfs/windows-installation-type.png
(Stored with Git LFS)
Normal file
BIN
content/posts/windows-and-linux-on-ntfs/windows-installation-type.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
content/posts/windows-and-linux-on-ntfs/windows.png
(Stored with Git LFS)
Normal file
BIN
content/posts/windows-and-linux-on-ntfs/windows.png
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user