カーネル再構築時の警告の意味を教えてください(W: Couldn't identify type of root file system for fsck hook)
解決したいこと
WSL2にUSB通信の機能を追加するために、
https://contentsviewer.work/Master/WSL/Tips/WSL2-USB/WSL2-USB#SectionID_2
を参考に作業を進めています。
「W: Couldn't identify type of root file system for fsck hook」の意味を教えてください。無視して進んでも大丈夫でしょうか?
発生している問題・エラー
DEPMOD 5.10.74.3-microsoft-standard-WSL2+
sh ./arch/x86/boot/install.sh 5.10.74.3-microsoft-standard-WSL2+
arch/x86/boot/bzImage \
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.10.74.3-microsoft-standard-WSL2+ /boot/vmlinuz-5.10.74.3-microsoft-standard-WSL2+
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.10.74.3-microsoft-standard-WSL2+ /boot/vmlinuz-5.10.74.3-microsoft-standard-WSL2+
update-initramfs: Generating /boot/initrd.img-5.10.74.3-microsoft-standard-WSL2+
W: Couldn't identify type of root file system for fsck hook
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.10.74.3-microsoft-standard-WSL2+ /boot/vmlinuz-5.10.74.3-microsoft-standard-WSL2+
run-parts: executing /etc/kernel/postinst.d/update-notifier 5.10.74.3-microsoft-standard-WSL2+ /boot/vmlinuz-5.10.74.3-microsoft-standard-WSL2+
run-parts: executing /etc/kernel/postinst.d/xx-update-initrd-links 5.10.74.3-microsoft-standard-WSL2+ /boot/vmlinuz-5.10.74.3-microsoft-standard-WSL2+
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.10.74.3-microsoft-standard-WSL2+
I: /boot/initrd.img.old is now a symlink to initrd.img-5.10.74.3-microsoft-standard-WSL2+
I: /boot/vmlinuz is now a symlink to vmlinuz-5.10.74.3-microsoft-standard-WSL2+
I: /boot/initrd.img is now a symlink to initrd.img-5.10.74.3-microsoft-standard-WSL2+
該当するソースコード
参考にした記事から変えた部分
# カーネル名
5.10.60.1-microsoft-standard-WSL2
# 各自のカーネルバージョンに合わせて, チェックアウトする.
やらない
# 現在のカーネル設定をコピーする
sudo cp Microsoft/config-wsl .config
# menuconfigを実行し, 追加したいカーネルモジュール(kernel modules) を選択する.(以下を追加)
-> Kernel hacking
-> Compile-time checks and compiler options
-> Compile the kernel with debug info [ ]
# カーネルとモジュールをビルド
sudo make -j 3 && sudo make modules_install -j 3 && sudo make install -j 3
自分で試したこと
そのまま進めたところ、カーネルモジュールの起動はできました。
an@DESKTOP-HGVMRCT:~$ lsmod
Module Size Used by
vhci_hcd 32768 0
usbip_core 16384 1 vhci_hcd
ftdi_sio 49152 0
cdc_acm 32768 0
usb_storage 61440 0
usbserial 40960 1 ftdi_sio
rndis_host 16384 0
cdc_ether 16384 1 rndis_host
usbnet 36864 2 rndis_host,cdc_ether
mii 16384 1 usbnet
usbcore 212992 8
ftdi_sio,usbserial,usbnet,cdc_acm,usb_storage,rndis_host,cdc_ether,vhci_hcd
usb_common 16384 2 usbcore,vhci_hcd
参考にした記事と比べたところ、以下の二つがないのと usbserial
の Size
が違います。以下の二つは何のモジュールでしょうか。
hid_generic 16384 0
hid 102400 1 hid_generic
また、vhuit64
が実行できません。
an@DESKTOP-HGVMRCT:~$ wget https://www.virtualhere.com/sites/default/files/usbclient/vhuit64
--2021-11-19 13:15:07--
https://www.virtualhere.com/sites/default/files/usbclient/vhuit64
Resolving www.virtualhere.com (www.virtualhere.com)... 147.182.241.161
Connecting to www.virtualhere.com
(www.virtualhere.com)|147.182.241.161|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3509136 (3.3M) [application/octet-stream]
Saving to: ‘vhuit64’
vhuit64 100%
[============================================================================>] 3.35M 484KB/s in 14s
2021-11-19 13:15:23 (238 KB/s) - ‘vhuit64’ saved [3509136/3509136]
an@DESKTOP-HGVMRCT:~$ chmod 777 vhuit64
an@DESKTOP-HGVMRCT:~$ sudo ./vhuit64
./vhuit64: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
Sudo apt install libgtk2.0-0
をしてから再チャレンジ
an@DESKTOP-HGVMRCT:~$ sudo ./vhuit64
13:43:11: Error: Unable to initialize GTK+, is DISPLAY set properly?
an@DESKTOP-HGVMRCT:~$ xeyes
Error: Can't open display: :0.0
見覚えのあるエラーがでました。VcXsrv
が動いていないみたいです。
環境変数の設定をしてみます。
an@DESKTOP-HGVMRCT:~$ sudo apt-get install libx11-dev
an@DESKTOP-HGVMRCT:~$ xeyes -display :0.0
Error: Can't open display: :0.0
an@DESKTOP-HGVMRCT:~$ echo export DISPLAY=:0.0 >> ~/.profile
an@DESKTOP-HGVMRCT:~$ source ~/.profile
an@DESKTOP-HGVMRCT:~$ echo $DISPLAY
:0.0
an@DESKTOP-HGVMRCT:~$ xeyes
Error: Can't open display: :0.0
動かないです……
長くなったので、ここで区切って次の質問に移動します。
https://qiita.com/anne_daigaku/questions/84905585acc3a71621b8