Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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=795Pls advise. TIA
BR
satimis

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.

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

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.

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

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.

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

![]() |
Linux Audio Recording
|
Linspire Five-0 and Gnome
|

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