LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-01-2008, 03:12 AM   #1
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Rep: Reputation: 45
Question to boot Slackware 12.1 can I install grub


I have a fresh install of Slackware 12.1 and during install I choose not to put in the lilo boot loader, and did not see a option for grub. So can I just install a full grub to boot it and not use lilo ? I have it installed on a external eSATA hard drive, and I multi-boot with windows XP and several other Linux using one main grub boot menu.lst located on the internal drive. How about the Super Grub disk to do this, thanks.
 
Old 11-01-2008, 03:32 AM   #2
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Here is a full tutorial on grub
http://www.dedoimedo.com/computers/grub.html

Quote:
Originally Posted by james2b;3328022disk

and I multi-boot with windows XP and several other Linux using one main grub boot menu.lst located on the internal drive.
I have never really worked with grub. However you said you multi-boot with several different Linux distros.
Any way you will need to boot into one of those distros and update the grub menu to include Slackware. the tutorial I gave a link to gives a very good description. I recommend following that since I have very little exp with grub. I was at first going to attempt to say then I changed my mind, because I like I said have little exp. I hope that helps.





Side note:

Any way it does not matter it looks like there is tons of stuff on the net. I came across some one who had the exact same question here is that link.

http://www.unix.com/unix-dummies-que...stro-grub.html

Last edited by khronosschoty; 11-01-2008 at 03:33 AM.
 
Old 11-01-2008, 03:41 AM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
If you already have other Linux installations and Grub installed, then just don't install a bootloader. You will need to add your boot entries to the existing boot/grub/menu.lst file - that is all. To do that you will need to boot to an existing Linux installation, then mount the other Linux partition and look at what the names of the initramfs and kernel files are (and also the name of the partition).
 
Old 11-01-2008, 03:49 AM   #4
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Original Poster
Rep: Reputation: 45
Allright then, but when I looked in the Slackware /boot folder (from using one of my other Linux), it only has a vmlinuz kernel, but not that other initrd.img file, so do I need both to boot it by adding this into my main grub menu file?
 
Old 11-01-2008, 04:09 AM   #5
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by james2b View Post
Allright then, but when I looked in the Slackware /boot folder (from using one of my other Linux), it only has a vmlinuz kernel, but not that other initrd.img file, so do I need both to boot it by adding this into my main grub menu file?
No you may not have a " initrd.img" it depends on what kernel you chose to use. The default kernel, in so far as I know,
does ---> not <--- come with a " initrd.img". The vmlinuz is all you should need.

Last edited by khronosschoty; 11-01-2008 at 04:18 AM.
 
Old 11-01-2008, 04:34 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Slackware is one of the easiest Linux to boot because it doesn't use initrd.

If it is in the say 2nd partition of your 3rd disk then it will be known to Grub as (hd1,2), as Grub counts from zero, and sdc3 in Linux then it can be fired up in your existing Grub menu.lst by these lines
Code:
title Slackware in (hd1,2)
root (hd1,2)
kernel /boot/vmlinuz ro root=/dev/sdc3
You can check its whereabout in root console with any Linux by
Code:
fdisk -l
grub
geometry (hd0)
geometry (hd1)
geometry (hd2)
quit
Adjust the partition or device name to suit your case.
 
Old 11-01-2008, 04:41 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by saikee View Post
Slackware is one of the easiest Linux to boot because it doesn't use initrd.
That's if you're using the huge kernel. If you're using the generic kernel, I believe you'll need to use an initrd containing at least the module for your root partition's filesystem (certainly if you're using ext3, this is the case).
 
Old 11-01-2008, 05:04 AM   #8
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Original Poster
Rep: Reputation: 45
There are 4 vmlinuz kernels to choose from in the /boot folder, so I did try the vmlinuz-generic-2.6.24.5 with the correct root, ( added this to my main grub menu.lst in Ubuntu), and it booted to this error; No file system could mount root, tried: romfs, and this line also; Kernel panic-not syncing: VFS: unable to mount root fs on unknown block (8,2) , which locked up the PC, and had to press the power button.
 
