#给root改名 sudo passwd root #切换到root用户 su #执行python python #判断cuda安装成功与否 (base) root@BlackGame:~# python Python 3.9.12 (main, Apr 5 2022, 06:56:58) [GCC 7.5.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> import torch as t >>> t.cuda.is_available() True
diskpart
新建和隐藏分区符
1 2 3 4 5 6
list disk sel disk 0 list vol sel vol 2 assign letter=Z remove Z
wls子系统
1
wsl --set-default-version 2
grub界面恢复到win11启动
1 2 3 4 5
insmod part_gpt insmod chain set root=(hd0,gpt1) chainloader /EFI/Microsoft/Boot/bootmgfw.efi boot
其他
1 2 3 4 5
wsl --set-default-version 2 wsl --shutdown Ubuntu18.04 sudo service ssh start cd /mnt/c/Users/22154/Downloads cd ~/Downloads