Here is the log of one of my sessions, using a disk that had previously been cloned, but had all the partitions removed. Some of the warnings are because parted found the remnants of these partitions (it’s clever like that),
root@sysresccd /root % fdisk -l
Disk /dev/loop0: 469.9 MiB, 492683264 bytes, 962272 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x264023b8
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1255423 1253376 612M 7 HPFS/NTFS/exFAT
/dev/sda2 1255424 976771071 975515648 465.2G 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: A92F95D5-AB94-4858-8863-0836F6BC47B7
root@sysresccd /root % chmod 777 clone_wd
root@sysresccd /root % ./clone_wd b
./clone_wd: line 1: #!/bin/bash: No such file or directory
This will create a WD MyCloud clone HDD on /dev/sdb
IT WILL DELETE ALL EXISTING DATA
Are you sure (y/n)? y
Creating clone on /dev/sdb
the drive should start with no partitions
/dev/sdb contains the current partitions:
Model: ATA WDC WD20EFRX-68E (scsi)
Disk /dev/sdb: 1907729MiB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
Creating new partitions
Warning: The existing disk label on /dev/sdb will be destroyed and all data on
this disk will be lost. Do you want to continue?
Yes/No? y
Information: You may need to update /etc/fstab.
Information: You may need to update /etc/fstab.
Information: You may need to update /etc/fstab.
Information: You may need to update /etc/fstab.
Information: You may need to update /etc/fstab.
Information: You may need to update /etc/fstab.
Information: You may need to update /etc/fstab.
Information: You may need to update /etc/fstab.
Information: You may need to update /etc/fstab.
Cconfiguring partitions 1-4
Information: You may need to update /etc/fstab.
Information: You may need to update /etc/fstab.
Creating RAID array on clone
mdadm: error opening /dev/md: Is a directory
mdadm: stopped /dev/md0
mdadm: /dev/sdb1 appears to contain an ext2fs file system
size=1999808K mtime=Tue Aug 7 12:03:24 2018
mdadm: /dev/sdb1 appears to be part of a raid array:
level=raid1 devices=2 ctime=Tue Aug 7 11:57:29 2018
mdadm: /dev/sdb2 appears to contain an ext2fs file system
size=1999808K mtime=Tue Aug 7 12:03:24 2018
mdadm: /dev/sdb2 appears to be part of a raid array:
level=raid1 devices=2 ctime=Tue Aug 7 11:57:29 2018
Continue creating array? y
mdadm: /dev/md0 is already in use.
Setting up swap and data partitions
mkswap: /dev/sdb3: warning: wiping old swap signature.
Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
no label, UUID=d48f7b7d-eec5-4f4a-9803-d9a80fb3eedf
mke2fs 1.43.6 (29-Aug-2017)
/dev/sdb4 contains a ext4 file system
last mounted on /mnt on Tue Aug 7 11:49:16 2018
Proceed anyway? (y,N) y
Creating filesystem with 487142656 4k blocks and 121790464 inodes
Filesystem UUID: 947ad9ea-e3df-4217-9fed-197aeed93200
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done
Partition creation completed
partitions are created as follows:
Model: ATA WDC WD20EFRX-68E (scsi)
Disk /dev/sdb: 1907729MiB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
3 16.0MiB 528MiB 512MiB linux-swap(v1) primary
1 528MiB 2576MiB 2048MiB ext3 primary raid
2 2576MiB 4624MiB 2048MiB ext3 primary raid
5 4624MiB 4724MiB 100MiB primary
6 4724MiB 4824MiB 100MiB primary
7 4824MiB 4826MiB 2.00MiB primary
8 4826MiB 4828MiB 2.00MiB primary
4 4828MiB 1907729MiB 1902901MiB ext4 primary
Mounting data partition for working area
/mnt created
Please copy original_v04.01.02-417.tar.gz to /mnt
press 'y' when you have done this y
Extracting images
./
./kernel.img
./rootfs.img
./rootfs.md5
./config.img
Copying images to partitions 5-8
196608+0 records in
196608+0 records out
100663296 bytes (101 MB, 96 MiB) copied, 7.9155 s, 12.7 MB/s
196608+0 records in
196608+0 records out
100663296 bytes (101 MB, 96 MiB) copied, 6.935 s, 14.5 MB/s
2048+0 records in
2048+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.286197 s, 3.7 MB/s
2048+0 records in
2048+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0569286 s, 18.4 MB/s
Starting RAID array
mdadm: stopped /dev/md0
mdadm: /dev/md0 has been started with 2 drives.
Copying rootfs
this could take a while...
3999616+0 records in
3999616+0 records out
2047803392 bytes (2.0 GB, 1.9 GiB) copied, 169.645 s, 12.1 MB/s
Preparing for first boot
umount: /mnt: target is busy.
Finished!
now connect HDD to MyCloud PCB
connect ethernet and apply power
should get white light, followed by blue light after 5-10 minutes
do a 40-second reset when the LED turns blue
wait for blue LED, then access Dashboard
upgrade to whatever firmware you want
do another 40-second reset when LED turns blue
configure device as required
root@sysresccd /root %