网心云OECT系统迁移到硬盘

1、输入

1
lsblk

2、输入

1
mkdir /mnt/sda1

3、输入

1
mount /dev/sda1 /mnt/sda1

4、输入

1
rsync -aAXv / /mnt/sda1 --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}

5、输入

1
sync

6、输入

1
blkid

7、复制 UUID:/dev/sda1: UUID=”80a0ab6d-593f-084c-933a-ad2dc6c69f49” BLOCK_SIZE=”4096” TYPE=”ext4” PARTLABEL=”Linux data partition” PARTUUID=”3333ee49-858d-48b5-a791-74f4dbeac8b2”
8、输入

1
blkid /dev/sda1

9、找到路径:”/mnt/sda1/etc/fstab”,把第一个 UUID 替换掉
10、找到路径:”/boot/armbianEnv.txt”,把第一个 UUID 替换掉
11、找到路径:”/boot/extlinux/extlinux.conf”,把第一个 UUID 替换掉
12、输入:

1
umount /mnt/sda1

13、输入:

1
sync

14、输入:

1
poweroff

15、输入:(debian12 和 ubuntu2022 以上的系统略过 15 和 16)

1
systemctl disable armbian-zram-config

16、输入:

1
sudo reboot

17、输入:

1
df -h

18、输入:

1
lsblk

系统下载链接:https://pan.l42.cn/d/2TB%E4%BA%91%E7%9B%98/%E7%BD%91%E5%BF%83%E4%BA%91%E5%88%B7%E6%9C%BA%E5%B7%A5%E5%85%B7/%E7%BD%91%E5%BF%83%E4%BA%91%E5%88%B7%E6%9C%BA%E5%B7%A5%E5%85%B7%E5%92%8C%E7%B3%BB%E7%BB%9F.zip

备用下载链接:https://www.ilanzou.com/s/t9Yzp3kY