LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-13-2011, 12:03 PM   #1
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 729

Rep: Reputation: 56
Lilo-multiboot and initramfs


Hi,
recently I installed a Linux distro (Pardus) which boots using initramfs. I am completely novice here. In the former configuration I used lilo to boot OpenBSD, Debian and W2k (it is easy for me to configure lilo to boot OpenBSD). But initramfs is a something completely new for me. As I understand it is a virtual file system with a standard directory tree and the information stored on that system is used (to boot the kernel?) to mount the true (physical) root device. The first question is how to properly describe a system (kernel image) booted with initramfs in the lilo.conf.
Any remarks are welcomed.
 
Old 04-13-2011, 12:13 PM   #2
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,173

Rep: Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539
Is this what you're looking for? I'm a little confused by your post.

http://slackware.osuosl.org/slackwar.../README.initrd
 
Old 04-13-2011, 12:19 PM   #3
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 60
This is how you add an initram to lilo.conf. (Taken from mine)
Code:
image = /boot/vmlinuz-generic-2.6.37.6
  initrd = /boot/initrd.gz
  root = /dev/sda1
  label = Linux
  read-only
After you add it, you run /sbin/lilo.
 
Old 04-13-2011, 12:40 PM   #4
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,173

Rep: Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539
The procedure in the link I provided for building an initrd works like a charm. It is written by the man himself.
 
Old 04-13-2011, 02:49 PM   #5
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 729

Original Poster
Rep: Reputation: 56
Seems initramfs and initrd are different flavours of the same thing.
http://en.wikipedia.org/wiki/Initrd
I tried initrd but it doesn't work with initramfs.
 
Old 04-14-2011, 06:37 AM   #6
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 374

Rep: Reputation: 55
Quote:
Originally Posted by igadoter View Post
Seems initramfs and initrd are different flavours of the same thing.
http://en.wikipedia.org/wiki/Initrd
I tried initrd but it doesn't work with initramfs.
The lilo "command" you put in lilo.conf is initrd as bonixavier showed. The procedure is the same regardless of whether you use initrd or initramfs. After you specified the init image in lilo.conf did you re-run lilo ? If yes, did it mention any errors/warnings ?
 
Old 04-14-2011, 12:35 PM   #7
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 729

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by imitheos View Post
The lilo "command" you put in lilo.conf is initrd as bonixavier showed. The procedure is the same regardless of whether you use initrd or initramfs.
There is no initrd.gz file under /boot. There is initramfs-2.6.37. In fact lilo boots but afterthat the kernel (Pardus) is unable to mount the /root device (partition). Instead of I had a simple console and I was able to do some thing with this virtual fielsystem, say ls /. But is was not of much help to me cause as I mentioned I am a complete novice using initramfs.
 
Old 04-14-2011, 12:44 PM   #8
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 729

Original Poster
Rep: Reputation: 56
But probably mistake is mine. After an install I changed /etc/fstab. In the original fstab the root device was described by UUID. I prefer to use /dev/sd in the fstab. Now it seems for me that afterthat I should rebuild initramfs. But it desn't seems to be such easy as in the case of initrd. It would much simpler to use UUID in the lilo.conf.
 
  


Reply

Tags
initramfs, lilo, liloconf, multibooting


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
LILO Multiboot problem DIGITAL39 Linux - General 5 08-23-2007 05:34 PM
[LiLo] can't multiboot WinXP Rikra Linux - Software 4 11-01-2004 08:00 AM
multiboot problem with lilo bashrc2 Slackware 1 04-09-2004 02:26 AM
Mandrake LILO - Multiboot mailmarshall Linux - Newbie 3 02-17-2004 01:08 AM
Using LiLo to multiboot more than one distro Slakje Linux - General 7 07-08-2003 05:36 PM


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