Windows 10 引导修复 & Fedora 重命名 VG

Submitted by Z on Fri, 07/10/2020 - 18:19

安装 Fedora 32 时格式化了 /boot/efi ,没有 Microsoft 目录, Windows 10 无法引导。


从 Windows 10 安装介质引导,进入命令提示符, bcdboot d:\windows

挂上旧 HDD (sdb), sda 上的 Fedora 无法启动,等待超时进入 initramfs shell,发现是两块硬盘上 VG 名称相同(都是 fedora)导致的。


  • vgrename UUID_of_VG_on_sda fedora yq
  • 重命名后启动会有新的问题:内核还是会用原来的 VG 名称。故需要如下操作:
    • 修改 /etc/default/grub 里的 GRUB_CMDLINE_LINUX
    • 修改 /boot/grub2/grubenv 里的 kernelopts
    • grub2-mkconfig 重新生成 grub.cfg
    • dracut 重新生成 initramfs
    • 修改 /etc/fstab

ibus can't switch im in chrome if not using a DM

Submitted by Z on Fri, 07/10/2020 - 18:09

In my case, this bug appears when I startx on tty without gdm running. Ibus works well on chromium based apps when I start gdm and login with it.

And this is what I've been through.

Login to i3wm cause Chrome cookies and localstorage lost

Submitted by Z on Sat, 10/20/2018 - 13:07

Every time I switch from Gnome to i3, some sites cookies and localstorage got lost, including, and Chrome got 'Sync paused'. I have to re-login to most sites I often visit, like stackoverflow, github, google,, etc.

But not all, some sites still auto login, like this blog and

And actullay not always, sometimes a reboot is needed to reproduce this issue. I don't know.

I have no clue, it's confusing.

Firefox doesn't have this issue.


Submitted by Z on Thu, 08/09/2018 - 18:42


Drupal 8: Refused to apply style from ...

Submitted by Dot on Thu, 05/24/2018 - 15:00

Refused to apply style from '...' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Unchecking configuration > Performance >  Aggregate CSS and Javascript fixes the problem.