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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
01-25-2014, 02:41 PM
|
#16
|
LQ Newbie
Registered: Jan 2014
Posts: 29
Original Poster
Rep:
|
Markus why you dont put your Root lvm path on LILO root option
mine: root = dev/lvfelix/root
yours: root: dev/sda5
:s
|
|
|
01-25-2014, 02:46 PM
|
#17
|
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979
Rep:
|
Well, I don't use lvm
That's the reason why I can't help with lvm, I don't have any experience.
I posted the part of my lilo.conf to show you how I use the huge kernel in a case of kernel-panic with the generic kernel.
Markus
|
|
|
01-25-2014, 02:52 PM
|
#18
|
LQ Newbie
Registered: Jan 2014
Posts: 29
Original Poster
Rep:
|
i get it
|
|
|
01-25-2014, 06:32 PM
|
#19
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
What is the output of
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
?
|
|
|
01-25-2014, 09:04 PM
|
#20
|
LQ Newbie
Registered: Jan 2014
Posts: 29
Original Poster
Rep:
|
Code:
mkinitrd -c -k 3.2.29-smp -f ext4 -r /dev/lvfelix/root -m mbcache:jbd2:ext4 -L -u -o /boot/initrd.gz
|
|
|
01-26-2014, 06:45 AM
|
#21
|
Member
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176
Rep:
|
Quote:
Originally Posted by fjur94
Markus why you dont put your Root lvm path on LILO root option
mine: root = dev/lvfelix/root
|
Correct. Mine working lilo.conf for LVM
Code:
image = /boot/vmlinuz
root = /dev/cryptvg/root
initrd = /boot/initrd.gz
label = Slackware
read-only
Quote:
Originally Posted by fjur94
Code:
mkinitrd -c -k 3.2.29-smp -f ext4 -r /dev/lvfelix/root -m mbcache:jbd2:ext4 -L -u -o /boot/initrd.gz
|
As far as I can see, mkinitrd command looks correct. Although question is, when did you execute this command. After installation? After reboot with install CD? Or within actual chroot?
If you execute this after installation, it will write initrd.gz to /boot of Slackware install CD (it will disappear after reboot). You want to execute it within your newly installed linux, so Lilo can pick it up.
I assume that you did full install or have at least on kernel in /boot. Just to make sure, could you mount your boot partition and see if kernel is actually there?
Look what is mounted right now (just to get clear picture what's going on).
If real boot partition isn't already mounted, do it.
Code:
$ mount /dev/sda1 /mnt/boot
$ ls -l /mnt/boot
And if it doesn't list any files, then you have to install kernel package again. If there are files, then you can move to chrooting your system and re-run lilo.
I'll stop now and wait for output of commands above, then we can move further.
|
|
|
01-26-2014, 10:26 AM
|
#22
|
LQ Newbie
Registered: Jan 2014
Posts: 29
Original Poster
Rep:
|
i execute the mkinitrd command after installation without rebooting.
(/mnt/boot) didnt exist, so i created it.
Pictures shows (mount) and (ls -l /mnt/boot)
Note: i have not rebooted after i did the installation.
|
|
|
01-26-2014, 11:31 AM
|
#23
|
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979
Rep:
|
Quote:
Originally Posted by fjur94
i execute the mkinitrd command after installation without rebooting.
(/mnt/boot) didnt exist, so i created it.
Pictures shows (mount) and (ls -l /mnt/boot)
Note: i have not rebooted after i did the installation.
|
Well, thanks to yenn for asking
Your approach seems quite odd. I'd strongly recommend that you put the huge kernel into your lilo.conf and boot with it (don't forget to rerun lilo). Then, when Slackware with the huge kernel is running, you may create the initrd, rerun lilo again and reboot then with the generic kernel.
Thanks to Richard Cranium for pointing me to this. I found this manual from Alien Bob, hope this helps.
Markus
Last edited by markush; 01-26-2014 at 11:57 AM.
|
|
|
01-26-2014, 11:44 AM
|
#24
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
Quote:
Originally Posted by markush
Well, thanks to yenn for asking
Your approach seems quite odd. I'd strongly recommend that you put the huge kernel into your lilo.conf and boot with it (don't forget to rerun lilo). Then, when Slackware with the huge kernel is running, you may create the initrd, rerun lilo again and reboot then with the generic kernel.
Markus
|
Not recommended. You must have an initrd in order to have your root partition on a logical volume.
I'm running a 14.0 install on a virtual machine right now to see what state the installer should be in when it finishes.
Last edited by Richard Cranium; 01-26-2014 at 11:46 AM.
|
|
|
01-26-2014, 12:53 PM
|
#25
|
LQ Newbie
Registered: Jan 2014
Posts: 29
Original Poster
Rep:
|
Quote:
Originally Posted by markush
Thanks to Richard Cranium for pointing me to this. I found this manual from Alien Bob, hope this helps.
|
I did the same that the guide says and nothing.
Last edited by fjur94; 01-26-2014 at 12:55 PM.
|
|
|
01-26-2014, 01:14 PM
|
#26
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
I recommend that you skip installing lilo as part of running setup. Then do the following immediately after setup exits:
Code:
mount -R /proc /mnt/proc
mount -R /sys /mnt/sys
mount -R /dev /mnt/dev
chroot /mnt
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r )
liloconfig
While in liloconfig, select the Simple menu choice.
Select standard for "CONFIGURE LILO TO USE FRAME BUFFER CONSOLE?"
No optional parameters.
Select "No" for "Use UTF-8 TEXT CONSOLE?"
Select MBR for "SELECT LILO TARGET LOCATION"
You'll get a message indicating that lilo didn't install. Press enter.
Then run...
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -l /boot/vmlinuz-generic-smp-3.2.29-smp >>/etc/lilo.conf
Then use your favorite editor to edit /etc/lilo.conf; vi, emacs, nano, or whatever you would use when logged into a console. Delete lines 62 to 67 inclusive. Save the file and exit.
Next, run...
...which will give a warning or two. Then run... to get out of the chroot followed by ctrl-alt-delete to reboot.
|
|
|
01-26-2014, 05:32 PM
|
#27
|
LQ Newbie
Registered: Jan 2014
Posts: 29
Original Poster
Rep:
|
62 to 67, even the 'image' option ?
|
|
|
01-26-2014, 06:13 PM
|
#28
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
Don't know why ours are that different, but from the screen shot you provided, it's lines 59-64.
|
|
|
01-26-2014, 08:07 PM
|
#29
|
LQ Newbie
Registered: Jan 2014
Posts: 29
Original Poster
Rep:
|
I made a video because this is unexplainable
see link below
http://www.youtube.com/watch?v=qPFkQA4lkSc
Last edited by fjur94; 01-26-2014 at 08:08 PM.
|
|
|
01-26-2014, 08:15 PM
|
#30
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
I don't know if there is difference between selecting <Cancel> or actually using the Exit menu option to leave setup. I used the exit menu option.
Other than that, I'd have to run the installer under VM player. My tests were run in a VM running under libvirt.
|
|
|
All times are GMT -5. The time now is 11:56 AM.
|
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
|
|