TEXT   65

Howto replace or restore original firmware

Guest on 26th April 2022 03:28:15 PM

  1. Source: https://drive.google.com/open?id=1h8OXgR8zlmMuYh0X7NsVrF2-Hn1rl5xj
  2. Mirror: https://fox-exe.ru/WDMyCloud/
  3.  
  4. =======================================================================================
  5.  
  6. Howto replace or restore original firmware:
  7.  
  8. * You can use any of *nix system. I use Debian (Ubuntu similar).
  9. * All command runing from root user. Or use Sudo.
  10. * First thing after boot in liveCD - install software: apt-get update && apt-get install mdadm parted
  11.  
  12. !! For install new HDD - go from p.1. If you repare exist HDD - go to p.8-2
  13.  
  14. 1. Use fdisk -l (or parted -l) for see what name have you WD's HDD.
  15. * For me - its /dev/sdb. Replace it to your hdd name!
  16. 2. Run parted utility:
  17. parted /dev/sdb
  18.  
  19. 3. Type "print" for see what partitions exist on disk
  20. 4. Remove all: Type "remove 1" (where 1 - number of partition)
  21. 5. Crete new table:
  22. mklabel gpt
  23. mkpart primary 528M 2576M
  24. mkpart primary 2576M 4624M
  25. mkpart primary 16M 528M
  26. mkpart primary 4828M 100%
  27. mkpart primary 4624M 4724M
  28. mkpart primary 4724M 4824M
  29. mkpart primary 4824M 4826M
  30. mkpart primary 4826M 4828M
  31. set 1 raid on
  32. set 2 raid on
  33.  
  34. 6. Ok, type "quit"
  35.  
  36. 7. Format data partition:
  37. mkfs -t ext4 /dev/sdb4
  38. mkswap /dev/sdb3
  39.  
  40. 8. Stop automatically loaded md raid (If need) and create new, normal (You can get errors "Not found". Its normal):
  41. mdadm --stop /dev/md*
  42. mdadm -A /dev/md0 /dev/sdb1 /dev/sdb2
  43. mdadm --create /dev/md0 --level=1 --metadata=0.9 --raid-devices=2 /dev/sdb1 /dev/sdb2
  44.         # Type "watch cat /proc/mdstat" and wait 100%. Then - [ctrl] + [c] for close.
  45.  
  46. 9. Use data partition as download folder:
  47. mount -t ext4 /dev/sdb4 /mnt
  48. cd /mnt
  49.  
  50. 10. Download one of arhive's to /mnt folder:
  51. v3.04.01-230: https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen1/Backups/original_v03.04.01-230.tar.gz
  52. v4.01.02-417: https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen1/Backups/original_v04.01.02-417.tar.gz
  53.  
  54. 11. Extract by console:
  55. tar xvfz original_v3.04.01-230.tar.gz
  56.  
  57. 12. Ok. Upload backup images to WD's hdd:
  58. dd if=kernel.img of=/dev/sdb5
  59. dd if=kernel.img of=/dev/sdb6
  60. dd if=config.img of=/dev/sdb7
  61. dd if=config.img of=/dev/sdb8
  62. dd if=rootfs.img of=/dev/md0
  63.  
  64. 13. Tell device to Fresh install (Fix for "0 MB usage" in webgui)
  65. mkdir /mnt/hdd
  66. mount /dev/md0 /mnt/hdd
  67. touch /mnt/hdd/etc/.fresh_install
  68. umount /mnt/hdd
  69.  
  70. 14. Shutdown PC. (Or use "Logout" in menu)
  71. shutdown -p -H 0
  72.  
  73. 15. Connect HDD to WD's plate and turn on WDMyCloud. Wait ~5-10 min.

Raw Paste


Login or Register to edit or fork this paste. It's free.