Reply
Thread Tools
Posts: 23 | Thanked: 11 times | Joined on Sep 2010
#1
Hey Folks,

Last time I was drunk I thought it would be a good idea to delete the contents of "/var/lib/dpkg/info/" without realizing that all the information 'bout installed packages will get lost.

Is there any accetable way to recover the files / information that have been in that folder? Maybe there is a scripted solution to regain the package infos?

Greets
 
Posts: 14 | Thanked: 10 times | Joined on Dec 2009 @ Slovakia
#2
It's always a bad idea to do anything in root shell while beeing drunk :-).

I'd personally try to copy it from another n900 and reinstall all necessary packages. If it fails - a reflash is definitely a solution.
 
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#3
I would apt-get install --reinstall all packages Maybe this is scriptable
__________________
Ernesto de Bernardis

 
Posts: 8 | Thanked: 2 times | Joined on Dec 2010 @ Czech Republic
#4
Guys finally got rid of android. Sorry for bringing up this now but did anyone tried to put simbolic links in this dir and move the files away to save space for rootfs?
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#5
Sure! I am using this script slightly modified from this wiki page http://wiki.maemo.org/User:Tanner#Sa...pace_on_rootfs to move large directories to optfs, also known as /home/opt/

The script will show the amount of free space in rootfs before and after the moving of stuff.

Extract the script to the user directory, make it executable and run it as root
Code:
unzip movetopt.sh.zip .
chmod +x movetoopt.sh
sudo gainroot
sh movetoopt.sh
Attached Files
File Type: zip movetoopt.sh.zip (754 Bytes, 66 views)
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 12:24.