LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Add slackware to grub.conf (https://www.linuxquestions.org/questions/slackware-14/add-slackware-to-grub-conf-873928/)

colorpurple21859 04-09-2011 11:15 PM

Thats good! You can try this at a command prompt as root to create a working /boot/initrd.gz
Quote:

mkinitrd -c "$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r)"
Then you should be able to use the generic kernel.

Breeze 04-09-2011 11:20 PM

Quote:

Originally Posted by colorpurple21859 (Post 4319631)
In most installs of Slackware /boot/vmlinuz is a link to the vmlinuz-huge-2.6.33.4 kernel which makes it easier to use instead of trying to remember what version of kernel to use.
The huge kernel has everthing installed into it so you do not have to use a initrd.gz file. however because of this, the huge kernel is larger therefore your system won't be as fast as it would be with the generic kernel. Until you get a correctly working initrd.gz you will have to boot your slackware with either /boot/vmlinuz or /boot/vmlinuz-huge-2.6.33.4. After booting into your slackware system with the huge kernel run the following to help with mkinitrd.

so for right now see if slackware will boot with this;

Thanks! That's work.
Quote:

#(/usr/share/mkinitrd/mkinitrd_command_generator.sh)
#mkinitrd -c -k 2.6.33.4 -f ext4 -r /dev/sda8 -m usbhid:ehci-hcd:uhci-hcd:jbd2:mbcache:ext4 -o /boot/initrd.gz
Now,I boot with this
Quote:

title Slackware
root (hd0,7)
kernel /boot/vmlinuz-generic-2.6.33.4 root=/dev/sda8 ro
initrd /boot/initrd.gz
Thanks,thanks everyone!

Breeze 04-09-2011 11:27 PM

Quote:

Originally Posted by colorpurple21859 (Post 4319641)
Thats good! You can try this at a command prompt as root to create a working /boot/initrd.gz

Then you should be able to use the generic kernel.

I created initrd.gz by
Quote:

mkinitrd -c -k 2.6.32.3 -m reiserfs
which said in
Quote:

/boot/README.initrd
.
Maybe that's not use to boot generic kernel. That's my fault.Thanks!


All times are GMT -5. The time now is 01:29 AM.