WDMycloud救砖 #
所需文件下载地址:
- My_Cloud_GLCR_2.31.204.bin: http://ct.imagemagick.top/f/18418398-858576108-9af5da
- usbrecovery.tar.gz: http://ct.imagemagick.top/f/18418398-858574884-213c7e
然后将一张U盘格式化为 FAT 32 格式,将下载好的 usbrecovery.tar.gz 解压缩到U盘根目录,确认盘根存在解压缩后的 boot 目录,目录内包含四个文件。
接着将磁盘插到设备唯一的USB接口上,给系统上电,启动设备即可。重启后进入恢复模式,通过telnet来链接设备进行操作。
/ # fdisk -l
Found valid GPT with protective MBR; using GPT
Disk /dev/sda: 234441648 sectors, 3881M
Logical sector size: 512
Disk identifier (GUID): 072077e3-0b20-4f5a-92bc-0aa7579d96cc
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 234441614
Number Start (sector) End (sector) Size Code Name
1 30720 1032191 489M 0700 primary
2 1032192 5031935 1953M 0700 primary
3 5031936 9031679 1953M 0700 primary
4 9031680 234440703 107G 0700 Linux data partition
Disk /dev/sdb: 31.6 GB, 31675383808 bytes
255 heads, 63 sectors/track, 3850 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 3851 30931968 c Win95 FAT32 (LBA)
/dev/sda
为wdmycloud内置硬盘,/dev/sdb1
为插入的U盘。
初始化磁盘分区
mkfs.ext4 /dev/sda
建立新分区 所有提示都输入yes或y
parted /dev/sda
mklabel gpt
mkpart primary 1049kB 2149MB
mkpart primary 8591MB -1MB
mkpart primary 7517MB 8591MB
mkpart primary 2149MB 3222MB
mkpart primary 3222MB 4296MB
mkpart primary 4296MB 6443MB
mkpart primary 6443MB 7517MB
q
格式化分区
mkswap /dev/sda1
mkfs.ext4 /dev/sda2
mkfs.ext4 /dev/sda3
安装恢复镜像
mkdir -p /mnt/usb /mnt/root
mount /dev/sda3 /mnt/root
mount /dev/sdb1 /mnt/usb
cp -r /mnt/usb/boot /mnt/root/
cd /mnt/root/boot
rm uImage uRamdisk
mv uImage-wdrecovery uImage
mv uRamdisk-wdrecovery uRamdisk
cd /
umount /mnt/root /mnt/usb
sync
以上操作完成后,查看分区信息如下:
/ # fdisk -l
Disk /dev/sdb: 31.6 GB, 31675383808 bytes
255 heads, 63 sectors/track, 3850 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 3851 30931968 c Win95 FAT32 (LBA)
Found valid GPT with protective MBR; using GPT
Disk /dev/sda: 234441648 sectors, 3881M
Logical sector size: 512
Disk identifier (GUID): 554736af-f4fc-4d30-9bcc-c0f9816d94fe
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 234441614
Number Start (sector) End (sector) Size Code Name
1 2048 4196351 2048M 0700 primary
2 16779296 234439695 103G 0700 primary
3 14682112 16779263 1024M 0700 primary
4 4196352 6293503 1024M 0700 primary
5 6293504 8390655 1024M 0700 primary
6 8390656 12584959 2048M 0700 primary
7 12584960 14682111 1024M 0700 primary
将 U盘拔下来,终端执行最后一个命令reboot -f
重启,接着耐心等待设备重启完毕。
重启完成后,通过浏览器浏览ip进入Web 界面刷入固件。如下页面,点击选择文件,选择下载的My_Cloud_GLCR_2.31.204.bin
文件,等待恢复完成重启。
重启完成后,通过ip进入mycloud,进行初始化设置即可。