LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
  Search this Thread
Old 03-22-2005, 08:55 AM   #1
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
minimal install only /a dir. "cannot execute rc.S"


hi there,

in short here's what i did:
-made a 2 gig. partition with ext3 filesystem.
-mounted it under /diskhome
-did a " installpkg -root /diskhome *.tgz " in the /a dir of the slack-10.1 cd1
-copied (to /diskhome/etc/ ) & modified fstab
-copied the moduletree from the kernel i use to /diskhome/lib/modules
( i'm using my working 2.6.11.5 kernel )

the errors at boot are :

-cannot execute /bin/rc.d/rc.S
-cannot execute /bin/rc.d/rc.M
-cannot execute /sbin/agetty
( the last one several times )
then i stops with " no more processes for this runlevel " ( the runlevel is set to 3 as allways )
all of the scrips/binaries are existing with the right permissions.
also /bin/bash ant the link /bin/sh exist.

Q: am i missing something that should be installed along with the /a dir to get it started ?

any suggestion welcome....

egag
 
Old 03-22-2005, 09:17 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Did you set the right root= parameter on lilo.conf?
 
Old 03-22-2005, 09:49 AM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Original Poster
Rep: Reputation: 53
sorry, i should have mentioned that:

-----------
# Linux bootable partition config begins
image = /boot/vmlinuz-2.6.11.5
root = /dev/hdb8
label = minitest
append="pci=usepirqmask"
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz-2.6.11.5
root = /dev/hdb2
label = Linux-2.6.11.5
append="pci=usepirqmask"
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
----------------

hdb2 is what i use now, hdb8 is the minisetup ( i checked again ).
but your Q makes me think that the prob is not that some package is missing
but it cannot find the whole partition..........
hmmmm.....and it's just ext3 fs. and it wasn't a kernel panic

and lilo installed without errors

and the linux i'm using now i installed also this way, exept then i installed everything.
and i thought the /a packages are sufficient to get to a console.

egag
 
Old 03-22-2005, 10:24 AM   #4
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
You need glibc from the /l directory.
 
Old 03-22-2005, 10:27 AM   #5
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
Did the same thing myself and it stalled at init too. When I added glibc with required /a packages everything booted up fine.
 
Old 03-22-2005, 10:56 AM   #6
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
oh for fun you might trying passing the init -b option to the kernel, which tells it to boot into a single user shell without running any other startup scripts. curious if it would work?
 
Old 03-22-2005, 11:46 AM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Original Poster
Rep: Reputation: 53
thanks but that didn't work.
i installed all of the /l dir. and still the same error.

also starting with " init 1 " didn't work.
rc.S still needs to be executed.

if i hit ctl-alt-del i get a message : respawning too fast.......cannot exec...etc.

any ideas...?

egag
 
Old 03-22-2005, 12:08 PM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Original Poster
Rep: Reputation: 53
also....when i try to chroot to it in a console i get :

root@Slack21:/home/egag# chroot /diskhome/
chroot: cannot run command `/bin/sh': No such file or directory
root@Slack21:/home/egag# ls -l /diskhome/bin/sh
lrwxrwxrwx 1 root root 4 2005-03-22 13:56 /diskhome/bin/sh -> bash
root@Slack21:/home/egag# ls -l /diskhome/bin/bash
-rwxr-xr-x 1 root bin 666452 2004-11-03 23:30 /diskhome/bin/bash

i just don't understand......

egag
 
Old 03-22-2005, 12:18 PM   #9
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
strange I had the exact same problem and i did a reinstall with required /a and glibc and it boots, but when I just added glibc after the fact it didn't? I'm really curious why that is. I had the exact same thing. If you try to do a fresh install of /a and glibc at the same time I bet it will work. I have no idea why. It doesn't seem like that should possible make a difference but it does. Perhaps it something done in the setup script?
 
Old 03-22-2005, 12:26 PM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I would think it is a glibc problem, I had the same issue (agetty, rc.*) one time from a
failed glibc upgrade, I fixed that with :
boot from slackware CD 2, mount the / partition in /mnt/hd
then :
cp /lib/libc.so.6 /mnt/hd/lib
cp /lib/libc-x.x.x.so /mnt/hd/lib

After that it booted fine and I re-did the glibc upgrade

I had not workable system though that's why I booted from CD...
 
Old 03-22-2005, 12:33 PM   #11
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
The problem is most likely missing library files, as suggested. I set up a simple test where I installed all the packages from the "a" directory to /test, in the same manner as you did. I then tried to "chroot" into that and got the following:
Code:
root@corvette:~# chroot /test
chroot: cannot run command `/bin/bash': No such file or directory
Turns out the following libraries were missing:
Code:
/lib/libdl.so.2
/lib/libc.so.6
/lib/ld-linux.so.2
None of them are listed in the MANIFEST, so I'm not sure which slackware package/s they are in, but you'd need to find them or copy them off your current system (since you're using the same version that will work), it should then boot. There may be other libraries missing as well, use "ldd" to see what libs a binary is linked against. I didn't boot to it, though, just ran "chroot /test" to change into it.
 
Old 03-22-2005, 12:40 PM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Also look at gnashley link
http://home.earthlink.net/~gnashley/...ix8_1howto.htm
Quote:
this page describes how to create a fully functional SLACKWARE installation in as little as 40MB!
 
Old 03-22-2005, 12:58 PM   #13
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Original Poster
Rep: Reputation: 53
success......!

found out not all installscripts did run ok
so the symlinks ( DaHammer ) were not made...

also i bookmarked the link to gnashley 's howto.
gonna read it tomorrow.

right now i can chroot to there and use it.
( i cannot reboot right now cuz i need the pc. , but that will work also i guess )

thanks all for the help.

egag
 
Old 03-22-2005, 01:05 PM   #14
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Ahh, didn't even think about the lib symlinks, I just hard copied the files. So there is a problem with the install script in glibc-solibs-2.3.4-i486-1.tgz.
 
Old 03-22-2005, 03:13 PM   #15
cavalier
Member
 
Registered: Feb 2005
Location: Denver, CO
Distribution: Slack 12, tweaked just so (though I'm also a fan of Ubuntu)
Posts: 198
Blog Entries: 1

Rep: Reputation: 30
Am I the only one that's curious? 14 posts, and nobody asked "why" you would do this. Enlighten me, because I'm having a hard time figuring out why I'd ever want to do this.
 
  


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
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 12:49 PM
"cannot execute binary file" when install j2sdk jin007 Linux - Software 3 06-27-2005 02:05 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM
Kdevelop: Changing my programs default "make install" dir DeTHZiT Programming 0 09-26-2004 01:06 PM
does failed using urpmi messed up my "Install Software" / "mandrake update" ??? sirpelidor Mandriva 1 11-02-2003 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration