LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-15-2009, 03:15 PM   #1
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Can't boot from /boot/grub/menu.lst entry for SW13


I installed(full)SW13 to /dev/hdb6 (aka/dev/sdb6) the 2nd (sata) disk on my pc. lilo was put in root partition and I'm trying to edit Ubuntu's grub/menu.lst to boot SW13. Trying chainloader method asks for kernel.
Trying Title SW13 (on/dev/hdb6 or /dev/sdb6) then root (hd1,5) and kernel /boot/vmlinuz-generic-smp-2.6.29 root=/dev/hdb6 (or /dev/sdb6) ro
then initrd (hd1,5)/boot/initrd.img give me file not found error. I'm assuming the full install includes the initrd image. Did I miss something? The installer did not ask if I wanted to do a mkinitrd. Thanx.
 
Old 09-15-2009, 03:45 PM   #2
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 719
Blog Entries: 3

Rep: Reputation: 76
Quote:
Originally Posted by lestoil View Post
Trying Title SW13 (on/dev/hdb6 or /dev/sdb6) then root (hd1,5) and kernel /boot/vmlinuz-generic-smp-2.6.29 root=/dev/hdb6 (or /dev/sdb6) ro
then initrd (hd1,5)/boot/initrd.img give me file not found error.
First, the kernel name will be:

Code:
vmlinuz-generic-smp-2.6.29.6-smp
Second, you need to create a initrd.gz image file with the generic kernel. This is explained in CHANGES_AND_HINTS.TXT available at the root directory of the installation media (DVD or CD):

Quote:
Use one of the provided generic kernels for daily use. Do not report
bugs until/unless you have reproduced them using one of the stock
generic kernels. You will need to create an initrd in order to boot
the generic kernels - see /boot/README.initrd for instructions.
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.
Refer to README.initrd for instructions on how to do it.
 
Old 09-15-2009, 03:48 PM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,923
Blog Entries: 51

Rep: Reputation: Disabled
Run this as root in the terminal:
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
It will give you a suitable command to run to create an initrd.
 
Old 09-15-2009, 04:08 PM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,923
Blog Entries: 51

Rep: Reputation: Disabled
Oh, then add a line to the entry for the generic kernel in your menu.list.
initrd /boot/initrd.gz
 
Old 09-15-2009, 04:11 PM   #5
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Original Poster
Rep: Reputation: 31
So If I boot the install cd I login as root, cd to /boot and run command mkinitrd -c -k generic-smp-2.6.29.6-smp -m mbcache:jbd:ext3 -f ext3 -r /dev/hdb6 for ext3 root partition? Then edit /etc/lilo.conf to include initrd = /boot/initrd.gz and run # lilo. Then I can edit the /boot/grub/menu.lst in ubuntu and add SW13. Is that about it? This the 1st time trying the mkinitrd command in more than 8yrs of using linux. Thx for your patient response.
 
Old 09-15-2009, 04:34 PM   #6
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Original Poster
Rep: Reputation: 31
brianL running that /usr/share...generator.sh said could not find error when I booted default hugesmp.s kernel and logged in as root. Cd to /usr/share and ls -aF doesn't show any mkinitrd file. Should I boot with vmlinuz-generic-smp-2.6.29.6-smp kernel instead? Thx. And cd /boot didn't work to try the readme file way.

Last edited by lestoil; 09-15-2009 at 04:36 PM.
 
Old 09-15-2009, 04:36 PM   #7
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 719
Blog Entries: 3

Rep: Reputation: 76
The correct syntax would be:

Code:
mkinitrd -c -k generic-2.6.29.6-smp -m mbcache:jbd:ext3 -f ext3 -r /dev/hdb6
The kernel is 2.6.29.6-smp but for whatever reason, the vmlinuz file in /boot is named vmlinuz-generic-smp-2.6.29.6-smp
 
Old 09-15-2009, 05:19 PM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,923
Blog Entries: 51

Rep: Reputation: Disabled
Ah, I should have mentioned running this before running the mkinitrd_command_generator.sh:
Code:
chmod +x /usr/share/mkinitrd/mkinitrd_command_generator.sh
 
Old 09-15-2009, 05:20 PM   #9
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Original Poster
Rep: Reputation: 31
I tried booting huge kernel(default) then as root cd /boot doesn't work. # cd / ls -aF shows @boot no /boot. Tried /mnt /dev/hdd(install dvd) and it wont so I can do the readme.initrd installpkgs and mkinitrd..... steps. What am I missing here? I did do full install without error messages.
 
Old 09-15-2009, 05:46 PM   #10
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Original Poster
Rep: Reputation: 31
After # /mnt /dev/hdb6--it's been so long- I can cd /boot but mkinitrd step says something about missing candidate. Installpkg for kernel* kernel-modules and mkinitrd are no go too. # cd /usr/share has nothing about mkinitrd too. This has got to be simpler Thx.
 
Old 09-15-2009, 07:13 PM   #11
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 51
Have you tried to boot manually..?

from the grub prompt (you can enter this by pressing c after given menu by grub from e.g. Ubuntu)
Code:
grub> root (hd1,5)
press ENTER, if you are not sure check the drive with
Code:
grub> geometry (hd0)
or
Code:
grub> geometry (hd1)
you can also check it by press TAB after root ( and manually type option given by grub, then type

Code:
grub> kernel /boot/
press TAB to see available kernel..e.g. try vmlinuz and followed by root=/dev/sdb6 ro

your stanza will be:

Code:
 grub > kernel /boot/vmlinuz root=/dev/sdb6 ro
press ENTER to see whether the kernel is OK, if it is then since you do not need initrd.img when using huge kernel type

Code:
 grub > boot
to start booting slackware

or you can chainload if lilo installed in root /dev/sdb6

Code:
grub > root (hd1,5)
press ENTER

Code:
grub > chainloader +1
press ENTER

Code:
 grub > boot
press ENTER to boot slackware via lilo


HTH

PS: I have tried this one, for me i add 'rootdelay=10' option since I use USB HDD
 
Old 09-15-2009, 10:24 PM   #12
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
Is this an ext4 filesystem? If so grub can not boot an ext4 filesystem.
 
Old 09-16-2009, 12:12 AM   #13
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Original Poster
Rep: Reputation: 31
Thx for replies. Booting now(with default huge kernel) into SW13 using Ubuntu's /boot/grub/menu.lst entry of
Title Linux (on /dev/sdb6)
root (hd1,5)
chainloader +1
boot
and selecting SW from lilo menu. Can be marked as solved pls

Last edited by lestoil; 09-17-2009 at 03:42 PM.
 
Old 09-16-2009, 12:15 AM   #14
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
you can mark it using thread tools since you are OP.
 
Old 09-17-2009, 03:42 PM   #15
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Original Poster
Rep: Reputation: 31
done thx
 
  


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
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 02:19 AM
grub menu.lst Won't boot Windows XP tschima Solaris / OpenSolaris 2 07-23-2008 08:35 PM
Vista, XP Ubuntu Triple Boot. What's the XP Entry for menu.lst? TerabyteUK Linux - Software 3 07-12-2007 10:59 PM
Lost boot/grub/menu.lst MRDucks Linux - Newbie 12 12-17-2005 01:44 PM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM


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