The story of reinstalling Win10Home, ArchLinux, bcache, etc. (I'm currently reinstalling, so I'll add it as needed)

If anything, it is a personal memorandum.

But it's a relatively special environment, so is it worth leaving on the net? I thought it was an article.

environment

CPU: Ryzen5 2600 GPU0: RX570 8GB GPU1: GT645 1GB RAM: DDR4-2400 8GBx2 SSD: 240GB HDD: 1TB+320GB M.B.: Asrock B450 Pro4 PCI-E expansion card: 1000Mbit Ethernet card included with Win10 DSP version Display0: FHD(1920x1080) 21inch Display1: FHC (1920x1080) 11inch (liquid tab) Display2: WQXGA(2560x1600) 10inch Display3: SXGA(1280x1024) 17inch Display4: SXGA(1280x1024) 17inch Display5: 1024x600 7inch (multi-touch compatible)

OS0: Win10Home latest version OS1: Arch Linux latest version

Reason for reinstallation

――I wanted to use btrfs. --Because the driver area became messy in the process of increasing GPU1. --Because I couldn't stand the slowness of Win10 installed on the HDD (once booted, it works reasonably well with the power of ReadyBoost, but the slow booting is fatal for a dual boot machine)

Partition configuration


$ lsblk
NAME            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda               8:0    0 223.6G  0 disk 
├─sda1            8:1    0   512M  0 part /boot
├─sda2            8:2    0    16M  0 part 
├─sda3            8:3    0   128G  0 part 
├─sda4            8:4    0    32G  0 part 
│ └─bcache0     254:0    0   900G  0 disk 
│   └─bcache0p1 254:1    0   900G  0 part /
├─sda5            8:5    0    32G  0 part [SWAP]
└─sda6            8:6    0  31.1G  0 part 
sdb               8:16   0 931.5G  0 disk 
├─sdb1            8:17   0   900G  0 part 
│ └─bcache0     254:0    0   900G  0 disk 
│   └─bcache0p1 254:1    0   900G  0 part /
└─sdb2            8:18   0  31.5G  0 part 
sdc               8:32   0 298.1G  0 disk 
├─sdc1            8:33   0   256G  0 part 
└─sdc2            8:34   0  42.1G  0 part 

Rough procedure

  1. ArchLinux installation Cut only the EFI partition of sda with USB. (If you let Windows create it, the capacity will be reduced, so cut only here in advance)
  2. Install Windows 10. (Partitions are manually cut using Windows tools, otherwise MSR may be installed on a different disk.)
  3. Turn on WSL2, Virtual Machine Platform, by enabling Win10 features.
  4. Enable Win10 insider preview.
  5. Check Windows Update and apply all.
  6. Install google-chrome on Win10. Change default browser.
  7. Disable fast startup.
  8. Disable sleep and set screen power off to 3 minutes.
  9. Download, install and log in to Office365.
  10. Change screen layout and scaling.
  11. Change half-width and full-width switching to Ctrl-Space
  12. Set the cursor to the maximum speed from the mouse settings and TrackPoint keyboard settings.
  13. If the update is not finished, log in to twitter until it is finished.
  14. Check if the drivers around the GPU are installed, if not, install manually from Device Manager
  15. Reboot after Windows Update
  16. Check and update Windows Update again.
  17. When the update is complete, restart again and repeat until there are no more updates.
  18. Arch Linux installation Boot USB. Temporary OS installation on / dev / sdb2 (don't forget to install nano, change password, and install systemd-boot.)
  19. Start Arch Linux on / dev / sdb2. Install bcache or btrfs.
  20. Install main Arch Linux. (Remember to root the btrfs subvolume. Remember to add bcache to mkinitcpio. Don't forget to install nano. Don't forget to add the systemd-boot item. Don't forget to change the password. .)
  21. Start the main Arch Linux. Various installations.

--amdvpu and nvidia are not compatible (for example, nvidia screen cannot be displayed ...), so use amdgpu + nouveau when using them together. When using nvidia, pass either one to qemu. (This setting is TODO) --Added the following script to / etc / systemd / system /

/etc/systemd/system/vm-network-tap.service



[Unit]
Description=Virtual Machine Network boot script
After=systemd-networkd.service

[Service]
ExecStart=vde_switch -t tap0 -m 666

[Install]
WantedBy=multi-user.target

/etc/systemd/system/start-ksm.service



[Unit]
Description=Start KSM
After=systemd-modules-load.service

[Service]
ExecStart=bash -c 'echo 1 > /sys/kernel/mm/ksm/run'
Type=oneshot
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

/etc/systemd/system/rx570-ecomode.service



[Unit]
Description=Set TDP 75W for RX570
After=systemd-modules-load.service

[Service]
ExecStart=bash -c 'echo 75000000 > /sys/devices/pci0000\:00/0000\:00\:03.1/0000\:26\:00.0/hwmon/hwmon1/power1_cap'
Type=oneshot
RemainAfterExit=yes
Restart=onfailure

[Install]
WantedBy=multi-user.target

/etc/systemd/system/display-setup.service



[Unit]
Description=Display Replacing Script
After=lightdm.service

[Service]
ExecStart=sudo -u lightdm bash -c 'DISPLAY=:0 xrandr --output DisplayPort-0 --off --output DisplayPort-1 --mode 1920x1080 --pos 1024x0 --rotate normal --output DisplayPort-2 --mode 1280x1024 --pos 4864x1656 --rotate normal --output HDMI-A-0 --mode 2560x1600 --pos 1024x1080 --rotate normal --output DVI-D-0 --mode 1280x1024 --pos 3584x1656 --rotate normal --output DVI-I-1-1 --off --output HDMI-1-2 --mode 1024x600 --pos 0x3160 --rotate normal --output DP-1-4 --mode 1920x1080 --pos 1024x2680 --rotate normal'
Restart=onfailure
Type=oneshot
RemainAfterExit=yes

[Install]
WantedBy=graphical.target

--Enable these four, restart and check if you are throwing an error.

Coming soon... What to do after this

--qemu GPU pass-through settings (for using CUDA) --Settings around the pen tab (Multi-display takes time and effort to set coordinates) --Settings around the touch screen (same as above, but the coordinates are on the screen instead of the pen, so setting is easy) --awesomewm settings

Recommended Posts

The story of reinstalling Win10Home, ArchLinux, bcache, etc. (I'm currently reinstalling, so I'll add it as needed)