Linux: create eee note back up

Discussion in 'Asus (Android)' started by T_B, Nov 3, 2011.

Thread Status:
Not open for further replies.
  1. T_B

    T_B Scribbler - Standard Member

    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    30
    Hi,

    Can one of the Linux gurus tell me the best way to create a back up of my eeenote.
    I was thinking about using ssh and run a script that copies all essential directories, but I need to re-read some forum threads to work out the details and it might be too advanced for my skills. If there is an easier solution or this is not the best way to deal with that please let me know.

    Thanks!
    T_B
     
  2. Jamie-B

    Jamie-B Scribbler - Standard Member

    Messages:
    260
    Likes Received:
    31
    Trophy Points:
    41
    I have used Ubuntu for two days, and it has been my only command line experience, so my word is no bible to follow, but if you're impatient and enterprising and would like to brick your device, then by all means listen to my madness:

    If you have an external microSD card to use, insert it into your Eee Note. Then use ConsoleQ to run the cp command of your root directory, which I believe to be named 'eTablet', onto your microSD.

    Yes, this could be dangerous and incorrect and be missing out some crucial directory for reasons unbeknownst to me. No, I don't know whether anything bad will happen if you copy everything from etablet including eTablet/mnt/extsdcard into eTablet/mnt/extsdcard. But if this turns out to be a viable way of doing this, I will have learnt something nice today :eek:
     
  3. etienne

    etienne Pen Pal - Newbie

    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    15
    But there's already a program in windows (which I don't have). You could probably use it with wine.

    Edit: You can also copy the partition by removing the internal micro sd card. Yes it will break you warranty, but since there's no international warranty, this may not be a problem (unless you are in taiwan or russia or contry that sells it).
    Personally I don't have micro sd adapter -_- So my eeenote is my only adapter lol
     
  4. Muhali

    Muhali Pen Pal - Newbie

    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    15
    Among the easiest ways to backup is via the Qconsole and your external sd card:

    Code:
    cp -a /eTablet /mnt/extsdcard
    
    If that doesn't fit I would install ssh and from the PC, which is connected by the usb cable and in sync mode, do

    Code:
    scp -r 169.254.2.1:/eTablet /some/directory/on/your/PC
    
    M.
     
  5. T_B

    T_B Scribbler - Standard Member

    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    30
    I know the easiest is with use of the external sd card, sorry for not making that clear.
    I like to connect my usb to my PC and once a while sync with my desktop. I tried dropbear but every time I try to connect with scp I got a " Permission denied (publickey)."

    Tried this method a couple of times:
    http://forum.tabletpcreview.com/asus-eee-line/41410-dropbear-ssh-eee-note.html

    On my PC
    scp -r 169.254.2.1:/eTablet /home/T_B/Backup_eeenote/

    On my eeenote

    /mnt/extsdcard/dropbear -s -F -E

    Connect the eeenote with usb and choose sync mode.
    I have id_dsa.pub SSH keyfile copied to my sd card.

    :confused: I have no idea what I might have done wrong.
     
  6. Muhali

    Muhali Pen Pal - Newbie

    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    15
    To be clear: scp should be run after dropbear.

    The incorrect permissions may come from you scp'ing as non-root. What if you issue
    Code:
    scp -r root@169.254.2.1:/eTablet /home/T_B/Backup_eeenote/
    
    ?
     
  7. T_B

    T_B Scribbler - Standard Member

    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    30
    No too bad didn't help.

    ssh -v did give more information:

    T_B@T_B-desktop:~$ ssh -v 169.254.2.1
    OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Applying options for *
    debug1: Connecting to 169.254.2.1 [169.254.2.1] port 22.
    debug1: Connection established.
    debug1: identity file /home/T_B/.ssh/id_rsa type -1
    debug1: identity file /home/T_B/.ssh/id_rsa-cert type -1
    debug1: identity file /home/T_B/.ssh/id_dsa type 2
    debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
    debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
    debug1: identity file /home/T_B/.ssh/id_dsa-cert type -1
    debug1: identity file /home/T_B/.ssh/id_ecdsa type -1
    debug1: identity file /home/T_B/.ssh/id_ecdsa-cert type -1
    debug1: Remote protocol version 2.0, remote software version dropbear_0.53.1
    debug1: no match: dropbear_0.53.1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_5.8p1 Debian-1ubuntu3
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5 none
    debug1: kex: client->server aes128-ctr hmac-md5 none
    debug1: sending SSH2_MSG_KEXDH_INIT
    debug1: expecting SSH2_MSG_KEXDH_REPLY
    debug1: Server host key: RSA 43:d4:5d:11:f8:bc:6e:20:c1:fa:b8:a1:c6:ae:4e:df
    debug1: Host '169.254.2.1' is known and matches the RSA host key.
    debug1: Found key in /home/T_B/.ssh/known_hosts:1
    debug1: ssh_rsa_verify: signature correct
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug1: SSH2_MSG_NEWKEYS received
    debug1: Roaming not allowed by server
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug1: Authentications that can continue: publickey
    debug1: Next authentication method: publickey
    debug1: Offering DSA public key: /home/T_B/.ssh/id_dsa
    debug1: Authentications that can continue: publickey
    debug1: Trying private key: /home/T_B/.ssh/id_rsa
    debug1: Trying private key: /home/T_B/.ssh/id_ecdsa
    debug1: No more authentication methods to try.
    Permission denied (publickey).

    Now trying to create a new SSH key on my desktop and try again.

    Oh, BTW. If someone know how to CTRL-C / Z programs in ConsoleQ please tell me how... I now need to exit console every time something fails.
     
  8. Muhali

    Muhali Pen Pal - Newbie

    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    15
    sometimes ssh is very picky about .ssh permissions, see here.

    If I find time I'll try it out myself (haven't installed dropbear so far.

    M.
     
    Last edited by a moderator: May 18, 2015
  9. Muhali

    Muhali Pen Pal - Newbie

    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    15
    Ok. It works for me now. You have to carefully read this. But the piece that's missing there is to
    Code:
    cp /mnt/extsdcard/scp /usr/bin
    cp /mnt/extsdcard/dbclient /usr/bin
    cp /mnt/extsdcard/dropbear /usr/bin
    cp /mnt/extsdcard/dropbearconvert /usr/bin
    cp /mnt/extsdcard/dropbearkey /usr/bin
    
    M.
     
    Last edited by a moderator: May 18, 2015
  10. T_B

    T_B Scribbler - Standard Member

    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    30
    I didn't copy the executables to the bin directory. I executed dropbear from the external card, and that part seemed to work without a problem. I will try this later this evening though. Thanks!
     
    Last edited by a moderator: May 18, 2015
Loading...
Thread Status:
Not open for further replies.

Share This Page