Raspberry Pi Zero [|w] でrpi-cloneが動かないとの噂があります。
ホントか確かめてみました。
動作デバイス確認
# dmesg|grep Zero
[ 0.000000] OF: fdt:Machine model: Raspberry Pi Zero W Rev 1.1
clone作成
# rpi-clone sda
Booted disk: mmcblk0 15.5GB Destination disk: sda 2.0GB
---------------------------------------------------------------------------
Part Size FS Label Part Size FS Label
1 /boot 43.5MB fat32 -- 1 2.0GB fat32 --
2 root 15.4GB ext4 --
---------------------------------------------------------------------------
== Initialize: IMAGE mmcblk0 partition table to sda - FS types mismatch ==
1 /boot (21.5MB used) : IMAGE to sda1 FSCK
2 root (1.6GB used) : RESIZE(2.0GB) MKFS SYNC to sda2
---------------------------------------------------------------------------
Run setup script : no
Verbose mode : no
-----------------------:
** WARNING ** : All destination disk sda data will be overwritten!
: The partition structure will be imaged from mmcblk0.
-----------------------:
Initialize and clone to the destination disk sda? (yes/no): y
Optional destination ext type file system label (16 chars max):
Initializing
Imaging past the start of /boot partition 2.
=> dd if=/dev/mmcblk0 of=/dev/sda bs=1M count=50 ...
Resizing last partition to end of disk ...
Resize success.
Changing destination Disk ID ...
Delaying so partprobe can update /dev entries ...
=> fsck -p /dev/sda1 ...
=> mkfs -t ext4 /dev/sda2 ...
Syncing file systems (can take a long time)
Syncing mounted partitions:
Mounting /dev/sda2 on /mnt/clone
=> rsync // /mnt/clone with-root-excludes ...
Mounting /dev/sda1 on /mnt/clone/boot
=> rsync /boot/ /mnt/clone/boot ...
Editing /mnt/clone/boot/cmdline.txt PARTUUID to use 3bc6e740
Editing /mnt/clone/etc/fstab PARTUUID to use 3bc6e740
===============================
Done with clone to /dev/sda
Start - 08:24:22 End - 08:32:28 Elapsed Time - 8:06
Cloned partitions are mounted on /mnt/clone for inspection or customizing.
Hit Enter when ready to unmount the /dev/sda partitions ...
unmounting /mnt/clone/boot
unmounting /mnt/clone
旨く行きました。
0 件のコメント:
コメントを投稿