LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-27-2007, 01:05 PM   #1
Beauford-2
Member
 
Registered: Sep 2004
Posts: 37

Rep: Reputation: 15
I really messed things up!


I was trying to upgrade glibc and in the process deleted it, now I can't get to a shell to reinstall. My default is bash, but I can't do anything. Even if I use ls I get a file can't be found error.

How can I get back in to reinstall glibc.

Thanks
 
Old 02-27-2007, 01:08 PM   #2
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 51
What distro are you using??
 
Old 02-27-2007, 01:11 PM   #3
Beauford-2
Member
 
Registered: Sep 2004
Posts: 37

Original Poster
Rep: Reputation: 15
Slackware 10
 
Old 02-27-2007, 01:13 PM   #4
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
try booting a live CD, or your slack install CDs.

chroot to your native root directory, then installpkg glibc (from the slackware install CD)
 
Old 02-27-2007, 01:19 PM   #5
Beauford-2
Member
 
Registered: Sep 2004
Posts: 37

Original Poster
Rep: Reputation: 15
Since there are no stupid questions, how do I go about this. I tried from the prompt on the CD and got a kernel panic.
 
Old 02-27-2007, 01:38 PM   #6
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
Code:
boot:sata.i root=/dev/sdaN
this is what i've used before, if you're using not-sata devices then pick a different kernel, probably huge26.s, and your 'root=' should point to some hdXN partition, where X=a-c and N=1-? i.e.
Code:
boot:huge26.s root=/dev/hda1
above would work if you're using ide drive primary master, and the first partition is where your root fs resides.

indeed, if this works you should not have to chroot.

you'll then ? need to make sure that you can find the CD you booted off, then look in /dev/cdrom/slackware/ for glibc

sorry, not sure which directory thats in.

*note, if you have /usr, /home or other base filesystems on other partitions it would be good (required?) to mount these as well before trying to installpkg.

*note- you may have to fully specifiy the path to installpkg (i think its just /sbin/installpkg but could be /usr/... somewhere)
 
Old 02-27-2007, 01:51 PM   #7
Beauford-2
Member
 
Registered: Sep 2004
Posts: 37

Original Poster
Rep: Reputation: 15
Now we're getting somewhere, but not quite. I was able to get into root and mount my /home directory which is on another HD - this is also where I DL'd the new versions of glibc. But when I try to use pkgtool to install, I get a message that it can't find /etc/somefile, and I'm back to square one.

Thanks
 
Old 02-27-2007, 02:02 PM   #8
Beauford-2
Member
 
Registered: Sep 2004
Posts: 37

Original Poster
Rep: Reputation: 15
Voila. Got it. Thanks, I owe you my first born. Have to get smaller fingers so I don't hit delete again.

Thanks again
 
Old 02-27-2007, 02:06 PM   #9
Beauford-2
Member
 
Registered: Sep 2004
Posts: 37

Original Poster
Rep: Reputation: 15
I last question. I noticed now I have lib, usr and var directories under my home directory. This may have been due to my first attempt at installing glibc which didn't work - I'm assuming these should be safe to delete - or maybe rename to make sure they aren't being used for anything.
 
Old 02-27-2007, 04:02 PM   #10
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
glad you got it working.

sorry, i've reached the end of my usefulness here

I too, am a newbie.

I only knew that trick above because I've had similar screwups
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse: confused on many things, why is installing things so hard? blackflare Linux - Newbie 11 10-16-2007 04:35 AM
LXer: Things found on the way to other things. LXer Syndicated Linux News 0 01-06-2007 08:03 PM
m$ font messed things up karlos4321 Slackware 1 10-18-2005 01:48 PM
New harddrive messed up things deWin Linux - Hardware 2 12-23-2004 09:49 PM
I think I've royally messed things up phatcher Linux - General 1 09-28-2003 02:51 PM


All times are GMT -5. The time now is 06:06 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration