UNIX Publication - Debian: http://unix.pub/docs/debian/ - APT用法: http://unix.pub/docs/debian/apt_usage/ - dpkg用法: http://unix.pub/docs/debian/dpkg_usage/ - Debian发行版: http://unix.pub/docs/debian/DebianReleases/ - Debian基本命令备忘录: http://unix.pub/docs/debian/Debian-Basic-Command-Memo/ - Debian软件包: http://unix.pub/docs/debian/debian_packages/ - Distribution: http://unix.pub/docs/distributions/ - Waydog Linux: http://unix.pub/docs/distributions/Waydog/ - Lilidog Linux: http://unix.pub/docs/distributions/Lilidog/ - WDMyCloud vs Debian: http://unix.pub/docs/WDMyCloud/ - WD MyCloud Home安装运行Debian 11: http://unix.pub/docs/WDMyCloud/Running-Debian-11-on-WD-MyCloud-Home/ - WD MyCloud安装Debian Jessie: http://unix.pub/docs/WDMyCloud/Install-Debian-Jessie-on-WD-MyCloud-Gen1/ - WDMycloud救砖: http://unix.pub/docs/WDMyCloud/WDMycloud_Recovery/ - WDMycloud安装Debian: http://unix.pub/docs/WDMyCloud/WDMycloud_Crack_install_debian/ # WDMycloud救砖 所需文件下载地址: - My_Cloud_GLCR_2.31.204.bin: http://ct.optipng.cn/f/18418398-858576108-9af5da - usbrecovery.tar.gz: http://ct.optipng.cn/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`文件,等待恢复完成重启。 ![](/imgs/webrecovery.png) ![](/imgs/webrecovery_reboot.png) 重启完成后,通过ip进入mycloud,进行初始化设置即可。