maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Reflash help: Am I going crazy!? (https://talk.maemo.org/showthread.php?t=64177)

GameboyRMH 2010-10-22 00:06

Reflash help: Am I going crazy!?
 
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 :eek:
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.

maxximuscool 2010-10-22 00:13

Re: Reflash help: Am I going crazy!?
 
did you use the backupMenu?

GameboyRMH 2010-10-22 00:15

Re: Reflash help: Am I going crazy!?
 
Nope, no backupmenu, just rsync (running as rot both on the local and remote device).

maxximuscool 2010-10-22 00:18

Re: Reflash help: Am I going crazy!?
 
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.

AlMehdi 2010-10-22 00:19

Re: Reflash help: Am I going crazy!?
 
Try install sysklogd.. you might find some write errors.. also check the rsync backup so it is not restoring read-only files.

GameboyRMH 2010-10-22 00:24

Re: Reflash help: Am I going crazy!?
 
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?

AlMehdi 2010-10-22 00:29

Re: Reflash help: Am I going crazy!?
 
Quote:

Originally Posted by GameboyRMH (Post 847559)
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.

GameboyRMH 2010-10-22 00:38

Re: Reflash help: Am I going crazy!?
 
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.

AlMehdi 2010-10-22 00:42

Re: Reflash help: Am I going crazy!?
 
Quote:

Originally Posted by GameboyRMH (Post 847571)
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?

GameboyRMH 2010-10-22 00:58

Re: Reflash help: Am I going crazy!?
 
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 :confused:

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 :confused:

AlMehdi 2010-10-22 01:03

Re: Reflash help: Am I going crazy!?
 
I don't know if the name are exactly rootsh.sudoers.. have not looked into v1.5 to much.. in my case i made a file called 99all.sudoers for sudo. I am using v1.8..

GameboyRMH 2010-10-22 01:08

Re: Reflash help: Am I going crazy!?
 
Here's something else that sucks - since restoring I've lost at least 13MB of rootfs space :confused: going to check some rootfs optimizations I made in the past...

GameboyRMH 2010-10-22 12:05

Re: Reflash help: Am I going crazy!?
 
OK I think the difference in rootfs space is caused by the files being de-sparsed by rsync...not a major issue, I still had over 53MB free and now have 63MB free since manually optifying some microB components.


All times are GMT. The time now is 20:22.

vBulletin® Version 3.8.8