WD Community

MyCloudGen2+debian+SOMEWOOD

MyCloudGen2版本刷纯净debian+SAMBA+迅雷+百度盘同+BT下载



准备工作
一个大于1G的U盘
本帖隐藏的内容

下载启动文件http://oppqoop7f.bkt.clouddn.com/boot.zip
下载恢复文件包http://oppqoop7f.bkt.clouddn.com/root.tar.gz

把U盘格式化成FAT32格式

做完U盘,差MCGEN2的USB口,插拔电源重启,通过路由器的DHCP获取MC新的IP地址使用puTTy链接MC
注意使用Telnet 协议

登录后复制下面的代码恢复就可以了!

=============================

1.分区[如果是更换新的硬盘从这里操作,不是换硬盘的从第二步开始]
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/sda3

2.恢复somewood+debian纯净版[执行下面的命令]
echo ‘y’|mkfs.ext4 /dev/sda3
mkdir -p /mnt/usb /mnt/root
mount /dev/sda3 /mnt/root
mount /dev/sdb1 /mnt/usb
tar zxvf /mnt/usb/root.tar.gz -C /mnt
cd /
umount /mnt/root /mnt/usb
sync

恢复完成后插拔电源重启MC,第一次启动需要插拔电源2次才可以启动系统!

3.恢复原厂固件
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
reboot -f
这时候WEB页面刷入固件即可,注意IP会变,通过路由器DHCP分配查询新IP地址

3.默认用户密码
ssh 默认用户名root 密码mycloud
WEB页面登陆用户名 somewood 密码pass

4.图文展示
5.其他说明
在纯净版debian的基础上安装了以下程序
php5 php5-cgi php5-gd lighttpd curl screen sudo samba
vsftpd ntfs-3g smartmontools hdparm ntpdate
libcurl3-gnutls python-pycurl libc-ares2 cifs-utils smbclient
libminiupnpc-dev libnatpmp-dev libevent-2.0-5

迅雷客户端请下载迅雷SOME版
其他版本不支持mcgen2

Google Translation:

Ready to work
A U disk greater than 1G
Hide the contents of this post
Download the startup file http://oppqoop7f.bkt.clouddn.com/boot.zip
Download recovery package http://oppqoop7f.bkt.clouddn.com/root.tar.gz

Format the U disk into FAT32 format

Done U disk, poor MCGEN2 the USB port, plug the power to restart, through the router’s DHCP access to the new IP address using the puTTy link MC
Note the use of the Telnet protocol

After login, copy the following code to restore it!

  1. partition [if it is to replace the new hard drive from here to operate, not for the hard disk from the second step]
    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 / sda3

  1. restore somewood + debian pure version [execute the following command]
    Echo ‘y’ | mkfs.ext4 / dev / sda3
    Mkdir -p / mnt / usb / mnt / root
    Mount / dev / sda3 / mnt / root
    Mount / dev / sdb1 / mnt / usb
    Tar zxvf /mnt/usb/root.tar.gz -C / mnt
    Cd /
    Umount / mnt / root / mnt / usb
    Sync
    ================================================== ==
    After the completion of recovery power to restart MC, the first boot need to plug the power supply 2 times to start the system!

  2. Restore the original firmware
    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
    Reboot -f
    This time WEB page brush into the firmware can be, pay attention to IP will change, through the router DHCP allocation query new IP address

  3. Default user password
    Ssh default user name root password mycloud
    WEB page login user name somewood password pass

  4. Graphic display

  5. Other instructions
    In the pure version of debian based on the installation of the following procedures
    Php5-cgi php5-gd lighttpd curl screen sudo samba
    Vsftpd ntfs-3g smartmontools hdparm ntpdate
    Libcurl3-gnutls python-pycurl libc-iss2 cifs-utils smbclient
    Libminiupnpc-dev libnatpmp-dev libevent-2.0-5

Thunder client please download Thunder SOME version
Other versions do not support mcgen2

1 Like

I can see some dedicated developers are making vast changes to the WD My Cloud OS.

An interesting set of screen shots and instructions but your purpose in posting this is not clear.

Is this something you have created OR is it something you have found and are sharing with the community.

For many of us the first question is " does it have an option to display english menus etc?"
What is SOMEWOOD?
Also, what is a U disk?

Can you point us english speakers to further information describing the benefits and/or limitiations of installing this system?

Will it be required to redo this installation after each reboot (as most other Gen2 Firmware fixes seem to require)?

If you have created this,

  • do you plan to support it here inside the WD community?
  • do you have an external website for this project?
  • Is it available on GitHub or other similar repository site?
  • with alternate language abilities?

Again, this looks really intriguing, and I’m hoping you can answer “yes” (with some details) to most of questions.

Thanks for posting this

nnnn_mm

  1. I am My Cloud users, the use of WD’s software is very uncomfortable, especially in China! So I wrote a WEB OS control interface! ,

2.SOMEWOOD is my independent creation, not open source, nor open source!

  1. This is a debian system ARM version, combined with SOMEWOOD WEB OS can operate DEBIAN system! Not limited to MyCloud, any system can be installed debian can use this WEB interface!

  2. This is a separate debian system, restart the various functions are in!

  3. Optimized FTP SAMBA settings, add APP to use, which is more convenient to use in China! Maybe some software is not suitable for use around the world!

  4. provide the basis of the English version, please select the language in the settings, APP part of the English version!

  5. I am poor in English, the above content translated by Google translation!

Was this accomplished by using a modified initrd, or did you also compile a custom kernel? I have been wondering about custom kernels on the MyCloud for some time now, but have not gotten a really good answer on if the device does signature checking or not. (I think it would be beneficial to compile the kernel with some USB network drivers as loadable modules, and include them in the initrd, as well as include btrfs and pals.)

I stink at designing web interfaces though. That’s fine, I would be perfectly fine administering the device exclusively over ssh.

I have several questions.

  1. Is this a pure debian system? If so, can I update and install package from the official debian repository?
  2. usb3.0 port on the backside of MyCloudGen2 is working? I want to attach USB3.0 external HDD.
  3. If I don’t want to use SOMEWOOD WEB OS, is it possible to remove it?

There are many unclear cmds listed like above.

Do you mean

mkdir -p /mnt/usb /mnt/root

Or do you mean

mkdir -p /mnt/usb/mnt/root (I don’t think so).

There are many other lines that require similar clarification.

Note that when you edit your post, there is a tool bar at the top of the edit box. Use the </> tool on selected text to format as code/data/error messages.

Thanks for posting this, it is very interesting and as I have an unused MyCloud, I will give your system a test drive, if I can feel confident I can restore to normal with a factory reset. (Is that possible?)


I am poor in English, the above content translated by Google translation!

Please don’t worry about this. Google translate is helping quite a bit!

Support for Western Digital Hard Drives | Western Digital

Still Need Help?

Reach out to Support for more assistance.

Sign in to Your Support Account

Get up-to-date information about your products.

Western Digital Business Portal

Unlock benefits and tools for your business such as enterprise support, pricing and rebate tools, marketing, loyalty, rewards, and more.