Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-04-2010, 04:12 AM
|
#1
|
|
Senior Member
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.0 (multi-lib)
Posts: 1,319
Rep: 
|
Boot error message (mkinitrd_command_generator.sh)
Quote:
|
You may need to create an initrd (Read /boot/README.initrd) or you can try the script "/usr/share/mkinitrd/mkinitrd_command_generator.sh" to help create one.
|
This didn't work for me, and I usually have no problems making an initrd.gz and running the generic kernel it failed with the following error
Quote:
mounting /dev/sda1 on /mnt failed
ERROR: no /sbin/init found on rootdev
|
samac
|
|
|
|
03-04-2010, 05:11 AM
|
#2
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,685
Rep: 
|
Quote:
Originally Posted by samac
This didn't work for me, and I usually have no problems making an initrd.gz and running the generic kernel it failed with the following error
samac
|
Samac, why did mkinitrd_command_generator.sh not work for you? I want this script to function in all cases if possible. If you have any error output and PC configuration details, I'd appreciate it.
Eric
|
|
|
|
03-04-2010, 07:50 AM
|
#3
|
|
Senior Member
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.0 (multi-lib)
Posts: 1,319
Original Poster
Rep: 
|
Hi Eric Output follows:
Quote:
samac@quad:~$ su
Password:
root@quad:/home/samac# /usr/share/mkinitrd/mkinitrd_command_generator.sh
#
# mkinitrd_command_generator.sh revision 1.40
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:
mkinitrd -c -k 2.6.33 -f ext4 -r /dev/sda1 -m ext4 -o /boot/initrd.gz
root@quad:/home/samac#
|
Quote:
root@quad:/home/samac# uname -a
Linux quad 2.6.33 #1 SMP Wed Mar 3 21:51:23 GMT 2010 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz GenuineIntel GNU/Linux
root@quad:/home/samac#
|
Quote:
root@quad:/home/samac# cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sda
compact
lba32
# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255
# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt
# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
default = Linux
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 20
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda1
label = Linux
read-only
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-2.6.33
root = /dev/sda1
initrd = /boot/initrd.gz
label = Slackware64
read-only
# Linux bootable partition config ends
root@quad:/home/samac#
|
Not sure how to get the boot error message as I have to reboot the machine but the post above gives the general idea. How much detail do you need on the hardware or in uname -a enough?
samac
|
|
|
|
03-04-2010, 08:05 AM
|
#4
|
|
Senior Member
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Rep: 
|
nevermind
Last edited by damgar; 03-04-2010 at 08:12 AM.
|
|
|
|
03-04-2010, 08:15 AM
|
#5
|
|
Senior Member
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.0 (multi-lib)
Posts: 1,319
Original Poster
Rep: 
|
There is nothing in /var/log/syslog, as I suspected, because it does not boot passed the initrd.gz into the system on the disk, but thanks for the idea.
samac
|
|
|
|
03-04-2010, 08:28 AM
|
#6
|
|
Senior Member
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Rep: 
|
Yeah I realized that was going to happen as soon as I hit submit.
|
|
|
|
03-04-2010, 09:44 AM
|
#7
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,685
Rep: 
|
Quote:
Originally Posted by samac
Not sure how to get the boot error message as I have to reboot the machine but the post above gives the general idea. How much detail do you need on the hardware or in uname -a enough?
samac
|
No need for the exact boot error message I think; what you posted was OK.
When the tool suggests this line:
Code:
mkinitrd -c -k 2.6.33 -f ext4 -r /dev/sda1 -m ext4 -o /boot/initrd.gz
was that what you would have used as well?
And did you actually run this command to create the initrd.gz (not thinking you're dumb, just have to ask this to be very sure) and then run lilo? Because your system setup really does not look all that exotic and the command should have produced a working initrd/
Eric
|
|
|
|
03-04-2010, 09:57 AM
|
#8
|
|
Senior Member
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.0 (multi-lib)
Posts: 1,319
Original Poster
Rep: 
|
I tried my usual first
Code:
mkinitrd -c -k 2.6.33 -m ext4 -f ext4 -r /dev/sda1
which I cut and modified from the initrd.readme in /boot ie. mkinitrd -c -k 2.6.32.3 -m ext4 -f ext4 -r /dev/sdb3. I then used your script /usr/share/mkinitrd/mkinitrd_command_generator.sh and it returned
Quote:
|
mkinitrd -c -k 2.6.33 -f ext4 -r /dev/sda1 -m ext4 -o /boot/initrd.gz
|
lilo was re-run in both cases and exited without error.
The only thing that was different from normal was running this list of commands to get my Nvidia driver working. http://www.linuxquestions.org/questi...ml#post3884572
samac
Last edited by samac; 03-04-2010 at 09:58 AM.
|
|
|
|
03-04-2010, 10:00 AM
|
#9
|
|
Senior Member
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.0 (multi-lib)
Posts: 1,319
Original Poster
Rep: 
|
I was also missing a working 32-bit extensions because libuuid had been moved from e2fsprogs to util-linux-ng and I had to create a new compat32 version.
samac
|
|
|
|
03-04-2010, 11:40 AM
|
#10
|
|
Senior Member
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.0 (multi-lib)
Posts: 1,319
Original Poster
Rep: 
|
It leaves me at a busy box prompt asking if I want to fix it, entering exit brings up more errors and a strace.
|
|
|
|
03-04-2010, 04:15 PM
|
#11
|
|
Member
Registered: Oct 2005
Location: France
Distribution: Slackware 14.0
Posts: 662
Rep:
|
Hello,
FYI, mkinitrd worked for me on Slackware -current 32-bits and LVM partition:
Code:
cd /boot
mkinitrd -c -k 2.6.33-smp -m ext4 -f ext4 -r /dev/vg/root -L
lilo
|
|
|
|
03-05-2010, 01:47 AM
|
#12
|
|
Senior Member
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.0 (multi-lib)
Posts: 1,319
Original Poster
Rep: 
|
Apologies. I have asked a moderator to split out the non-relevant bits.
samac
|
|
|
|
03-05-2010, 01:27 PM
|
#13
|
|
Senior Member
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.0 (multi-lib)
Posts: 1,319
Original Poster
Rep: 
|
Eric
I have fixed the problem by re-installing the kernel packages. It is strange that it did not work before, as it was a fresh install. Maybe this
Quote:
|
cp /boot/config-huge-2.6.33 /usr/src/linux-2.6.33/.config && cd /usr/src/linux-2.6.33 && make && make modules_install && cp arch/x86_64/boot/bzImage /boot/vmlinuz && lilo && echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf && telinit 6
|
caused the problem.
samac
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:39 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|