1794

ubuntu 22.04系统备份、还原

备份系统文件

/proc,是内存文件,个头很大,别备份,也不用备份。
/sys,无法备份,总报错,也不用备份。
/lost+found, 不用备份,可以直接删除,
/mnt,/media,如果里面挂载硬盘了,别备份,个头太大了,备份不了的。

压缩系统文件

tar cvpzf /tmp/system.img --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/media --exclude=/sys --exclude=/tmp /

注意:将备份文件system.img拷贝至其他电脑或U盘存储

还原系统文件

使用root账号执行命令

742

ubuntu22.04安装显卡驱动安装

进入设置->关于->系统更新->驱动程序->选择驱动->确定

890

ubuntu20.04安装显卡驱动

查看可用驱动

ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:02.0/0000:03:00.0 ==
modalias : pci:v000010DEd00002503sv0000107Dsd00002503bc03sc00i00
vendor   : NVIDIA Corporation
model    : GA106 [GeForce RTX 3060]
driver   : nvidia-driver-525 - distro non-free
driver   : nvidia-driver-525-server - distro non-free
driver   : nvidia-driver-535-open - distro non-free
driver   : nvidia-driver-535-server - distro non-free
driver   : nvidia-driver-470-server - distro non-free
driver   : nvidia-driver-535-server-open - distro non-free recommended
driver   : nvidia-driver-525-open - distro non-free
driver   : nvidia-driver-535 - distro non-free
driver   : nvidia-driver-470 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin