admin管理员组文章数量:1596876
之前喜欢用树莓派,因为硬件都一样,而且tf卡可以直接复制到别的卡,这样做好了东西分享起来方便。但是树莓派性能有限,lte基站跑不了,供电也有限,刷portapack容易出问题。所以现在找到一种做ubuntu livecd的方法,用这种方法可以把我电脑上的东西装到你的u盘里,可以直接u盘运行,也可以装到你电脑硬盘里(某些m2硬盘接口的电脑不支持)。
1.备份
参考这个文章:
https://www.linuxidc/Linux/2019-07/159276.htm
sudo add-apt-repository "deb http://ppa.launchpad/nemh/systemback/ubuntu xenial main"
sudo apt-key adv --keyserver keyserver.ubuntu --recv-keys 382003C2C8B7B4AB813E915B14E4942973C62A1B
sudo apt update
sudo apt install systemback
图形操作参考文章里的就行。
2.有时候无法直接写入u盘,可以用unetbootin
参考:https://www.kutu66//ubuntu/article_160132
sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get install unetbootin
这样就能用在u盘里使用livecd方式启动Ubuntu了
3.安装到硬盘上
参考:https://cloud.tencent/developer/article/1432135
无法自动分区,必须手动的,删除原来的分区,然后重新创建分区。
分区时候要注意,一定要有一个vfat的小分区,几百兆大小的,然后挂载到/boot/efi上。这样下面才能选安装grub2引导。
剩余空间的可以创建一个ext4分区,挂载到/下。swap分区和/home的分区不是必须的。
其他步骤参照文章里的就行。
4.复制文件
有些文件不会被复制到新装的系统里。这时候可以再用u盘启动Livecd找到那些文件。
然后找到硬盘(在livecd系统里,硬盘看着像u盘)。然后把那些文件,复制到对应位置就行。
wifi hotspot:
nm-connection-editor
headless power off:
sudo nano /etc/acpi/events/powerbtn
# /etc/acpi/events/powerbtn
# This is called when the user presses the power button and calls
# /etc/acpi/powerbtn.sh for further processing.
# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.
# We need to react on "button power.*" and "button/power.*" because
# of kernel changes.
event=button[ /]power
action=/etc/acpi/powerbtn.sh
sudo nano /etc/acpi/powerbtn.sh
#!/bin/sh
/sbin/shutdown -h now "Power button pressed"
本文标签: 备份系统systembackUbuntu
版权声明:本文标题:使用systemback备份和还原ubuntu系统 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1728273085a1151392.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论