Reply
Thread Tools
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#1
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.
__________________
"Impossible is not in the Maemo vocabulary" - Caballero
 
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#2
 
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#3
Nope, no backupmenu, just rsync (running as rot both on the local and remote device).
__________________
"Impossible is not in the Maemo vocabulary" - Caballero
 
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#4
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.
 
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#5
Try install sysklogd.. you might find some write errors.. also check the rsync backup so it is not restoring read-only files.
__________________
You like what i do? Donate!

Make your desktop look awesome - use the AwOken Theme with the AwOken Icon Theme.

Add me on twitter @almehdin
Visit the swedish maemo/meego community forums
 
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#6
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?
__________________
"Impossible is not in the Maemo vocabulary" - Caballero
 
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#7
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.
__________________
You like what i do? Donate!

Make your desktop look awesome - use the AwOken Theme with the AwOken Icon Theme.

Add me on twitter @almehdin
Visit the swedish maemo/meego community forums
 
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#8
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.
__________________
"Impossible is not in the Maemo vocabulary" - Caballero
 
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#9
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?
__________________
You like what i do? Donate!

Make your desktop look awesome - use the AwOken Theme with the AwOken Icon Theme.

Add me on twitter @almehdin
Visit the swedish maemo/meego community forums
 
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#10
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
__________________
"Impossible is not in the Maemo vocabulary" - Caballero
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:58.