Unbricking without opening

Hi all, NEWS:I have setup a github for my experiments.So you can find all my information here:https://github.com/utessel/mycloud  Most important:This posting is about how to unbrick a MyCloud without opening it.At least: Some important steps to do this... Disclaimer:1.) It is not a complete walkthrough how to do this.2.) I cannot (and will not) explain or help how to unbrick your device.3.) I hope someone else will clean this up, improve it and create something even more useful out of it:I just wrote down the steps I did, (ok, with a little bit of cleanup already)If there is a wiki or something like that for this: feel free to use my information.4.) I will not provide any binaries I created for myself. My background:I bought a broken MyCloud (in fact to have a second one, just to be able try this) and started to "unbrick" that, and I was trying it the hard way: Not connecting the disk to anything else.So in fact my MyCloud was open: This allowed me to use a serial console to watch what is happening. But that is finally not required at all. The final result works like this:1. you need a working DHCP server that sends a TFTP Server address: I use dnsmasq for this. (don't ask me how to configure that!)2. Setup a tftp folder with two files "startup.sh" and "uImage" (more about these files below)3. Execute (my) rawping command to send the magic ICMP packet (you find it in my other posting about the serial interface)4. Power your MyCloud device (I expect you already have a working LAN connection).5. Wait a bit and you can connect via telnet to your device and you can start to repair it. So how does this work:After power on the device starts the first and the second barebox loader.The second barebox sees the "magic packet" and now tries to download startup.sh from the tftp server:Mine looks like this: startup.shecho Will boot via tftp
timeout -c 2
addpart /dev/mem 8M@0x3008000(uImage)
tftp uImage /dev/mem.uImage
bootargs="console=ttyS0,115200n8, "
bootargs="$bootargs mac_addr=$eth0.ethaddr panic=3"
bootm /dev/mem.uImage  This will now load the kernel (=uImage) via tftp and start it.The kernel boots and will use its "initramfs" that I compiled into it:My "initramfs" contains just the network modules, a busybox installation and a few scripts: These scripts will start the network, make a dhcp request (again) and finally start telnetd:Now I can connect via telnet to my box. The whole procedure does not need anything on the disk at all.I expect it would work even without having a disk, but I didn't try that. I now can mount partitions, communicate via network, whatever busybox allows.So it should be possible to download new images to the disk etc.Or simply repair the broken script you have changed? You now might ask "how can i create that uImage file?" For that I used two things:1) The kernel from the GPL package2) and the busybox sources (I used busybox-1.22.1 I already had from an openwrt installation). For busybox I used "defconfig", and changed (via menuconfig) to build it "static" (that is important). For the kernel I changed (via menuconfig) to use initramfs and added the path to my initramfs.cpio.gz.(in fact I tried a lot of other changes, but finally was able to remove all of them for this...) Here is my script I used to compile busybox and the kernel and generating the scripts in the initramfs:Disclaimer:I know I don't have all steps repeatable with this script. As I tried this several times, I know I copied the modules from the _bin folder (created during kernel compile) to the _install folder of busybox once.Maybe I forgot other steps I did. But I hope someone else can fill this gap. export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-
cd busybox-1.22.1
make -j8 install
cd _install
mkdir {bin,dev,sbin,etc,proc,sys,lib}
mkdir lib/modules
mkdir dev/pts
mkdir -p usr/share/udhcpc
echo "#!/bin/sh" >init
echo "mount -t proc proc /proc" >>init
echo "mount -t sysfs sysfs /sys" >>init
echo "mount -t devpts none /dev/pts" >>init
echo "echo /sbin/mdev >/proc/sys/kernel/hotplug" >>init
echo "mdev -s" >>init
echo "insmod /lib/modules/3.2.26/pfe.ko lro_mode=1 tx_qos=1 alloc_on_init=1" >>init
echo "ifconfig eth0 up" >>init
echo "udhcpc -b" >>init
echo "telnetd -l/bin/sh" >>init
echo "exec /sbin/init" >>init
chmod +x init
echo "T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100" >etc/inittab
echo "ttyS0::askfirst:-/bin/sh" >etc/inittab
echo "#!/bin/sh" >usr/share/udhcpc/default.script
echo "case \"\$1\" in" >>usr/share/udhcpc/default.script
echo " renew|bound)" >>usr/share/udhcpc/default.script
echo " /sbin/ifconfig \$interface \$ip \$BROADCAST \$NETMASK" >>usr/share/udhcpc/default.script
echo " ;;" >>usr/share/udhcpc/default.script
echo "esac" >>usr/share/udhcpc/default.script
echo "exit 0" >>usr/share/udhcpc/default.script
chmod +x usr/share/udhcpc/default.script
sudo mknod dev/null c 1 3
sudo mknod dev/tty c 5 0
sudo mknod dev/console c 5 1find . | cpio -H newc -o > ../../initramfs.cpio
cd ../..
cat initramfs.cpio | gzip > initramfs.cpio.gz
cp initramfs.cpio.gz packages/kernel_3.2/
cd packages/kernel_3.2
make uImage
cp _bld/arch/arm/boot/uImage /home/tftp/ Oh:I used the compiler I got from the ubuntu 14.04 installation (sudo apt-get install gcc-arm-linux-gnueabi),not the one wd uses. In fact I think I will now try to setup a clean debian system on my device, as I don't need all the cloud things... Ciao,   Baerle  

