On Sun, Oct 19, 2003 at 11:40:55AM -0700, John Schofield wrote:
Was able to mount /boot following your last message, so I'm not
shooting as much in the dark as I was.
To recap.
Red Hat 8 on /dev/hda, with a /dev/hda1 /boot, a /dev/hda2 /, and a
/dev/hda3 swap
On /dev/hdb, we have:
/dev/hdb1 Linux from scratch /, not yet ready to boot
/dev/hdb2 Debian woody /
dev/hdb3 swap
Here is a discussion dual booting red hat and Debian:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-
8&threadm=mvg84a.lqq.ln%40news.smilfinken.net&rnum=1&prev=/
groups%3Fq%3Dlilo%2Bdual%2Bboot%2Bred%2Bhat%2Bdebian%26hl%3Den%26lr%3D%
26ie%3DUTF-8%26oe%3DUTF-
8%26selm%3Dmvg84a.lqq.ln%2540news.smilfinken.net%26rnum%3D1
For lilo.conf, I think you need something like:
lba32
boot=/dev/hda
root=/dev/hdb2
install=/boot/boot-menu.b
map=/boot/map
delay=20
vga=normal
default=Linux
image=/vmlinuz
label=Linux
read-only
image=/vmlinuz.old
label=LinuxOLD
read-only
optional
other=/dev/hda2
image=/boot/vmlinuz-2.4.20-20.8
label=RedHat
root=/dev/hda2
initrd=/boot/initrd-2.4.20-20.8.img
append="root=LABEL=/ hdc=ide-scsi"
read-only
If you are want to use the Debian grub package, /boot/grub/menu.lst
should have lines in it like:
default=0
timeout=10
title Red Hat Linux (2.4.20-20.8)
root (hd0,0)
kernel /vmlinuz-2.4.20-20.8 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-20.8.img
savedefault
boot
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-14.img
savedefault
boot
title Debian Stable (2.4.18-11)
root (hd1,1)
kernel /boot/vmlinuz-2.2.20 ro hdc=ide-scsi
savedefault
boot
If you decide to use Debian's grub package, set up information is in
/usr/share/doc/grub/README.Debian.gz.
I installed Debian, and overwrote my RH Grub setup with LILO. I've
edited /etc/lilo.conf, but every time I run lilo -v, I get this:
Boot image: /vmlinuz-2.4.20-20.8
Fatal: open /vmlinuz-2.4.20-20.8: No such file or directory.
My grub.conf that was created for RedHat (knows nothing of Debian) is
at http://www.officemechanic.com/grub.conf
My lilo.conf that Debian created and I edited to attempt to add RedHat
is at http://www.officemechanic.com/lilo.conf
Thanks very much!
On Sunday, October 19, 2003, at 07:22 AM, Jerome R. Acks wrote:
On Sat, Oct 18, 2003 at 10:47:46PM -0700, John Schofield wrote:
I'm working on a Pentium III system with two IDE hard drives.
I had Red Hat 8 installed on /dev/hda2, with /boot mounted on
/dev/hda1. Booting via grub.
I installed Debian Woody on /dev/hdb2. /dev/hdb3 is swap, and
/dev/hdb1 is a partition on which I'm building a Linux From Scratch
system.
Debian boots no problem after Lilo installed, however, Red Hat no
longer boots.
Please post your /etc/lilo.conf.
Once you boot to Debian, you can mount /dev/hda1 and determine what
the Red Hat filenames are.
Alternative: install grub from Debian. Then use the update-grub
script
to
help build a /boot/grub/menu.lst that includes all your bootable
kernels.
I'm not at all sure what I'm doing with Lilo. My problem is
compounded
by the fact that I didn't record the grub settings before Lilo wiped
them, and can't seem to mount the /boot partition on /dev/hda1 to
find
out the correct path for the image and initrd. (I'm running the
latest
kernel as installed by Red Hat.)
Any ideas as to what I need to look at to figure out what I need to
to
next? (Anybody know what the image and initrd lines SHOULD say for
my
version of RedHat?)
Any ideas why I can't get boot to mount? I enter "mount /dev/hda1
/mnt/temp2" and get "Invalid MFT record 0 Mount: Wrongs FS type, bad
option, bad superblock on /dev/hda1, or too many mounted file
systems."
Are you root when you try this?
Assuming ext2 files system:
# mount -t ext2 /dev/hda1 /mnt
Thanks a bunch!
Schof
John Schofield
Apple Certified Technical Coordinator
Macintosh, PC, and Unix Computer Support
www.officemechanic.com
John Schofield
Apple Certified Technical Coordinator
Macintosh, PC, and Unix Computer Support
www.officemechanic.com
--
Jerome
<mime-attachment>