LinuxQuestions.org
Visit Jeremy's Blog.
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 01-25-2014, 02:41 PM   #16
fjur94
LQ Newbie
 
Registered: Jan 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled

Markus why you dont put your Root lvm path on LILO root option

mine: root = dev/lvfelix/root

yours: root: dev/sda5

:s
 
Old 01-25-2014, 02:46 PM   #17
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
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
 
Old 01-25-2014, 02:52 PM   #18
fjur94
LQ Newbie
 
Registered: Jan 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
i get it
 
Old 01-25-2014, 06:32 PM   #19
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229
What is the output of
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
?
 
Old 01-25-2014, 09:04 PM   #20
fjur94
LQ Newbie
 
Registered: Jan 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
Code:
mkinitrd -c -k 3.2.29-smp -f ext4 -r /dev/lvfelix/root -m mbcache:jbd2:ext4 -L -u -o /boot/initrd.gz
Attached Thumbnails
Click image for larger version

Name:	command generator.PNG
Views:	28
Size:	4.4 KB
ID:	14588  
 
Old 01-26-2014, 06:45 AM   #21
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Rep: Reputation: 28
Quote:
Originally Posted by fjur94 View Post
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 View Post
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).
Code:
$ mount
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.
 
Old 01-26-2014, 10:26 AM   #22
fjur94
LQ Newbie
 
Registered: Jan 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
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.
Attached Thumbnails
Click image for larger version

Name:	mount.PNG
Views:	23
Size:	29.1 KB
ID:	14612   Click image for larger version

Name:	ls -l part 1.PNG
Views:	33
Size:	63.9 KB
ID:	14613   Click image for larger version

Name:	ls -l part 2.PNG
Views:	22
Size:	10.5 KB
ID:	14614  
 
Old 01-26-2014, 11:31 AM   #23
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by fjur94 View Post
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.
 
Old 01-26-2014, 11:44 AM   #24
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229
Quote:
Originally Posted by markush View Post
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.
 
Old 01-26-2014, 12:53 PM   #25
fjur94
LQ Newbie
 
Registered: Jan 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
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.
 
Old 01-26-2014, 01:14 PM   #26
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229
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...
Code:
lilo
...which will give a warning or two. Then run...
Code:
exit
to get out of the chroot followed by ctrl-alt-delete to reboot.
 
Old 01-26-2014, 05:32 PM   #27
fjur94
LQ Newbie
 
Registered: Jan 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
62 to 67, even the 'image' option ?
Attached Thumbnails
Click image for larger version

Name:	sure..PNG
Views:	34
Size:	43.4 KB
ID:	14617  
 
Old 01-26-2014, 06:13 PM   #28
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229
Don't know why ours are that different, but from the screen shot you provided, it's lines 59-64.
 
Old 01-26-2014, 08:07 PM   #29
fjur94
LQ Newbie
 
Registered: Jan 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
I made a video because this is unexplainable

see link below
http://www.youtube.com/watch?v=qPFkQA4lkSc
Attached Thumbnails
Click image for larger version

Name:	conio.PNG
Views:	23
Size:	23.1 KB
ID:	14622  

Last edited by fjur94; 01-26-2014 at 08:08 PM.
 
Old 01-26-2014, 08:15 PM   #30
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229
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.
 
  


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
Kernel panic - not syncing: VFS: unable to mount root fs on uknown-block(253,0) fjur94 Slackware 1 01-22-2014 07:05 PM
kernel panic - not syncing:vfs:unable to mount root fs on unknown-block (8.2) raleeha VectorLinux 6 04-21-2011 03:48 AM
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1) anjanesh Ubuntu 9 01-27-2011 01:00 PM
kernel panic - not syncing: VFS unable to mount root fs on unknown-block(8,3) AllShk Linux - Newbie 3 11-28-2009 01:56 AM
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block akaUr Linux - Kernel 10 06-18-2009 07:59 AM

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

All times are GMT -5. The time now is 11:56 AM.

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