Results 1 to 5 of 5

Thread: Removed glibc on Slackware Linux, how to rebuild it

  1. #1
    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:
    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?

  2. #2
    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.

  3. #3
    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.

  4. #4
    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

  5. #5
    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.

Similar Threads

  1. Which Linux OS between PCLinuxOS, PinGuy OS and Slackware
    By Wazza10Roo in forum Operating Systems
    Replies: 7
    Last Post: 24-05-2013, 02:18 PM
  2. How to setup Wireless Network on Slackware Linux
    By Oorja in forum Networking & Security
    Replies: 5
    Last Post: 02-03-2012, 10:23 AM
  3. Need Slackware Linux 13.0 final version
    By konqueror101 in forum Operating Systems
    Replies: 3
    Last Post: 03-09-2009, 10:38 PM
  4. Install Slackware Linux 9.1
    By abhay in forum Guides & Tutorials
    Replies: 32
    Last Post: 04-08-2008, 08:30 PM
  5. Replies: 2
    Last Post: 25-04-2008, 09:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,566,380.58771 seconds with 17 queries