Linux Troubleshooting

Linux can be used as main desktop computer because I have found a harder OS called Unix.

Raspbian on Pi

When executing some linux module command like:

1
lsmod: /usr/local/lib/libcrypto.so.1.1: version `OPENSSL_1_1_0' not found (required by lsmod)

It means no user previlige, you should add sudo.

grub修复

一日手残,进入BIOS后恢复了出厂设置,导致重启后找不到系统引导,进不了安装的Arch Linux操作系统了。于是刷了系统安装U盘,进入终端修复grub。以下修复命令:
arch-chroot shell:

1
2
3
4
5
grub-mkconfig -o /boot/grub/grub.cfg
efibootmgr -b 0000 -B
grub-install --target=x86_64-efi --efi-directory=/boot/efi --boot-directory=/boot/grub
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB

grub.cfg是在启动分区中的

grub shell:

1
2
3
> bcfg boot dump -V 查看efi启动项
> bcfs boot add 3 FS1:\EFI\grub\grubx64.efi "Grub 2" 挂载EFI分区
> exit

在界面进入Reboot into Firmware Interface

Setting up open-source STM32 developing environment on ARM Eclipse Driver development for Raspberry Pi

Comments

You forgot to set the shortname for Disqus. Please set it in _config.yml.
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×