maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   [Solved] Could someone send me the contents of N900's /root folder (https://talk.maemo.org/showthread.php?t=88509)

tanago 2013-01-04 10:53

[Solved] Could someone send me the contents of N900's /root folder
 
By mistake I deleted the contents of the /root folder on my N900 and now I cant gain root permissions with "sudo gainroot/root/rush" and I dont want to reflash because I have very much apps and media on the phone. Thank you very much in advance!

sifo 2013-01-04 14:31

Re: Could someone send me the contents of N900's /root folder
 
Have you rebooted your N900 ? i think it will be regenerated after the reboot...
Good luck

reinob 2013-01-04 15:13

Re: Could someone send me the contents of N900's /root folder
 
The fact that /root doesn't exist should not prevent you from doing "root", "sudo gainroot", or "su".

Are you sure this is the only thing you've deleted?

Just gain root (somehow :) and "mkdir /root". There's nothing important in that directory anyway (root doesn't really need a home).

marmistrz 2013-01-04 15:27

Re: Could someone send me the contents of N900's /root folder
 
Quote:

Originally Posted by reinob (Post 1310866)
The fact that /root doesn't exist should not prevent you from doing "root", "sudo gainroot", or "su".

Are you sure this is the only thing you've deleted?

Just gain root (somehow :) and "mkdir /root". There's nothing important in that directory anyway (root doesn't really need a home).

If you really need it, you might want to extract the SSU images. But don't know how to do it.

If you need to mkdir /root as root, you might do it via scp

anthonie 2013-01-04 15:50

Re: Could someone send me the contents of N900's /root folder
 
If you run a linux flavor on your PC, you should be able to extract the files from the bin with... unzip.

IIRC, Winrar does the trick as well, just in case you're using the Redmond OS.

tanago 2013-01-04 17:08

Re: Could someone send me the contents of N900's /root folder
 
Quote:

Originally Posted by sifo (Post 1310857)
Have you rebooted your N900 ? i think it will be regenerated after the reboot...
Good luck

No it doesnt regen...

Here's the story:
I had to extract an archive, I issued
Code:

root
then
Code:

tar xf /path/to/archive/blabla.tar
but I forgot to
Code:

cd
to the folder and it extracted the archive in
Quote:

/root folder
I realised that and without thinking I issued
Code:

rm -r *
and removed coincidentally .profile and .bashrc, now whenever i gain root permissions and I try to install any package it returns
Quote:

dpkg: `ldconfig' not found on PATH.
dpkg: `start-stop-daemon' not found on PATH.
dpkg: `install-info' not found on PATH.
dpkg: `update-rc.d' not found on PATH.
dpkg: 4 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
so I need the contents of the /root folder

sixwheeledbeast 2013-01-04 17:54

Re: Could someone send me the contents of N900's /root folder
 
Quote:

Originally Posted by tanago (Post 1310922)
so I need the contents of the /root folder

Both my N900's have different contains in /root
You may find that it will not fix all your problems.

bingomion 2013-01-05 02:05

Re: Could someone send me the contents of N900's /root folder
 
wow! Qicker just reflashing.. Copy your stuff of it if its still on maybe?

sixwheeledbeast 2013-01-05 11:21

Re: Could someone send me the contents of N900's /root folder
 
Reflasing combined should fix without losing much data.

tanago 2013-01-05 18:11

Re: Could someone send me the contents of N900's /root folder
 
Its a very long procedure to reflash - reinstalling programs, copying media to and from the PC - 2-3 hours. Nevermind I made my own .bashrc and .profile and now its working


All times are GMT. The time now is 03:27.

vBulletin® Version 3.8.8