LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   grub + booting a knoppix like distro (https://www.linuxquestions.org/questions/fedora-35/grub-booting-a-knoppix-like-distro-267344/)

kcorupe 12-17-2004 05:04 AM

grub + booting a knoppix like distro
 
Heres what I did, I installed Auditor linux, knoppix like distro to hda1. rebooted back into fc2 and reinstalled grub to the mbr, and tried to add auditor to grub.

I can get Auditor to boot, but it goes to kernel panic, and says stuff about Ramdisk [4532 != 32541].
Or something like that. (sorry I don't have exact error)
I am assuming that it has something to do with the ramdisk line, I am not sure if I have it right.


Thanks for any help!

Kyle


heres my grub.conf file.

----------------------------------------------------------------
title Fedora Core (2.6.9)
root (hd0,4)
kernel /boot/vmlinuz-2.6.9 ro root=/dev/hda5 3
initrd /boot/initrd-2.6.9.img
title AuditorLinux
root (hd0,0)
kernel /boot/vmlinuz-2.6.6 ramdisk=100000
initrd /boot/initrd.img-2.6.6
[root@localhost k0rupted]#
---------------------------------------------------------------

And here is the lilo.conf from the auditor partition. (wich is not used)


/mnt/hda1/etc/lilo.conf
---------------------------------------------------------------
default="Linux"

image=/boot/vmlinuz
label="Linux"
initrd=/boot/initrd.img
append="ramdisk_size=100000 init=/etc/init lang=ch dma nodhcp noapm noagp hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi screen=1024x768 nowheelmouse nomce quiet"
read-only
image=/boot/vmlinuz-2.6.6
label="Linux(2.6)-1"
initrd=/boot/initrd.img-2.6.6
append="ramdisk_size=100000 init=/etc/init lang=ch dma nodhcp noapm noagp hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi screen=1024x768 nowheelmouse nomce quiet"
read-only
--------------------------------------------------------------

homey 12-17-2004 08:51 AM

Quote:

kernel /boot/vmlinuz-2.6.6 ramdisk=100000
You probably won't need the ram disk part when booting from hard drive.
Try it looking like the Fedora line ....
kernel /boot/vmlinuz-2.6.6 ro root=/dev/hda1

Also, if there is a link from vmlinuz-2.6.6 to just vmlinuz then you
can use kernel /boot/vmlinuz ro root=/dev/hda1 and you don't have to worry about updating the grub.conf if you update the kernel

kcorupe 12-17-2004 04:57 PM

I removed the ramdisk line, but I still get this error.

--------------------------------------
RAMDISK: Compressed image found at block 0
RAMDISK: incomplete write (2048 != 32768) 17235968
Kernel panic: VFS: unable to mount root fs on hda6
--------------------------------------


------my grub file -------------------
title Fedora Core (2.6.9)
root (hd0,4)
kernel /boot/vmlinuz-2.6.9 ro root=/dev/hda5 3
initrd /boot/initrd-2.6.9.img
title AuditorLinux
root (hd0,0)
kernel /boot/vmlinuz-2.6.6 ro root=/dev/hda1
initrd /boot/initrd.img-2.6.6
-------------------------------------

I just have no idea...

Kyle

homey 12-17-2004 05:30 PM

Quote:

Kernel panic: VFS: unable to mount root fs on hda6
That seems to be looking for root on /dev/hda6 . Are you sure the grub looks like this ...
root (hd0,0)

kcorupe 12-17-2004 07:11 PM

well I had to do

grub > root (hd0,4)
grub > setup (hd0)

to get grub working again in FedoraCore.

do I need to do

grub > root (hd0,0)

to allow the other one to boot? I did not know that if thats the case.




thanks,
Kyle

homey 12-17-2004 07:58 PM

Can you post your actual grub.conf and the output of /dev/fdisk -l and show which partition the new linux is loaded onto?

kcorupe 12-17-2004 08:57 PM

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 608 4883728+ 83 Linux
/dev/hda2 2552 4864 18571581+ f W95 Ext'd (LBA)
/dev/hda3 609 2552 15607178+ 83 Linux
/dev/hda5 2552 4782 17920476 83 Linux
/dev/hda6 4783 4863 650601 82 Linux swap

Partition table entries are not in disk order

------------------------------------------
My grub.....
-----------------------------------------------
title Fedora Core (2.6.9)
root (hd0,4)
kernel /boot/vmlinuz-2.6.9 ro root=/dev/hda5 3
initrd /boot/initrd-2.6.9.img
title AuditorLinux
root (hd0,0)
kernel /boot/vmlinuz-2.6.6 ro root=/dev/hda1
initrd /boot/initrd.img-2.6.6

homey 12-17-2004 09:08 PM

Quote:

Partition table entries are not in disk order
That maybe where the problem comes from.
Try
root (hd0,2)
kernel /boot/vmlinuz-2.6.6 ro root=/dev/hda3
initrd /boot/initrd.img-2.6.6

Other than that I'm out of ideas but if it was my machine, I'd be inclined to redo the partition table.


All times are GMT -5. The time now is 11:15 PM.