hi all thanks to baerle and fox_exe for detailed procedure and support  i cannot mount /dev/sda4 i get 'No such file or direcotry'  in the dmsg boot log i've got these [    9.394868] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   14.938401] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   14.944867] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   20.488788] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   20.495250] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   26.038382] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   26.044844] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   31.588296] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   31.594755] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   37.138177] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   37.144638] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   42.688068] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   42.694530] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   48.238308] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   48.244769] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   53.788145] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   53.794605] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   59.339924] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   59.346383] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   64.886828] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   64.893294] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   70.441961] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   70.448420] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)
[   75.980575] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   75.987035] ata1.00: failed to IDENTIFY (INIT_DEV_PARAMS failed, err_mask=0x80)   so i've tried to open the wdmc (according to wd support i can open it to recover data)  but when i connect the disk is not recognized  diskutil info /dev/disk1   Device Identifier:        disk1   Device Node:              /dev/disk1   Part of Whole:            disk1   Device / Media Name:      WDC WD30 EFRX-68EUZN0 Media    Volume Name:              Not applicable (no file system)    Mounted:                  Not applicable (no file system)    File System:              None    Content (IOContent):      None   OS Can Be Installed:      No   Media Type:               Generic   Protocol:                 USB   SMART Status:             Not Supported    Total Size:               0 B (0 Bytes) (exactly 0 512-Byte-Units)   Volume Free Space:        Not applicable (no file system)   Device Block Size:        512 Bytes    Read-Only Media:          No   Read-Only Volume:         Not applicable (no file system)   Ejectable:                Yes    Whole:                    Yes   Internal:                 No   OS 9 Drivers:             No   Low Level Format:         Not supported  /dev/disk1   #:                       TYPE NAME                    SIZE       IDENTIFIER   0:                                                   *0 B        disk1  i've tried also to use diskutil diskRepair but i've got this rror repairing map: POSIX reports: Invalid argument (22)  or gpt recover /dev/disk1  gpt recover: unable to open device '/dev/disk1': Operation not supported by device  do you know if i can: 1) access to my data and recover data2) alternatively initialize disk from scratch   ?  any support is appreciated  thank you!!

