Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Removed glibc on Slackware Linux, how to rebuild it

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-02-2012
Member
 
Join Date: Jan 2012
Posts: 106
Removed glibc on Slackware Linux, how to rebuild it
  

I am running Linux Slackware 9.1! By mistake I have removed the glibc. Without this, the system is now useless. There is no way I can login into the computer and do anything. When I boot the system, I get the following messages:
Quote:
INIT:no cannot execute "sbin/agetty"
INIT:no cannot execute "command/svscanboot"
INIT:no more processes left in this runlevel
There are 2 SCSI disk. I tried the Linux rescue but it shows me "Can't mount root". I too tried the slack live cd and it can only show me the partitions. Can anyone tell me how to fix this issue?

Reply With Quote
  #2  
Old 27-02-2012
Member
 
Join Date: Jan 2011
Posts: 168
Re: Removed glibc on Slackware Linux, how to rebuild it

In order to rebuild the glibc, you will need original installation disk. Take the CD and get into the package directory where it has the and run the following command:
Code:
installpkg -reinstall glibc*tgz --root /mnt/whatever
Now this command will replace all files to the original state.
Reply With Quote
  #3  
Old 27-02-2012
Member
 
Join Date: Jan 2011
Posts: 270
Re: Removed glibc on Slackware Linux, how to rebuild it

If you look into the installation disk of Slackware, you will notice two glibc locations and they are as follows:
Code:
/slackware/a/glibc
or
/slackware/l/glib
So you need to find out which fine you have deleted from the computer and depending upon that you have to run the command to replace the file.
Reply With Quote
  #4  
Old 27-02-2012
Member
 
Join Date: Jan 2011
Posts: 172
Re: Removed glibc on Slackware Linux, how to rebuild it

It is really easy to get back the glibc package on your slackware linux. All you have to do is to copy the package from Slackware 9.1 CD/DVD to HDD and then chroot into the system suing below codes

Code:
# mount /dev/your-root-partition /mnt/
# chroot /mnt/
# installpkg $glibc-packagename
Reply With Quote
  #5  
Old 02-03-2012
Member
 
Join Date: Feb 2010
Posts: 669
Re: Removed glibc on Slackware Linux, how to rebuild it

You can chroot into the Slackware-environment. For that you will need to mount Slackware / partition in the filesystem of your Live-CD and then use:

Code:
mount -t proc none /mnt/tmp/proc
mount -o bind /dev /mnt/tmp/dev
chroot /mnt/tmp /bin/bash
If it executed, then you are in Slackware-environment and reinstall glibc package with installpkg from there. You can also execute the installpkg command from other path in live-CD.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Removed glibc on Slackware Linux, how to rebuild it"
Thread Thread Starter Forum Replies Last Post
Which Linux OS between PCLinuxOS, PinGuy OS and Slackware Wazza10Roo Operating Systems 7 24-05-2013 02:18 PM
How to setup Wireless Network on Slackware Linux Oorja Networking & Security 5 02-03-2012 10:23 AM
Need Slackware Linux 13.0 final version konqueror101 Operating Systems 3 03-09-2009 10:38 PM
Install Slackware Linux 9.1 abhay Guides & Tutorials 32 04-08-2008 08:30 PM
what could i do while multiboot solaris windows xp and slackware linux or opensuse linux hoanglong1712 Operating Systems 2 25-04-2008 09:18 AM


All times are GMT +5.5. The time now is 01:52 AM.