OES PLUS 飞牛根目录安装至 sata 固态硬盘
1、在 60 G的固态硬盘建立 sda1 分区作为迁移飞牛系统用
root@cat:~# fdisk /dev/sda
顺序输入 n p 1 默认回车 +18G y w (18G按需调整)
2、迁移飞牛系统盘到 sata 固态硬盘
root@cat:~# sudo dd if=/dev/mmcblk2p2 of=/dev/sda1 bs=4M status=progress
root@cat:~# sync
3、删除原飞牛系统分区 /dev/mmcblk2p2
root@cat:~# fdisk /dev/sda
顺序输入 d 2 w 注意是第2个系统分区,不要删除第1个引导分区;
4、扩容根分区大小
root@cat:~# sudo btrfs filesystem resize max /
root@cat:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-117231407, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-117231407, default 117231407): +18G
Created a new partition 1 of type 'Linux' and of size 18 GiB.
Partition #1 contains a btrfs signature.
Do you want to remove the signature? [Y]es/[N]o: y
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.