Old 11-01-2008, 05:07 AM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
As I stated above, you need an initrd to use the generic kernel. Read the README.initrd file in /boot for more information.
 
Old 11-01-2008, 06:33 AM   #10
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by james2b View Post
There are 4 vmlinuz kernels to choose from in the /boot folder, so I did try the vmlinuz-generic-2.6.24.5 with the correct root, ( added this to my main grub menu.lst in Ubuntu), and it booted to this error; No file system could mount root, tried: romfs, and this line also; Kernel panic-not syncing: VFS: unable to mount root fs on unknown block (8,2) , which locked up the PC, and had to press the power button.
by default Slackware will install all the kernels. That is if you choose install everything. So ether you need to create a "initrd.img" or you need to boot from (use) the "kernel-huge-smp". My guess is that Slackware is set to use the "kernel-huge-smp" or you have not progressed far enough to set up a initrd If you want to use a different kernel then the "kernel-huge-smp" Then you need to set up a "initrd" in that case this may prove useful. http://slackware.osuosl.org/slackware/README.initrd it is a how to written by Patrick Volkerding
 
Old 11-01-2008, 06:42 AM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Get this script:
http://www.slackware.com/~alien/tool...d_generator.sh
if you want to use the generic kernel. Run it and it will show you the correct command to run to build an initrd.
 
Old 11-01-2008, 06:57 AM   #12
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Code:
excerpt from 'CHANGES_AND_HINTS.TXT';
As stated earlier, it is recommended that you use one of the generic kernels
  rather than the huge kernels; the huge kernels are primarily intended as 
  "installer" and "emergency" kernels in case you forget to make an initrd.
  For most systems, you should use the generic SMP kernel if it will run, 
  even if your system is not SMP-capable.  Some newer hardware needs the 
  local APIC enabled in the SMP kernel, and theoretically there should not be
  a performance penalty with using the SMP-capable kernel on a uniprocessor 
  machine, as the SMP kernel tests for this and makes necessary adjustments.
  Furthermore, the kernel sources shipped with Slackware are configured for
  SMP usage, so you won't have to modify those to build external modules
  (such as NVidia or ATI proprietary drivers) if you use the SMP kernel.

  If you decide to use one of the non-SMP kernels, you will need to follow the
  instructions in /extra/linux-2.6.24.5-nosmp-sdk/README.TXT to modify your
  kernel sources for non-SMP usage.  Note that this only applies if you are
  using the Slackware-provided non-SMP kernel - if you build a custom kernel,
  the symlinks at /lib/modules/$(uname -r)/{build,source} will point to the
  correct kernel source so long as you don't (re)move it.
I would suggest that you read the documentation that PV and Team have provided; Announce 12.1, Slackware-Howto, CHANGES_AND_HINTS.TXT, UPGRADE.TXT. Plus the other text files relevant to your needs.
 
Old 11-01-2008, 11:54 PM   #13
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Original Poster
Rep: Reputation: 45
Thumbs up it boots now

I changed to the vmlinuz-huge-smp kernel and with; root=/dev/sda5 in my main grub boot loader menu file, and it did boot up fine. Except it boots to only run level 3, text mode, so how do I enable automatic GUI boot? And the only user available was root, so during the install I don't think it asks to create a standard user, so how can I add a new user ?thanks
 
Old 11-02-2008, 12:27 AM   #14
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
so how do I enable automatic GUI boot? And the only user available was root, so during the install I don't think it asks to create a standard user, so how can I add a new user ?
Perhaps the following will help:

Configuring Slackware for a GUI Startup - Part I
Configuring Slackware for a GUI Startup - Part II
Configuring Slackware for a GUI and a Command Line Startup
Adding User Accounts
 
  


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
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 04:34 AM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 01:06 PM
use suse/grub to boot slackware ? muddywaters SUSE / openSUSE 2 08-18-2005 01:10 PM
grub can not boot slackware? shanenin Linux - Software 5 11-28-2003 04:46 PM
How to boot Slackware 9 (install) with Grub ? piraxter Slackware 1 03-24-2003 11:55 AM

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

All times are GMT -5. The time now is 08:18 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