Re: [arch-general] /var lost, how reinstal Archlinux?

2014-04-04 Thread Rodrigo Rivas
On Thu, Apr 3, 2014 at 9:12 PM, Lukas Jirkovsky l.jirkov...@gmail.com wrote:
 If you have enough time, I would try using pkgfile to recover the
 installed packages. I thing something like this should suffice:
 # update the pkgfile database
 pkgfile -u
 # find the package names for all binaries
 find /usr/bin -type f -exec pkgfile '{}' ';' | uniq

Good idea. But just a little correction, use `sort` or else `uniq`
will not work properly:

find /usr/bin -type f -exec pkgfile '{}' ';' | sort | uniq

-- 
Rodrigo


Re: [arch-general] /var lost, how reinstal Archlinux?

2014-04-04 Thread Simon Brand
Am 04.04.2014 23:24, schrieb Rodrigo Rivas:
 On Thu, Apr 3, 2014 at 9:12 PM, Lukas Jirkovsky l.jirkov...@gmail.com wrote:
 If you have enough time, I would try using pkgfile to recover the
 installed packages. I thing something like this should suffice:
 # update the pkgfile database
 pkgfile -u
 # find the package names for all binaries
 find /usr/bin -type f -exec pkgfile '{}' ';' | uniq
 
 Good idea. But just a little correction, use `sort` or else `uniq`
 will not work properly:
 
 find /usr/bin -type f -exec pkgfile '{}' ';' | sort | uniq
 

or use only | sort -u instead



Re: [arch-general] /var lost, how reinstal Archlinux?

2014-04-03 Thread Jerome Leclanche
In a slim install, you're unlikely to have lost much due to the nature
of /var (only variable data, aka no installed files). If you had a
database on disk you did lose that, eg postgres. Also firewall rules
and all logs.

Try pacman -Ql | grep /var to see what owns stuff in there.
J. Leclanche


On Thu, Apr 3, 2014 at 10:22 AM, Marek Otahal markota...@gmail.com wrote:
 Hello,

 I've lost content of /var, other partitions are ok, so system somewhat
 boots up (to recovery mode).
 What is the less pain method to get it again up and running? The problem I
 see are pacman list of installed packages? Any other notes on what
 important things could be missing?

 Thank you very much for any help,
 Mark

 PS: no backups :-/

 --
 Marek Otahal :o)


Re: [arch-general] /var lost, how reinstal Archlinux?

2014-04-03 Thread Martti Kühne
Or better, check with the command that tests all packages' files for presence.

# pacman -Qk | grep -v '0 missing files'

cheers!
mar77i


Re: [arch-general] /var lost, how reinstal Archlinux?

2014-04-03 Thread Thomas Bächler
Am 03.04.2014 11:28, schrieb Martti Kühne:
 Or better, check with the command that tests all packages' files for presence.
 
 # pacman -Qk | grep -v '0 missing files'

LOL. Where do you think that information is stored? I'll give you a
subtle hint: It's /var.

OP is basically screwed. There is no easy way to get his stuff back into
working order. There is not even an easy way to determine which packages
have been installed.




signature.asc
Description: OpenPGP digital signature


Re: [arch-general] /var lost, how reinstal Archlinux?

2014-04-03 Thread Martti Kühne
On Thu, Apr 3, 2014 at 11:38 AM, Jeff Daniel Rollin-Jones
jeff.rol...@gmail.com wrote:
 It might actually be easier to reinstall than to go through pacmanning 
 everything that's been lost, individually.



Do you mean `pacman -S $(pacman -Qq)`?

cheers!
mar77i


Re: [arch-general] /var lost, how reinstal Archlinux?

2014-04-03 Thread Martti Kühne
On Thu, Apr 3, 2014 at 11:43 AM, Thomas Bächler tho...@archlinux.org wrote:
 Am 03.04.2014 11:28, schrieb Martti Kühne:
 Or better, check with the command that tests all packages' files for 
 presence.

 # pacman -Qk | grep -v '0 missing files'

 LOL. Where do you think that information is stored? I'll give you a
 subtle hint: It's /var.



Now that you mention it... okay.jpg

cheers!
mar77i


Re: [arch-general] /var lost, how reinstal Archlinux?

2014-04-03 Thread Daniel Micay
On 03/04/14 05:22 AM, Marek Otahal wrote:
 Hello,
 
 I've lost content of /var, other partitions are ok, so system somewhat
 boots up (to recovery mode).
 What is the less pain method to get it again up and running? The problem I
 see are pacman list of installed packages? Any other notes on what
 important things could be missing?
 
 Thank you very much for any help,
 Mark
 
 PS: no backups :-/

You can install a fresh install on top of the old install by using
`pacstrap`. I would boot up a live cd, move /etc to /etc_old, then
remove all other top levels directories other than /home, and install
again with pacstrap. The pacman database was in /var so there's little
point in trying to reinstall the same packages, and it doesn't seem very
important anyway - you'll remember what you used when it's missing, and
it's trivial to install it again.



signature.asc
Description: OpenPGP digital signature


Re: [arch-general] /var lost, how reinstal Archlinux?

2014-04-03 Thread Lukas Jirkovsky
On Thu, Apr 3, 2014 at 11:22 AM, Marek Otahal markota...@gmail.com wrote:
 Hello,

 I've lost content of /var, other partitions are ok, so system somewhat
 boots up (to recovery mode).
 What is the less pain method to get it again up and running? The problem I
 see are pacman list of installed packages? Any other notes on what
 important things could be missing?

 Thank you very much for any help,
 Mark

 PS: no backups :-/

 --
 Marek Otahal :o)

If you have enough time, I would try using pkgfile to recover the
installed packages. I thing something like this should suffice:
# update the pkgfile database
pkgfile -u
# find the package names for all binaries
find /usr/bin -type f -exec pkgfile '{}' ';' | uniq

I assume that the libs would be installed as depends for the programs
that has a binary in /usr/bin

Lukas