LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-28-2013, 11:36 AM   #1
bigmatt267
LQ Newbie
 
Registered: Apr 2009
Distribution: SUSE, BT5, Mint 12/13
Posts: 12

Rep: Reputation: 0
Exclamation renamed library and laptop shut down before i could save it SUSE Enterprise


I am taking a NOS class and using SUSE enterprise server that came with the text. In the text I was to change the name of a shared library in
/lib/libnsl.so.1 to libnsl.so.1.bak
well i am taking screenshots since the class in online and to show the teacher where i am at. anyway, the screenshot utility stopped working so i decided to restart my laptop... :/
at boot it acknowledges that libnsl cannot be opened, due to it being renamed .bak
how do i fix it from the
linux-cl2c login prompt?
thanks!
 
Old 03-28-2013, 11:48 AM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,833

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
you do have the install dvd for the current SELD 11 service pack 2

pop it in and reboot .Then fallow the on screen instructions for running " rescue"

once in "rescue mode" and after you type in
Code:
chroot /mnt/sysimage
navigate to the 32 bit lib folder "/lib"
--- i am guessing you do not have the 64 bit SELD installed but are using the 32 bit version ---
and copy libnsl.so.1.bak back to libnsl.so.1
Code:
cd /lib
cp libnsl.so.1.bak libnsl.so.1
 
Old 03-28-2013, 12:01 PM   #3
bigmatt267
LQ Newbie
 
Registered: Apr 2009
Distribution: SUSE, BT5, Mint 12/13
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
you do have the install dvd for the current SELD 11 service pack 2

pop it in and reboot .Then fallow the on screen instructions for running " rescue"

once in "rescue mode" and after you type in
Code:
chroot /mnt/sysimage
navigate to the 32 bit lib folder "/lib"
--- i am guessing you do not have the 64 bit SELD installed but are using the 32 bit version ---
and copy libnsl.so.1.bak back to libnsl.so.1
Code:
cd /lib
cp libnsl.so.1.bak libnsl.so.1
Forgot to mention that the dvd is scratched and is not readable. Tried using unetbootin to reinstall from thumbdrive, hasn't worked so far. I am attempting to do that again. Thanks for the quick reply. I will let you know how things go.
 
Old 03-28-2013, 12:46 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,833

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
on a different computer download and burn the iso to a cd ( yes cd)
SystemRescueCD
http://www.sysresccd.org/SystemRescueCd_Homepage
--- download --
http://www.sysresccd.org/Download

use that to boot the machine
and rename the .so

Last edited by John VV; 03-28-2013 at 12:47 PM.
 
Old 03-29-2013, 10:41 AM   #5
bigmatt267
LQ Newbie
 
Registered: Apr 2009
Distribution: SUSE, BT5, Mint 12/13
Posts: 12

Original Poster
Rep: Reputation: 0
I am downloading the cd as we speak. I am using the SLES 11 X64 version, and downloaded a iso from SLES site, and when in rescue mode i did the following:
Code:
login: root
cd ..

cd lib64  - libnsl.so.1 is there
cd ..
cd lib    - libnsl.so.1 is there also
I do not see the renamed file. ?

Last edited by bigmatt267; 03-29-2013 at 10:42 AM.
 
Old 03-29-2013, 10:47 AM   #6
John VV
Guru
 
Registered: Aug 2005
Posts: 12,833

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
That might be the "libnsl.so.1" on the cd , and not on the sels 11

did you from the terminal run
Code:
chroot /mnt/sysimage
that is the os on the computer and not on the cd

or

if using the GUI on the cd ( type in startx or wizard )
then you need to mount the sels " /" partition
from
Code:
fdisk -l
you can find it
then mount it
Code:
mkdir /mnt/sels
mount /dev/sd?? /mnt/sels
and replace "/dev/sd??" with the location

Last edited by John VV; 03-31-2013 at 12:01 PM.
 
Old 03-31-2013, 11:02 AM   #7
bigmatt267
LQ Newbie
 
