Author Topic: Need help with linux :(  (Read 1150 times)

leji

  • Hydlaa Citizen
  • *
  • Posts: 305
    • View Profile
Need help with linux :(
« on: April 04, 2005, 03:59:46 pm »
I\'m trying to recover a linux system from a liveCD but I need to chroot to the local system, the problem is that chroot says it cant find the file I\'m trying to execute though it\'s in the right place, any ideas ?
there\'s no place like 203.81.47.91

John_Thazer

  • Hydlaa Notable
  • *
  • Posts: 590
  • From the ivory tower, I gaze upon thee
    • View Profile
    • Chaotic Warriors
(No subject)
« Reply #1 on: April 05, 2005, 01:05:52 am »
Try tech support forums...:D


You can try, but you shall fail! Seek us not, we shall find you.

lordmyth

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #2 on: April 05, 2005, 07:16:40 am »
Hello! Are you trying to install gentoo? Then maybe I could be of help, because today, the 8th time I tried installing it, it worked!

leji

  • Hydlaa Citizen
  • *
  • Posts: 305
    • View Profile
(No subject)
« Reply #3 on: April 05, 2005, 01:40:06 pm »
Tech supports guys said they had no idea...
it\'s not a problem with install, I\'m trying to restore the system, I need to emerge glibc to do so, and as I cant boot normally, I boot from a liveCD and try to chroot to emerge from the local system but ... chroot wont work ...
I guess i\'ll just erase everything and reinstall in the end ...
there\'s no place like 203.81.47.91

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #4 on: April 05, 2005, 03:12:58 pm »
Boot from the live CD and chroot into your Linux partition after you mounted it.
For example, if your linux installation is on the harddisk on the primary ide channel as partition #1, do the following:
mkdir /mnt/localdisc
mount -t auto /dev/hda1 /mnt/localdisc
chroot /mnt/localdisc

If you know the filesystem type, replace the auto parameter of mount with reiserfs, ext2, etc.

That should work.


Back to Planeshift again \\o/

leji

  • Hydlaa Citizen
  • *
  • Posts: 305
    • View Profile
(No subject)
« Reply #5 on: April 05, 2005, 04:25:58 pm »
That\'s what I did BUT chroot says \'/bin/sh no such file or directory\' though sh or bash are there with proper access rights

edit : I did mount proc
« Last Edit: April 06, 2005, 10:47:08 am by leji »
there\'s no place like 203.81.47.91

Platyna

  • Hydlaa Notable
  • *
  • Posts: 556
    • View Profile
(No subject)
« Reply #6 on: April 05, 2005, 04:33:33 pm »
When I hard problem with broken glibc on one server I took second
Slackware CD, booted from it, mounted old root dir connected to the
Internet, from Slackware FTP downloaded glibc package, unpacked it,
copied manually libs to approriate locations, then edited the script from
the package that does proper symlinks, rebooted and it worked.  It was RH,
so I think on gentoo it should work too if you\'ll get proper glibc version.

Regards.
« Last Edit: April 05, 2005, 04:35:03 pm by Platyna »
Zuzanna K. Filutowska
RPG Players Community || Platyna\'s Planeshift Warehouse
\"The only thing necessary for evil to triumph is for good men to do nothing.\" -- Edward Burke

lynx_lupo

  • Veteran
  • *
  • Posts: 1431
  • Sorbus aria!
    • View Profile
    • Linux pri nas
(No subject)
« Reply #7 on: April 05, 2005, 05:56:25 pm »
You can specify the PATH as a chroot parameter; try it.
And locate/find sh. If it\'s not there, just make a symlink from bash to it.
"Amor sceleratus habendi"- Ovid
"First they ignore you, then they laugh at you, then they fight you, then you eat them." -Godzilla

dorbian

  • Hydlaa Notable
  • *
  • Posts: 684
  • Yeah no not for me that is...
    • View Profile
    • Mindless Insanity
(No subject)
« Reply #8 on: April 05, 2005, 11:46:03 pm »
don\'t you have to mount proc  also ???

Tharizdun

  • Hydlaa Resident
  • *
  • Posts: 168
    • View Profile
(No subject)
« Reply #9 on: April 08, 2005, 03:00:56 pm »
I revived a RedHat 4.0 box yesterday via a chroot from a current Gentoo live CD :) Its an amazingly useful thing, I had my doubts about how backward compatible it would be on a system based on a 2.0.x kernel, but sure enough it was fine. Even poor old lilo v19 worked ok.

If your glibc is busted ( like you have deleted libdl.so or libc.so or something ) a whole bunch of stuff that expects to pull in dynamic libraries at execution will fail to run, only static-linked applications will run properly. /bin/sh is usually statically linked, given how important it is to be working properly.

Getting back to glibc, you might find it necessary to untar a binary build of glibc from /, or doing it the gentoo way, you might try using a binary package rather than compiling from an ebuild. Run \'emerge --buildpkg pkgname\' from a viable system, copy the .tbz2 package file over to the sick box and install it via \'emerge package.tbz2\'

leji

  • Hydlaa Citizen
  • *
  • Posts: 305
    • View Profile
(No subject)
« Reply #10 on: April 12, 2005, 06:45:20 pm »
Well I tried all that, came up with a nearly working system but with lots of problems with gcc so, I threw my comp by the window and reinstalled completely the system...

That\'s all folks !
there\'s no place like 203.81.47.91

fken

  • Hydlaa Notable
  • *
  • Posts: 816
    • View Profile
(No subject)
« Reply #11 on: April 12, 2005, 07:41:15 pm »
http://www.graoulug.org/informations/news_show.php

as you are french leji you would be able to understand... I think they have the solution... just ask them