LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-28-2004, 11:49 AM   #1
rrfish72
Member
 
Registered: Jan 2003
Location: Wisconsin, USA
Distribution: Kanotix, Mandrake, Red Hat
Posts: 85

Rep: Reputation: 15
Using grub to boot.. How do I edit to get mandrake to boot?


Here is my entry and when it is selected I cannot boot into mandrake on hda1 or the first partition. It is on a primary partition and can boot from the floppy.

title Kanotix
root (hd0,3)
kernel /boot/vmlinuz-2.6.8.1-kanotix-5 root=/dev/hda4 ro ramdisk_size=100000 lang=us apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi nomce vga=0x317
savedefault
boot

title Mandrake
root (hd0,0)
kernel /mnt/hda1/boot/initrd.img root=/dev/hda1 devfs=mount acpi=ht splach=silent vga=788
boot

### END DEBIAN AUTOMAGIC KERNELS LIST
title WindowsXP
rootnoverify (hd0,1)
makeactive
chainloader +1
savedefault

Help please!!
 
Old 10-28-2004, 02:13 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Edit the kernel parameters for Mandrake so that they look like the the params for Kanotix (from Kanotix, mount /dev/hda1 to a mount point in /mnt directory in Kanotix. If no mount point exists, create one: mkdir /mnt/Drake or some such, then give the mount /dev/hda1 command). Cd to the Kanotix /mnt/Drake/boot folder and get the name of Drake's vmlinuz compressed kernel. Edit the grub.conf or menu.lst file you are currently using (Kanotix) to boot, and change the kernel params for Drake to read kernel /boot/vmlinuz-<kernel number> instead of kernel /mnt/hda1.
 
Old 10-28-2004, 05:52 PM   #3
rrfish72
Member
 
Registered: Jan 2003
Location: Wisconsin, USA
Distribution: Kanotix, Mandrake, Red Hat
Posts: 85

Original Poster
Rep: Reputation: 15
I changed to vmlinuz-2.6.8.1-10mdk like the file says but I don't quite understand the other part of what was said. I did create a dir called /mnt/drake. When I reboot and try Mandrake I get an error that says the file does not exist. So that tells me that it is not looking in the right place.

Last edited by rrfish72; 10-28-2004 at 06:08 PM.
 
Old 10-29-2004, 02:00 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Using the name of the mount point in the kernel won't boot the system. Grub needs to know where the root of the file system is (the device name, such as /dev/hda1) and where to find the /boot directory and the name of the compressed kernel to use. That's why using /mnt/hda1 won't boot Drake.
Quote:
title Kanotix
root (hd0,3)
kernel /boot/vmlinuz-2.6.8.1-kanotix-5 root=/dev/hda4 ro ramdisk_size=100000
lang=us apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi nomce vga=0x317
savedefault
boot

title Mandrake
root (hd0,0)
kernel /mnt/hda1/boot/initrd.img root=/dev/hda1 devfs=mount acpi=ht splach=silent vga=788
boot
In the Drake kernel params, change "kernel /mnt/hda1/boot/initrd.img" to "kernel /boot/initrd.img" (in other words, drop the /mnt/hda1 part. That tells grub that initrd.img is in /boot. The next part of that line (root=/dev/hda1) tells grub where the root of the file system is. You might also want to correct the spelling splach=silent to splash=silent.
 
  


Reply



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
Right way to edit /boot/grub/menu.lst ? eeried Linux - Software 2 02-07-2007 08:59 AM
How to edit /boot/grub/menu.lst of the host satimis Linux From Scratch 1 09-25-2005 07:21 AM
anyone know how to edit the /boot/grub/menu.lst? plzz help earth.hero Linux - Newbie 17 03-26-2005 10:15 AM
How do I edit the grub boot in SuSE Linux trespasser Linux - Newbie 3 04-12-2004 12:58 PM
Mandrake 9 - Edit boot option in grub explorer Linux - Distributions 6 02-28-2003 03:36 PM

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

All times are GMT -5. The time now is 02:10 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