Similar Messages

  • In Snow Leopard, there was a quick look feature that allowed you to look at files without opening the program.  It doesn't show up in Lion on my iMac.  Any ideas?  Thanks

    In Snow Leopard, there was a quick look feature that allowed you to look at files without opening the program.  It doesn't show up in Lion on my iMac.  Any ideas?  Thanks

    While in Finder, select the file (click on its icon once) then press the Spacebar.

  • In mail how do we stop the e-mail's showing as read when you select them without opening the full e-mail

    In mail how do we stop the e-mail's showing as read when you select them without opening the full e-mail? I want to click on a mail and read this in the preview pane only without showing it as read.

    Not possible. In order to read an email in the preview pane requires opening the message. You can mark a message that you've read as unread after reading it.

  • Print HTML doument without open it from an applet

    I need to know how I can print an HTML document from an applet developed with Jbuilder 4. I'm not a very expert developer and I need a detailed information about this problem. Important is that the HTML document is printed without open it.
    I use: win 2000 pro
    J2RE 1.4.0
    thanks in advance for your help
    Mauro Losa

    Thanks for your help but my problem is that i want print the document without display it.
    I think to have find a solution using Java Print Service API (JDK 1.4) but when i run the example the system display this error refered to this instruction
    "PrintService[] pservices = PrintServiceLookup.lookupPrintServices(flavor, aset);":
    java.lang.UnsatisfiedLinkError: getDefaultPrinterName
    at sun.print.Win32PrintServiceLookup.getDefaultPrinterName(Native Method)
    at sun.print.Win32PrintServiceLookup.getDefaultPrintService(Unknown Source)
    at sun.print.Win32PrintServiceLookup.getPrintServices(Unknown Source)
    at sun.print.Win32PrintServiceLookup.getPrintServices(Unknown Source)
    at javax.print.PrintServiceLookup.getServices(Unknown Source)
    at javax.print.PrintServiceLookup.lookupPrintServices(Unknown Source)
    at untitled4.applet1.main(Applet1.java:32)

  • Print PDF from web without opening A.R.

    Hi, I'm looking for a way to print PDF documents (generated in Crystal Reports 11 on a IIS web server in PDF / ASP.NET Framework 2.0) on client's machines and printers (without opening an Acrobat Reader, but with print options dialog).
    Is it possible to make this issue using Adobe Acrobat SDK?

    For security reasons (eg. so that malicious web servers can't just start your printer a printing...), it is IMPOSSIBLE for the document to NOT show...
    Any document that is on the web can be saved on the client's machine - that's the beauty (or not?) of the web and the protocols involved. If you wish to prevent misuse - be sure to use DRM.

  • Help! How to open PSE 7 without opening catalogue

    Tried to migrate from PSE 7 to PSE 9. After catalog conversion the browser seemed to open normally, however crashes in a few seconds. Called the Adobe helpdesk, they come to the conclusion that the catalogue is corrupt, however catalogue functioned normally in PSE 7. Since the catalogue has now been converted, it cannot open in PSE 7 anymore. I was happy having made a back up, but if I want to restore the back up,  PSE 7 is automatically opening the old - converted/ corrupt - catalogue and... hangs. Has anybody within Adobe thought of the possibility to open the software without, automatically, opening the catalogue. Seems particulary useful in these kind of circumstances.
    I have tried to open and at the same time helding the ALT + SHIFT+ CTRL keys but that does not work.
    First of all I d like to migrate with my old catalogue to PSE 9, but at least I would like to still be able to open my old catalogue (back up version) in PSE 7.
    Many thanks in advance
    Paul
    OS: Windows Vista

    Ken,
    The converted catalog is on its original location (hence original version is overwritten). PSE 7 crashes when opening this catalog.
    The backup of the original catalog is on an external drive. Now I want to restore the back-up catalog, my understanding is I need to do this with PSE 7. (I tried it with PSE 9 too but got an error message).
    However when I open the PSE 7 software/ organiser it starts automatically to open the converted/ corrupted catalogue and the program crashes...
    So key question is: how can I start up PSE without opening automatically a catalogue (then being able to restore the BU)
    Thanks for your help.
    Regards, Paul

  • Open report in pdf format without opening in browser.

    Hi,
    Any body know show can save my report in pdf formate in a specific folder without opening in browser. I am using 9.0.4 developer suit.
    Regards

    Hi,
    Thanks from replyl. But i want to run report from form and this is used to run report from command prompt.
    Please tell me a way that how could I able to run a report without using web.show_document and it save in a specific folder without opening in browser.
    Regards

  • How to change the initial page without open safari

    Hi everybody,
    I have problems opening my safari because of the plugin silverlight. I defined a tvair.swisscom.ch page as initial and it makes an error open it. it means that my safari doesn't work at all.
    i want to know if somebody knows how to change the initial page from safari without open safari and solve this problem.
    thx
    cheers
    nun

    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Preferences/com.apple.Safari.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Quit the application if it's running. Move the selected item to the Trash. Relaunch the application and test. Optionally, restore the file from a backup that predates the problem.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • How do I create a new profile without opening firefox?

    Firefox is not opening for me even after I uninstalled and re installed it, I have been told that often this problem can be fixed by resetting my fire fox account, and while I have been instructed on how to access my profile without opening fire fox there is nothing that will tell me how to reset my profile or create a new profile without opening fire fox. Please help, I don't want to loose my important information and I really really don't want to use chrome... it sucks...
    Thank you

    See:
    *https://developer.mozilla.org/Command_Line_Options

  • [Linux] How can I see if there are new messages without opening Thunderbird?

    Hi folks
    I'm working on Linux Fedora (20) and am wondering if there's any way to see if I have new emails without opening Thunderbird again. I usually have Thunderbird minimized and when a new email arrives, I get a desktop notification, which is great. But - if I'm away from my computer for a minute and an email arrives, I'll often not see it until the next one comes in.
    On mac, the thunderbird icon would get one of those +1 badges. Is there any way to achieve this? For example have the title of the Thunderbird window tile change from "Inbox - Mozilla Thu..." to "[2] Inbox - Moz..." - or just leave the notification until I click it away.
    Thanks for any tips.
    Cheers

    Thanks again Fabián, this add on is exactly what I need!

  • How can I delete a message without opening an adjacent one?

    Before Yosemite you could delete a message from Mail.app without opening an adjacent message by holding option and clicking the garbage can.
    However, in Yosemite, there doesn't seem to be a way to delete a message without opening (and setting the message's status to "read") an adjacent message.
    I often don't have time to read all the messages in my Inbox so I'll quickly read some important ones and I'll leave the others as "unread" to get back to later in the day. Yosemite Mail doesn't seem to support this workflow anymore…
    Anyone know a workaround; short of manually setting a messages status back to "unread"?

    Ok, I'm answering my own question.  I made up a fake user name to get into my Palm Desktop and deleted profiles.  Then I went in with real user name.  All of my calendar entries were gone, but fortunately within the last month I had HotSynced and was able to HotSync again to get it back from my handheld.  I think I need a blackberry.  This stuff happens way too often.
    Post relates to: Palm m505

  • How can I delete an e-mail without opening it?

    How can I delete an e-mail without opening it?

    You can select another email that is not important/you want to delete then hold down the command key and highlight the email you don't want to open. Then click on delete!

  • Is there any way to tell which formulas a particular cell is in, reverse look-up style? That is, is there a way to search somehow for which formulas in a sheet contain a particular cell in them without opening all of them up? If not, it would be nice

    Is there any way to tell which formulas a particular cell is in, reverse look-up style? That is, is there a way to search somehow for which formulas in a sheet contain a particular cell in them without opening all of them up? If not, it would be nice.
    I'm fixing a Numbers document that I use in business daily that's become overly complicated, but while I want to clear/delete a number of cells in it to clean it up, I'm not sure if those cells are being used as source for other formulas on the page. I don't have to open all my formulas one by one to see if that cell is in there, do I?! That'd be a huge amount of work if I wanted to eliminate say 10 cells to search each formula on the page to see if it is in there or watch all the cells when I delete that cell to see if the numbers change! There's got to be an easier way! Right click doesn't seem to be any help.
    I don't want to damage my daily tool to make it cleaner and reorganize it. Is there really no way to do a reverse look-up of which formulas a particular cell is in?! Any time I click on a formula it highlights all the CELLS in that formula. Why can't I (or can I?) do the reverse and see all the FORMULAS that contain a particular cell?
    As a Numbers document ages or gets used frequently, you can sometimes forget which cells are tied to which formulas. You just look for the results of your formulas. Would be a nice thing to be able to do. Thoughts? Work-arounds? Answers?

    Answer would be no unless application provided such feature. Numbers does not as far as I know.
    Note that even if you have complete list of formulae used in a table, identifying formulae referencing any given cell is not simple.
    E.g., cell T20 is referenced not only in
    =T20+1
    but also in
    =SUM(T)
    =SUM(20:20)
    =SUM(S19:U22)
    =OFFSET(S1,19,1,1,1)
    =INDIRECT("T"&(10*2))
    In order to identify such formula, we have to actually evaluate it to see if it references the given cell. Especially such formula as OFFSET() and INDIRECT() may not be found by static parser because their parameters can be dynamic.
    Sorry to be the bearer of bad tidings.
    H

  • How can we get the artset from a .ai file without opening it?

    Hello All,
    I have one .ai file, lets say sample.ai file. located in C drive. so the complete file path is "C:\Sample.ai".
    and lets assume the sample.ai file has one traingle shape(3 path type arts) in it.
    Now I want to get the 3 path arts (artset)  from sample.ai file without opening it in AI.
    The function protoype is like below
    AIArtSet& artSet GetArtSetFromAFile( ai::FilePath& filePath );
    Is there any API like above function in AI? or is it possible to get the art(s) from a file without opening it in AI?

    Not to my knowlege. The API only operates on active documents as far as I know.

  • How can I delete an email on my iMac without opening it - I know it contains a virus

    I have an email account on my 2013 iMac - how can I delete an email on the account without opening it - I know from the subject that it is a virus

    It does not have a virus attached and unless you open whatever (if anything) is attached or linked to the email nothing can happen.
    So you can select and delete it and nothing will happen
    Although, if you never select it nothing will happen.
    Your choice.

