Active Topics

 


Reply
Thread Tools
Posts: 5 | Thanked: 5 times | Joined on Sep 2019
#1
Hello.
On working N9 (64) as root, the command was executed
chmod -x / usr / share / sheep startup

Due to extra spaces, the chmod -x command on the root directory / and all the files in it had the right to run.
When connecting in ubuntu, rootfs is not visible:



Please help restore the system’s functionality without reinstalling programs and settings.
 

The Following User Says Thank You to n e w b i e For This Useful Post:
Posts: 257 | Thanked: 1,010 times | Joined on May 2010 @ Near Munich
#2
If you have access to the filesystem the solution is simple:

chmod +x / usr

With chmod -x you disallowed listing of the directory contents.
With chmod +x you allow listing them.
chmod takes each parameter as argument and tried to remove the listing right from "/" (the root directory) "usr" "share" "sheep" and "startup" files/directories. Only the first two where accessible from the root path so only these two are affected.

If you don't know how to access the filesystem of the N9 take a look here: https://wiki.maemo.org/N9/N950_Rescue_CD

Additional info: If you chmod -x on a file you forbid execution of it, so a program can not be started anymore. With chmod +x you allow it.
 

The Following 2 Users Say Thank You to Macros For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#3
@macros is right.

Should be easy fixable with Rescue OS. You may also check out ubiboot by juceme.
The attempt tou made loaded the kernel and tried to run your system which is not executableable/listable anymore.

One remark: your command "only" affected the root / of your file system.
root: with great power comes great responsibility
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 5 | Thanked: 5 times | Joined on Sep 2019
#4
Thanks for the decision, I will try.
Please tell me in the article https://wiki.maemo.org/N9/N950_Rescue_CD there are links to download "Debian Live CD" or "rescue9-binary-hybrid.iso" or "livecd9-config.7z", but they do not work, where can I get the necessary files? Thank.

Last edited by n e w b i e; 2019-09-25 at 09:14. Reason: add
 

The Following User Says Thank You to n e w b i e For This Useful Post:
Posts: 807 | Thanked: 1,589 times | Joined on Aug 2014
#5
Originally Posted by n e w b i e View Post
"rescue9-binary-hybrid.iso"
Here's a start:
https://docs.google.com/uc?id=0BxyCp...626&e=download
 

The Following 4 Users Say Thank You to aspergerguy For This Useful Post:
Posts: 5 | Thanked: 5 times | Joined on Sep 2019
#6


2 drives, should it be so?
 

The Following User Says Thank You to n e w b i e For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#7
Originally Posted by n e w b i e View Post
2 drives, should it be so?
What I know it should be 3 partitions. Here in your example the rootfs is missing.

Did the flasher were sending kernel image and initfs image successful?

With my N950 it sending the files but nothing happens. So it was only working with --enable-rd-mode --set-rd-flags=serial-console.

Did you get a warranty warning on N9?

But there should be somewhere a moslo rescue kernel with usb network and telnet from juiceme. I think this could be better.

Last edited by Halftux; 2019-09-27 at 19:01.
 

The Following 2 Users Say Thank You to Halftux For This Useful Post:
Posts: 5 | Thanked: 5 times | Joined on Sep 2019
#8
Originally Posted by Halftux View Post
Did the flasher were sending kernel image and initfs image successful?
Yes, successfully.
Originally Posted by Halftux View Post
Did you get a warranty warning on N9?
Yes, I got it, here is the photo.
Attached Images
 
 

The Following User Says Thank You to n e w b i e For This Useful Post:
Posts: 5 | Thanked: 5 times | Joined on Sep 2019
#9
I have another N9. I performed on it
chmod -x / usr / share / sheep startup
Booted into rescue9-binary-hybrid.iso and saw 2 disks. After executed the command
flasher -F ape.bin --flash-only=rootfs -f -R
And booted into rescue9-binary-hybrid.iso and saw 3 disks (there was rootfs). But when you make a command
flasher -F ape.bin --flash-only=rootfs -f -R
all installed applications disappear
And you need to restore everything that was installed
 

The Following User Says Thank You to n e w b i e For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#10
Oops.

I guess.your -x left your rootfs in an unvisible state. Even for exporting.
I do hpe you will be able to mount your N9 rootfs manually from PC.
Something like mount /dev/sdb1 /mnt possibly needing some flags. And you need to find correct naming for exported partition. Have a look how (under which name) home and MyDocs are exported. And /mnt is any directory where content of your N9 rootfs will be shown.
But there will be nothing because you prohibited (with chmod -x) to display any content of that directory.
And I do not know how you may achieve to set some rights to something you are not allowed to see (even as root).

You will need Google to help you out to get the right file system rights back.
Have a look here e.g.
https://unix.stackexchange.com/quest...-777-in-ubuntu
as you have another N9 with intact file system. But do not execute that command as it will try to change every file rights recursively and you only need it for the first level items.

Sorry, this is kind of vague. But I was never in such circumstance.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:35.