Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Reflash help: Am I going crazy!?

    Reply
    Page 1 of 2 | 1   2   | Next
    GameboyRMH | # 1 | 2010-10-22, 00:06 | Report

    OK, so let's start with some history. On Monday night I did a full backup of my rootfs (and more) with rsync. I know what I'm doing.

    On Tuesday I edited some files on rootfs, again, no problems.

    Today around noon I launch Iceweasel, N900 freezes hard, I have to pull the battery (for the second time ever). I reboot, rootfs is damaged and mounted as read only, but no problem since I have backups.

    Just now, I reflash rootfs, install rootsh+ssh client+rsync and start a restore process from Monday night. It goes well, I restart. Everything looks flawless at first.

    But as a test I try writing to rootfs.

    rootfs is damaged again and mounted as read-only
    WHAT THE F@#$!?!?!?!?

    What the hell could cause this!? I'm going to try the process again. The screen did flash an extra time on the first reboot after restoring as I unplugged the charger, maybe that's related.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    maxximuscool | # 2 | 2010-10-22, 00:13 | Report

    did you use the backupMenu?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    GameboyRMH | # 3 | 2010-10-22, 00:15 | Report

    Nope, no backupmenu, just rsync (running as rot both on the local and remote device).

    Edit | Forward | Quote | Quick Reply | Thanks

     
    maxximuscool | # 4 | 2010-10-22, 00:18 | Report

    then I don't know, if it caused by rsync then may be someone else can help you.
    good luck and may god has mercy upon your N900.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    AlMehdi | # 5 | 2010-10-22, 00:19 | Report

    Try install sysklogd.. you might find some write errors.. also check the rsync backup so it is not restoring read-only files.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    GameboyRMH | # 6 | 2010-10-22, 00:24 | Report

    OK something more freaky is going on here. I ran this exact command on tuesday, NOT proceeded by sudo gainroot:

    rootsh echo "set nowrap" > /etc/nanorc

    this gives a permission denied error. But this:

    sudo gainroot
    echo "set nowrap" > /etc/nanorc

    works fine after a fresh reflash and installing rootsh. I didn't try that after the restore. What could cause this change in behavior?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    AlMehdi | # 7 | 2010-10-22, 00:29 | Report

    Originally Posted by GameboyRMH View Post
    OK something more freaky is going on here. I ran this exact command on tuesday, NOT proceeded by sudo gainroot:

    rootsh echo "set nowrap" > /etc/nanorc

    this gives a permission denied error. But this:

    sudo gainroot
    echo "set nowrap" > /etc/nanorc

    works fine after a fresh reflash and installing rootsh. I didn't try that after the restore. What could cause this change in behavior?
    Hmm... what version of rootsh are you using? Try "dpkg -l rootsh" in terminal. If you use v1.8 then "rootsh" as a command does not work. Only "root" or "sudo gainroot" will give you root access.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    GameboyRMH | # 8 | 2010-10-22, 00:38 | Report

    Right now it shows 1.5, but I'm in the middle of the restore process. But as recently as Tuesday I was using rootsh like a password-less sudo.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    AlMehdi | # 9 | 2010-10-22, 00:42 | Report

    Originally Posted by GameboyRMH View Post
    Right now it shows 1.5, but I'm in the middle of the restore process. But as recently as Tuesday I was using rootsh like a password-less sudo.
    Maybe the sudoers file did not get restored? Check /etc/sudoers.d/ if you have it there. But as you said.. something seams to be fishy. Have you checked your rsync backup?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    GameboyRMH | # 10 | 2010-10-22, 00:58 | Report

    After a restore in /etc/sudoers.d/ I have no rootsh.sudoers file, it doesn't exist in the rsync backup either

    I am still running rootsh 1.5 after the restore.

    rootsh and sudo gainroot behavior is the same as outlined above - apart from that everything seems normal

    Another command I tried on Tuesday was:

    cd /etc/event.d
    rootsh nano set-swaps-custom

    Then I saved the file. I just tried this and it worked

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout