WTH is wrong with this ?????

Discussion in 'Linux/BSD/Free Systems' started by Deadjasper, Mar 17, 2019.

  1. Deadjasper

    Deadjasper [H]ard|Gawd

    Messages:
    1,644
    Joined:
    Oct 28, 2001
    Trying to restore the OS on a Lenovo ix2-NG NAS box. The OS is on the HD, not in firmware. I'm following this youtube video -



    Screenshot from 2019-03-17 13-29-53.png Screenshot from 2019-03-17 13-37-15.png

    When I get to this part, this is what I get -

    Screenshot from 2019-03-17 13-29-53.png
    zImage is on the desktop so why can't it be found? I suspect it might be a syntax error or else "Parrot" that the guy in the video is using is different than the Linux CLI.

    Any help much appreciated.
     
  2. auntjemima

    auntjemima [H]ardness Supreme

    Messages:
    4,448
    Joined:
    Mar 1, 2014
    sdb0?

    You sure it's 1?
     
  3. Deadjasper

    Deadjasper [H]ard|Gawd

    Messages:
    1,644
    Joined:
    Oct 28, 2001
    Yes, the target disk is sdb1. Thanks.
     
  4. auntjemima

    auntjemima [H]ardness Supreme

    Messages:
    4,448
    Joined:
    Mar 1, 2014
    Yeah, after I wrote it and took a closer look at the previous pictures I knew you doing the right thing. I meant to delete it but got sidetracked.
     
  5. Deadjasper

    Deadjasper [H]ard|Gawd

    Messages:
    1,644
    Joined:
    Oct 28, 2001
    any idea what I'm doing wrong ?
     
  6. auntjemima

    auntjemima [H]ardness Supreme

    Messages:
    4,448
    Joined:
    Mar 1, 2014
    I don't see anything wrong with what you are typing and I haven't really found anything quickly online either. Most people are missing a syntax somewhere, but you aren't.

    I was going to suggest adding an extension to the zImage file (unless it doesn't have one, like *.img), which it seems it probably doesn't considering the video didn't have to add it

    Edit: have you tried running DD as sudo? Reading around they say it isn't recommended, but all posts I've seen regarding DD are using sudo.

    Edit2: have you considered running the command from the desktop directory instead of root?
     
  7. Deadjasper

    Deadjasper [H]ard|Gawd

    Messages:
    1,644
    Joined:
    Oct 28, 2001
    I've tried it with sudo and without, same same. I've tried it from the desktop, a folder on the desktop, from the downloads folder, same results. This is driving me nuts. The video clearly shows it working.
     
  8. auntjemima

    auntjemima [H]ardness Supreme

    Messages:
    4,448
    Joined:
    Mar 1, 2014
    I recently had a ton of issues with dd but I don't recall what I did.

    Way more educated Linux people around here than me, so I'm interested how this ends as well.
     
  9. FNtastic

    FNtastic [H]ard|Gawd

    Messages:
    1,337
    Joined:
    Jul 6, 2013
    Do an 'ls -lah' of your Desktop. I want to see the file there. Also, owner and permissions of that file.
     
  10. Deadjasper

    Deadjasper [H]ard|Gawd

    Messages:
    1,644
    Joined:
    Oct 28, 2001
    Hope this is right -

    Code:
    sparkey@DenMain ~ $ ls -lah /home/sparkey
    total 6.3M
    drwxr-xr-x 38 sparkey sparkey 4.0K Mar 17 13:14 .
    drwxr-xr-x  3 root    root    4.0K Sep  3  2018 ..
    drwx------  3 sparkey sparkey 4.0K Sep  3  2018 .adobe
    -rw-------  1 sparkey sparkey 2.4K Mar 17 13:49 .bash_history
    -rw-r--r--  1 sparkey sparkey  220 Sep  3  2018 .bash_logout
    -rw-r--r--  1 sparkey sparkey 4.0K Sep  3  2018 .bashrc
    drwx------ 20 sparkey sparkey 4.0K Dec  6 18:03 .cache
    drwxrwxr-x  5 sparkey sparkey 4.0K Mar 17 13:04 .cinnamon
    drwxr-xr-x 28 sparkey sparkey 4.0K Feb  2 18:54 .config
    drwx------  3 sparkey sparkey 4.0K Sep  3  2018 .dbus
    drwxr-xr-x  7 sparkey sparkey 4.0K Mar 17 13:42 Desktop
    -rw-r--r--  1 sparkey sparkey   27 Sep  3  2018 .dmrc
    drwxr-xr-x  8 sparkey sparkey 4.0K Mar 17 12:27 Documents
    drwxr-xr-x  7 sparkey sparkey 4.0K Mar 17 12:06 Downloads
    drwx------  3 sparkey sparkey 4.0K Mar 17 14:57 .gconf
    drwxr-xr-x 24 sparkey sparkey 4.0K Mar  5 17:43 .gimp-2.8
    -rw-r-----  1 sparkey sparkey    0 Mar  5 14:41 .gksu.lock
    drwx------  2 sparkey sparkey 4.0K Oct 27 10:17 .gnome2
    drwx------  2 sparkey sparkey 4.0K Mar  5 13:37 .gnupg
    -rw-rw-r--  1 sparkey sparkey   69 Sep  6  2018 hyytkityi
    -rw-------  1 sparkey sparkey  90K Mar 17 13:04 .ICEauthority
    drwxrwxr-x  2 sparkey sparkey 4.0K Sep  4  2018 .icons
    -rw-r--r--  1 sparkey sparkey 2.8M Apr  8  2013 initrd
    drwxrwxr-x  3 sparkey sparkey 4.0K Sep  6  2018 .java
    drwx------  3 sparkey sparkey 4.0K Mar 14 19:03 .kde
    drwxrwxr-x  4 sparkey sparkey 4.0K Sep  3  2018 .linuxmint
    drwxr-xr-x  3 sparkey sparkey 4.0K Sep  3  2018 .local
    drwx------  3 sparkey sparkey 4.0K Sep  3  2018 .macromedia
    drwxr-xr-x  5 sparkey sparkey 4.0K Sep  3  2018 .mozilla
    drwxr-xr-x 12 sparkey sparkey 4.0K Jan  7 18:08 Music
    drwx------  3 sparkey sparkey 4.0K Sep  3  2018 .nv
    -rw-rw-r--  1 sparkey sparkey 1.2K Nov 24 16:12 .nvidia-settings-rc
    drwxr-x---  3 sparkey sparkey 4.0K Oct 24 12:22 .openarena
    drwxrwxrwx  5 sparkey sparkey 4.0K Apr  9  2018 ownCloud
    -rw-rw-r--  1 sparkey sparkey  79K Mar  5 09:16 password-export-2019-03-05.xml
    -rw-r-----  1 sparkey sparkey 4.0K Mar  5 10:18 .pEp_management.db
    -rw-r-----  1 sparkey sparkey  32K Mar  5 13:37 .pEp_management.db-shm
    -rw-r-----  1 sparkey sparkey 206K Mar  5 13:37 .pEp_management.db-wal
    drwxr-xr-x  3 sparkey sparkey  56K Mar 17 13:37 Pictures
    drwx------  3 sparkey sparkey 4.0K Sep  3  2018 .pki
    drwx------  2 sparkey sparkey 4.0K Sep  4  2018 .prboom-plus
    -rw-r--r--  1 sparkey sparkey  655 Sep  3  2018 .profile
    drwxr-xr-x  2 sparkey sparkey 4.0K Sep  3  2018 Public
    -rw-------  1 sparkey sparkey 1.8K Mar 17 09:26 .recently-used
    drwx------  2 sparkey sparkey 4.0K Mar 17 09:19 .remmina
    drwxr-xr-x  3 sparkey sparkey 4.0K Feb 15 19:08 snap
    -rw-r--r--  1 sparkey sparkey    0 Sep  3  2018 .sudo_as_admin_successful
    drwxrwxr-x  3 sparkey sparkey 4.0K Sep  6  2018 .swt
    drwxr-xr-x  2 sparkey sparkey 4.0K Sep  3  2018 Templates
    drwxrwxr-x  3 sparkey sparkey 4.0K Sep  4  2018 .themes
    drwx------  3 sparkey sparkey 4.0K Sep  7  2018 .thumbnails
    drwx------  5 sparkey sparkey 4.0K Nov 20 12:57 .thunderbird
    drwxrwxr-x  3 sparkey sparkey 4.0K Sep  3  2018 .var
    drwxr-xr-x  2 sparkey sparkey 4.0K Dec 27 19:36 Videos
    -rw-------  1 sparkey sparkey  121 Mar 17 13:04 .Xauthority
    -rw-rw-r--  1 sparkey sparkey  131 Feb 19 15:37 .xinputrc
    -rw-------  1 sparkey sparkey  28K Mar 17 15:21 .xsession-errors
    -rw-------  1 sparkey sparkey 8.9K Mar 17 13:04 .xsession-errors.old
    -rw-r--r--  1 sparkey sparkey 2.9M Apr  8  2013 zImage
    sparkey@DenMain ~ $
    
     
  11. auntjemima

    auntjemima [H]ardness Supreme

    Messages:
    4,448
    Joined:
    Mar 1, 2014
    He's looking for the output of the desktop folder.
     
  12. Forge

    Forge n00b

    Messages:
    10
    Joined:
    Mar 3, 2010
    Simple solution. Your zImage isn't in ~/Desktop/, it's in ~.

    dd if=/home/sparkey/zImage of=/dev/sdb1 seek=2048
     
    FNtastic, TrailRunner and Deadjasper like this.
  13. Deadjasper

    Deadjasper [H]ard|Gawd

    Messages:
    1,644
    Joined:
    Oct 28, 2001
    I did a ls -lah /home/sparkey/desktop and got "no such file or directory" same on all variations of the above. A little guidance would be much appreciated.
     
  14. Deadjasper

    Deadjasper [H]ard|Gawd

    Messages:
    1,644
    Joined:
    Oct 28, 2001
    Thank you sir. That did it. :cool:

    Actually it is on the desktop, it's in 4 or 5 different place. But the above worked.
     
    Frobozz and auntjemima like this.
  15. Deadjasper

    Deadjasper [H]ard|Gawd

    Messages:
    1,644
    Joined:
    Oct 28, 2001
    Got one more hurdle to get over. As far as I tell I'm supposed to extract the recovery archive to a flash drive. The archive consisted of one folder called "emctools". The NAS is supposed to read from the flash drive and load the OS to the disk. However, it never tries to access the flash drive. On another website they talk about using a program called "h4c-4.1.102.29716.exe" to prepare the flash drive them copying the contents of the recovery archive to a folder called emctools on the newly created flash drive. This makes no sense being that the contents of the recovery drive is a folder called "emctool". But it does bring up a question, does the flash drive need to be bootable in order to work? if so, can Rufus do this. I can't find h4c-4.1.102.29716.exe anywhere on the web nor can I find a description of what it does. :(

    Sorry, above mentioned info here -

    https://www.myhacklog.com/restore-an-iomega-lenovo-storcenter-ix2-ng/
     
  16. auntjemima

    auntjemima [H]ardness Supreme

    Messages:
    4,448
    Joined:
    Mar 1, 2014
    Rufus can definitely create a bootable usb stick. Whether it can create one for Linux, I'm not sure. I'm not sure how Linux deals with bootable media.
     
  17. Deadjasper

    Deadjasper [H]ard|Gawd

    Messages:
    1,644
    Joined:
    Oct 28, 2001
    Rufus can create a bootable Linux drive. I just don't know the box automatically reads the image from the flash drive when the reset button is held in or if it needs a bootable partition to do so.
     
  18. FNtastic

    FNtastic [H]ard|Gawd

    Messages:
    1,337
    Joined:
    Jul 6, 2013
    BTW, linux is case sensitive.
    So, "desktop" doesn't exist. But, "Desktop" does.
     
    Frobozz and auntjemima like this.
  19. Deadjasper

    Deadjasper [H]ard|Gawd

    Messages:
    1,644
    Joined:
    Oct 28, 2001
    Thanks.