LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-24-2003, 03:58 PM   #1
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
lilo.conf rootfs


I need some info on using the append= line in lilo.conf to designate the root filesystem for an image.

I am wanting to boot gentoo which I am building in my current partition.

RedHat 8 may have the line I need to use if someone has it installed, and can check their lilo.conf. Or if anyone else knows the syntax.

I think it's something like this

append="rootfs=LABEL /"

I will use this to tell the kernel to use /mnt/gentoo as my rootfs

Thanks.
 
Old 03-24-2003, 04:27 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
presuambly you are referring to the option root=LABEL=/ which uses the ext2 label ratehr than the partition, in the same way as in fstab you can replace /dev/hda1 with LABEL=root or whatever. Don't quite think that this is what you're after though
 
Old 03-24-2003, 08:58 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Original Poster
Rep: Reputation: 58
yea I think it's close.

That looks like the fstab entries I have seen. It seems to me that a lilo.conf file I saw had rootfs= in the append line for the given image section.

Gotta finish building the monster first then I will try it.

Thanks
 
Old 03-24-2003, 11:57 PM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
The following is predicated on the assumption that I know what
you are asking for, which could be false.

It almost (*) sounds like you've built gentoo in some directory
under your current system (say /gentoo), and would like to use
that as your root to the filesystem.
*: Almost, except that you say you want /mnt/gentoo, which is
usually used for mounting removable media or "temporary"
partitions. If it's the latter, then you can probably use the
standard lilo.conf kernel image block:
Code:
  image = /boot/vmlinuz_gentoo
  root = /dev/hda5
  label = Gentoo
  read-only
According to the latest documentation I could find (2001,
/usr/doc/Linux-HOWTOs/BootPrompt-HOWTO on Slack 8.1),
there is no rootfs= boot parameter to the kernel. The root= option
for the kernel sets the root filesystem that the kernel uses while
booting (see Bootdisk-HOWTO for some info on how to mess
with this). This is not necessarily the final root filesystem to use
when the system is loaded and ready for users.

I can't think of a way (off hand) of using LILO to specify a
partition by its label (i.e. like the /etc/fstab syntax) rather than its
device name.

I believe that, unless you do funky chroot stuff, you need to
have the root of the filesystem be a partition, not a subdir of the
root dir on the partition. (This sentence doesn't really make sense
to me right now, maybe I'll edit it later.)

Last edited by moses; 03-25-2003 at 12:04 AM.
 
Old 03-25-2003, 10:57 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Original Poster
Rep: Reputation: 58
I think there is another way. I could rdev the kernel. I think the rootfs can be set this way to a folder.

I did not want to do that as this is just a temporary setup.
 
Old 03-25-2003, 03:12 PM   #6
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
I'm having a little bit of trouble understanding exactly what you want.

You can use lilo to chroot to a directory before installing the boot loader,
effectively setting /mnt/gentoo as the root partition, but it doesn't tell
LILO to use /mnt/gentoo as its root device. LILO does pretty much
everything rdev does (albiet, temporarily) except mess with the RAM disk.
rdev ("root device") deals with devices, not directories.

You can use initrd to set up an initial RAM disk, which is what many
distros use for their boot disks. This should allow you to mount
/mnt/gentoo, chroot to it, and set that as your root filesystem. . .
 
Old 03-25-2003, 07:24 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Original Poster
Rep: Reputation: 58
yes, I think chroot is the only way to do it.

I finished building the gentoo system, and decided to go ahead and move it to / replacing the other system I had. I was going to try it out for a while first. I really don't want to have more than one linux system on the machine anyway. There always seems to be one that never gets used.

I was using chroot to build the system, and booted the kernel once I got it built and chrooted into the file system. The gentoo filesystem uses devfs and the other did not.
I was thinking for some reason there should be another way other than chroot. I guess there's not though.


Thanks for the help.

I'm off to finish building the perfect kernel.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
lilo.conf and lilo.conf.anaconda difference blackzone Linux - General 1 07-06-2004 03:15 AM
lilo.conf.anaconda v. lilo.conf rbaird2001 Red Hat 1 04-01-2004 12:16 PM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:37 PM.

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