Registered: Apr 2009
Distribution: SUSE, BT5, Mint 12/13
Posts: 12

Original Poster
Rep: Reputation: 0
when
Code:
chroot /mnt/sysimage
I got the error that sysimage (or location) did not exist.
I am using the rescue cd now, and I did what you instructed and made that new directory and mounted the sels partition, so now what?
I am afraid to simply to a reinstall since the dvd that came with the book is auto licensed (lifetime) but the download from SUSE comes with a 60 day trial. I could get a copy from my teacher, but have no time to.
Thanks for your help and patience thus far.
 
Old 03-31-2013, 12:00 PM   #8
John VV
Guru
 
Registered: Aug 2005
Posts: 12,833

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
then mount the SELD " /" partition from the SystemRescueCD

pop it in and reboot
run "startx" or " wizard"

in the systemrescue cd GUI

in the terminal run " fdisk -l "

then manually mount the seld " /" partition
Code:
mkdir /mnt/seld
mount /dev/sd?? /mnt/seld
for the standard "ext3" and " ext4 " the type really is not needed , normally
but if needed
Code:
mount -t ext3 /dev/sd?? /mnt/seld
and replace " /dev/sd??" with the real location gotten from "fdisk -l
but you should already know the partition for the root directory , from the install .
it is likely " sda2 "
 
Old 03-31-2013, 12:03 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,559
Blog Entries: 2

Rep: Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034
There is no need to use the chroot command just to rename a file. If you have mounted the /-partition to a directory just change to that directory (using the command-line or a filemanager), then navigate to the place under that directory where you renamed the file and give it its original name.
 
1 members found this post helpful.
Old 03-31-2013, 12:49 PM   #10
bigmatt267
LQ Newbie
 
Registered: Apr 2009
Distribution: SUSE, BT5, Mint 12/13
Posts: 12

Original Poster
Rep: Reputation: 0
ok, lol, should have realized that i was to navigate to the /mnt/sels and rename the file
Code:
cd mnt/sels
ls
cd lib
ls
mv libnsl.so.1.bak libnsl.so.1
WHEW! Thanks so much! It worked. I will keep this CD handy! When can I add rep/thanks? 10 posts?
John and Tobi, you both saved me alot of time and trouble!
Thanks again.
Matt
 
Old 03-31-2013, 01:57 PM   #11
John VV
Guru
 
Registered: Aug 2005
Posts: 12,833

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
SystemRescueCD and the current Knoppix live cd are two very handy disks to have around

the knoppix cd will auto mount every partition with a link on the desktop ( very handy for normal everyday "oops's" )
http://www.knopper.net/knoppix/index-en.html

and SystemRescueCD is VERY handy if you royally mess something up and need to fix it ( and everyday "oops's" )
 
1 members found this post helpful.
Old 03-31-2013, 02:49 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,559
Blog Entries: 2

Rep: Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034Reputation: 4034
Quote:
Originally Posted by bigmatt267 View Post
When can I add rep/thanks?
The "Helpful Post" link should already work for you (and will automatically add a reputation point), for using the scale icon to give rep you have to have earned rep yourself first, if I am not mistaken.
 
1 members found this post helpful.
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get Linux Mint 11 to save open applications when I shut down? LinusStallman Linux - Software 5 06-01-2011 03:03 AM
not to save session after restart/shut down laucian Suse/Novell 2 04-17-2008 08:59 AM
Suse 10.2: wlan0 keeps getting renamed eth0 xbennyboy Suse/Novell 2 12-24-2006 01:52 PM
how to bootup with a renamed save-session instead of the default "pup_save.3fs" ?? alred Puppy 2 10-22-2006 12:06 PM
Suse Linux 9.1 and Laptop shut down worry SoulPioneer Linux - Newbie 3 08-24-2004 10:27 PM


All times are GMT -5. The time now is 03:50 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 Google+: linuxquestions
Open Source Consulting | Domain Registration