Maybe you are looking for

  • Stale data error: OA page opened by different users

    Hi, An OA Page which is basically use to query order details and update certain custom tables based on the order details has been developed. The first page which is a search page perfoms the search based on the "Custom Name", "Order Status" --> Bith

  • How can I sync my ipod without losing data?

    I bought my ipod around half a year ago and had it synced and everything to my Mac for school. The school took my computer for summer and i backed up the files onto my external harddrive. But i have bought songs and apps on my ipod touch which is no

  • How to do dynamic calculation on PDF Form

    Hi friends, I need to to create a invoice page using Adobe PDF dynamic Form. Business Requirement:- 1. User will select predifined product, Quantity, Rate and Amount would be calculated. Tax would be calculated from the below data. 2. I have a  tax t

  • After a recent mac update, my ichat, mail and preview applications have been disabled! How do i fix it?!

    My new laptop has been asking for an update so i went on with it.. now i cant see my ichat, mail and preview icons on my dock. I looked for it and when i tried to open it, it says it's been diabled. What happened?! How can i get it back?! HELP please

  • Is it possible to call an executable of compiled c code from within LabVIEW?

    I can compile 'genesis' (the name of the code we are planning to use) under unix: it produces an executable which can be linked to user-constructed c files which contain specific crossover and/or mutation strategies, so once a user has the executable