Author Topic: Can we airdrop critical system files to rescue a broken installation?  (Read 517 times)

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
There are many posts similar to www.pclinuxos.com/forum/index.php/topic,109499.new.html in our forum.
The reasons that lead to this end may be different.
Underlying thing seems to be missing critical system file which prevent the system from booting.

So my question is, can we just copy some of the most basic/critical system files from another similar PCLinuxOS installation to get a basic functional installation and then try a full repair from there on?
Even though it may be worth the time as many of forthcoming posters to this thread are likely to suggest, it will be a good learning exercise.

-SS.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Online muungwana

  • Hero Member
  • *****
  • Posts: 6228
Re: Can we airdrop critical system files to rescue a broken installation?
« Reply #1 on: September 27, 2012, 03:23:21 AM »

you may, but that may take much more effort compared to simply reinstalling.

You could, for example, just dump content of "/usr/" from a system that works to a system thats borked.But then, how certain will be that no important binary from "/sbin" was also removed? copying over everything in "/" is more or less the same as installing from a remaster.

If you have a home folder in a separate partition, reinstalling is more or less the same as "copying over critical system files".
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Can we airdrop critical system files to rescue a broken installation?
« Reply #2 on: September 27, 2012, 04:47:49 AM »
I expected as much. I just wanted an academic exercise. It just gives me great pleasure to see a broken system heal.

Windows has a utility called System File Checker. If things appear broken but not completely, then one could possibly run this utility to replace any missing / broken system files. We do not have a facility like that I suppose.

What if a copy of the installation image is kept somewhere on the hard disk and then if things go  wrong needed files be extracted from it? That might break the updates or something I guess. But a full update afterwards may be capable of restoring that too.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Online craesz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 978
Re: Can we airdrop critical system files to rescue a broken installation?
« Reply #3 on: September 27, 2012, 05:32:02 AM »
Windows has a utility called System File Checker. If things appear broken but not completely, then one could possibly run this utility to replace any missing / broken system files. We do not have a facility like that I suppose.

I believe this is because Winblows knows they need such a utility. I am guessing that, because of the way in which Linux operates, many of those types of utilities are not needed. I haven't defragmented a single linux machine in years but that one POS machine I have to have has been on numerous occasions and, if I don't, it simply slows to the speed of frozen molasses. With the permission issue and people adhering to never logging in as root, it seems that system files should remain untouched. It does happen, though, as I've had to reinstall. Not because of Linux I think but because of something going haywire with my DM.
Desktop1: AMD64 8450 [3 core]; 8GB; 3.2.18-pclos2.pae.bfs; KDE
Desktop2: AMD64 5400 [8 core]; 16GB; 3.2.16-a64; KDE
Netbook: EeePC 901; Atom N270; 1GB; 2.6.33.7-pclos6.bfs; KDE


Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1153
Re: Can we airdrop critical system files to rescue a broken installation?
« Reply #4 on: September 27, 2012, 08:40:08 AM »
I believe this is because Winblows knows they need such a utility.

 ;D  ;D  ;D  ;D  ;D
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD