Computing.Net > Forums > Linux > grub terms

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

grub terms

Reply to Message Icon

Name: satimis
Date: November 21, 2005 at 08:32:14 Pacific
OS: FC3
CPU/Ram: Athlon1.4/512MB
Comment:

Hi folks,

if root=/dev/hdd

whether root (hd3) ?

Is follwoing entry correct?
/boot/grub/menu.lst
title LiveCD
root (hd3) ???
kernel /boot/lfscdkernel ro root=/dev/hdd vga=795

Pls advise. TIA

BR
satimis



Sponsored Link
Ads by Google

Response Number 1
Name: Jake2
Date: November 21, 2005 at 15:03:30 Pacific
Reply:

The root entry for GRUB is supposed to be the partition containing /boot, numbered starting with 0. The first partition on the first hard drive would be (hd0,0), for example.

For the kernel it's the device name of your root partition. In this case the partition numbers start with 1, and the first partition on the first hard drive is hda1, for example.

You probably want "root (hd1,0)" for GRUB and "root=/dev/hdd1" for the kernel, assuming you don't have a dedicated partition for /boot and that your root partition is the first partition on the second hard drive.


0

Response Number 2
Name: satimis
Date: November 21, 2005 at 21:57:59 Pacific
Reply:

Hi Jake2,

Tks for your advice.

Since this is a LiveCD there is no partition. The CDRom used to boot the PC is connected as Slave secondary IDE. I suppose root=/dev/hdd being correct. However I could not figure out whether the second line on /boot/grub/menu.lst should be;

root (hd3)

satimis


0

Response Number 3
Name: Jake2
Date: November 22, 2005 at 00:46:29 Pacific
Reply:

If it's for a LiveCD, that changes everything. There should be a better way to handle booting. I guess if it's just for you to use hardcoding hdd might be sufficient, but it sure is an ugly solution.

I checked a SchilliX CD I had handy (based on OpenSolaris which uses GRUB), and it uses "root (cd)", and you probably want to use that too, but it doesn't answer the question of what device to pass to the kernel.

All the Linux LiveCDs I've ever dealt with used some kind of compressed, read-only, loopback filesystem. If I were to go that route, I'd use Gentoo Catalyst or possibly Morphix. Either should also handle boot loader issues for you, but it's been too long since I've made a LiveCD for me to remember exactly how the kernel finds the loop image (which is fundamentally the same problem as finding the root device), or I just need sleep.


0

Response Number 4
Name: satimis
Date: November 22, 2005 at 21:36:45 Pacific
Reply:

Hi Jake2,

Tks for your URL.

LFS LiveCD uses isolinux booting the CD. I doubt whether grub will come into play. I just prepare it in case. I have no difficulty in making a LFS LiveCD except building up the loop module to the compressed file during booting. The loop module on the kernel has been enabled. I'm searching around for solution. I also tried building the loop on the kerenl (i.e. <=y>) still without a breakthrough.

satimis


0

Response Number 5
Name: Jake2
Date: November 23, 2005 at 22:56:05 Pacific
Reply:

I don't know what your problem might be, but LFS LiveCD looks interesting.

I think I understand the process better now. The kernel mounts a RAM disk for root, and the init program or script mounts the other filesystems.


0

Related Posts

See More



Response Number 6
Name: satimis
Date: November 24, 2005 at 18:18:59 Pacific
Reply:

Hi Jake2,

I built my own LFS LiveCD several times making it worked but could not have a breakthrough on building BLFS LiveCD wth files compressed. I built the latter on my own way not following the way of LFS LiveCD from LinuxFromScratch. Although it booted but failing to get the compressed files mounted during booting. Therefore I'm checking whether grub can boot CD. I'm using isolinux to boot without problem.

satimis


0

Sponsored Link
Ads by Google
Reply to Message Icon

Linux Audio Recording Linspire Five-0 and Gnome



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: grub terms

LILO or GRUB www.computing.net/answers/linux/lilo-or-grub/13403.html

how do i get rid of GRUB??? www.computing.net/answers/linux/how-do-i-get-rid-of-grub/13170.html

Linux Y Term Windows www.computing.net/answers/linux/linux-y-term-windows/18958.html