LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 10-02-2005, 12:41 PM   #1
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Rep: Reputation: 45
No init found


Hello all!

Today I installed Slack 10.2 a few times. Two of those I finished the install successfully and rebooted.

Things moved just fine until ...

"kermel panic: no init found"

So, still no working slack install.

Where do errors like this come from? I installed lilo into MBR (does that have anything to do with anything?).
 
Old 10-02-2005, 12:55 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Are you sure your lilo configuration is all right? This kind of error usually mean the system can't find his root / on boot, so can't start init. If you know what your root partition is, you should be able to boot into it giving the following option to your lilo prompt :
Code:
linux init=/dev/hdXY
(where "linux" is the label of your linux partition in the boot loader screen, and /dev/hdXY your hard drive and partition number, as example, hda5
 
Old 10-02-2005, 05:46 PM   #3
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Well, since I was unable to boot I haven't been able to check the config. Or should that be possible already as lilo comes up?

hda1 = 80M as /boot
hda2 = 1G as /
hdb1 = 2G as /
hdc1 = 420M as Swap
hdd as CDROM

hdb1 is the one I chose as / first during format, does that matter?

Is my problem that the config is on the wrong device?
 
Old 10-02-2005, 06:25 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Did you by any chance selected 2.6 kernel? If you did, and my memory doesn't fail, you'll have to enable rc.udev on the harddisk after installing.
 
Old 10-02-2005, 06:31 PM   #5
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
I did a vanilla install. No specific choice to favour 2.6.

I am not close to the computer now, but I will make sure to look tomorrow.
 
Old 10-02-2005, 07:04 PM   #6
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Quote:
hda2 = 1G as /
hdb1 = 2G as /
You have 2 root ??? How is this possible? Did you installed settings this? That would actually explain why it fails to boot, if you installed on /dev/hdb2, it probably try to use hda2 as the root (because it come first) and then fails because it doesn't contain your system.

Why do you want 2 root ?
 
Old 10-02-2005, 07:08 PM   #7
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Because I constantly run out of space.
 
Old 10-02-2005, 07:11 PM   #8
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
...and guess why it fails to boot?
You _can't_ have 2 /. If you want to add a partition to your system, mount it to a directory not OVER your root directoey. It's like trying to have 2 C: in windoze... it will never work, you have to use a different letter? In Linux, you have to use a different directory.

[edit]
in the mean time, boot back into your system giving your lilo the option "root=/dev/hdb1" (this is the "real" root, right?) and delete (or change) the line about the other root in /etc/fstab. It should do it.

Last edited by Half_Elf; 10-02-2005 at 07:13 PM.
 
Old 10-02-2005, 07:39 PM   #9
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Hence my previous question when I listed my partition table.

Actually, I can have two /, it was easy. The fact that it doesn't work is really rather annoying.

I think I have been adviced expanding diskspace by adding partitions in fstab, for example to /usr or /home. But I won't bet my head on it.

I have pealed off Tcl, Tex, KDE, kernel sources (which I need) and most windowmanagers, and a shedload of other details to get Slack to fit. Guess why I have had to try installing it a plethora of times. I hit the roof every time. A major reason to the thread about "installer suggestions".

Slack needs space if I want X and development. When and how do I add space to my install, I am desperate to know.

Is there no data on hda2 as I am supposed to be able to drop it from fstab? Remeber, I haven't been able to get in to check.

Yes hdb1 is the partition I chose after coming out of addswap as /.
 
Old 10-03-2005, 12:03 AM   #10
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Assuming you installed your system over /dev/hdb1, there is most likely nothing in /dev/hda2. If you want space, well... choose a massive (in the term of space) directory, like /usr and move (litterally MOVE, using the "mv" command, just mount the other partition somewhere and move your dir) it to the other drive/partition. Then tell your fstab to mount this partition as "how the directory was named before the move", as example, "/usr". On one of my system, / is on a drive, /usr on another drive, and /usr/local on the first drive, side by side with /, so there is nothing impossible.

Quote:
I think I have been adviced expanding diskspace by adding partitions in fstab, for example to /usr or /home. But I won't bet my head on it.
Yes, it'sthe way to do it. You can probably have 2 / (in the sense nothing is impossible in linux world if you are ready to make enought effort on it... wanna code a patch for the kernel, maybe?), but you probably don't want to try it... just use another directory
 
Old 10-03-2005, 12:59 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
No you cant have two /'s. You can't mount two partitions on the same mount point.
unionfs provides a work-around, or you could LVM to expand /.

One thing to keep in mind is that most of the installation resides under /usr (and /opt if KDE is installed). If you put /opt and /usr on separate partitions, you only need 100MB for your / partition!
If you are running out of room, give yourself extra space for these mount points.
I have complete, friendly desktop that uses under 256MB!
 
Old 10-03-2005, 06:20 AM   #12
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
If my memory serves me right, I tried a slim install with / on the 1G and /usr on the 2G partition. Since I still don't have a good working system, I believe it failed. How I don't know, I must have repressed it.

I will try again later today.


Out of curiosity, when during the install comes the time to configure LVM such that I can use one larger area? It is not something I really want to do, but it could be good to know.
 
Old 10-03-2005, 07:18 AM   #13
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Quote:
Originally posted by Wed
Well, since I was unable to boot I haven't been able to check the config. Or should that be possible already as lilo comes up?

hda1 = 80M as /boot
hda2 = 1G as /
hdb1 = 2G as /
hdc1 = 420M as Swap
hdd as CDROM

hdb1 is the one I chose as / first during format, does that matter?

Is my problem that the config is on the wrong device?
Pay attention this time................YOU CANNOT HAVE 2 "/" PARTITIONS!!!
3 people have told you this...........what part do you NOT understand??
 
Old 10-03-2005, 07:32 AM   #14
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 249

Original Poster
Rep: Reputation: 45
Please do note this!

It is not my intention having two /! It is my intention to have space enough for a working install.

I have not been by the computer since I asked, I have not yet rectified the problem. I will later today.

I DO have two / at the moment, whether or not I can!

I have answered questions with what I have done so far!

How hard is that to understand? Kindly point me to where I have lead aneyone to misunderstand this!


Added: I have read and understood the answers given. I WILL take actions accordingly.

Last edited by Wed; 10-03-2005 at 07:37 AM.
 
  


Reply



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
Kernel Panic No init found. Try passing init..... Adrian Baker Mandriva 2 02-28-2005 11:47 AM
Kernal Panic: No init found. Try passing init= option to kernel raees Linux - General 12 03-18-2004 11:10 PM
error: No init found. Try passing the init= option to the Kernel neylitalo Linux - Laptop and Netbook 3 01-22-2004 09:34 PM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 10:18 PM
Compiled own kernel and got: Kernel panic: No init found. Try passing init= option to fbl Linux - General 12 01-14-2003 03:38 AM

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

All times are GMT -5. The time now is 12:20 PM.

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