LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2005, 12:35 PM   #1
upchucky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 113

Rep: Reputation: 16
Knoppix 4.0 install did not update Grub


Hello all, i have a dual boot sys with win xp, and Knoppix 4.0.

I had installed Debian, and decided to remove it, it had failed to detect my satellite modem, and i could not figure out where to even start that task.

Anyway I then repartitioned and installed Knoppix 4.0 over the Deb install, all went fine, but now I have a kernal panic, grub did not update, and is trying to boot the debian, but it cant.

I checked the grub.conf, and it still has the debian configuration, i can "rem" them but i need to add the knoppix configuration path and init to the grub.conf, does anyone know the default path to set this too, and the right vmlinuz file?
my root is sda6, and my knoppix install is sda7.

I would post the grub.conf here but i had to boot windows to get on the net to ask for help, and i cant access the grub.conf from windows.
This machine does not have a floppy drive, so i could not use the floppy drive grub method to repair.
 
Old 12-11-2005, 01:41 PM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
As a matter of interest how do you know that you are looking at the left over by the Debian because Knoppix is not know to support Grub.

I make this comment because its is possible that you repartitioned but didn't rebooted and the Debian wasn't cleanly removed. There is no way Knoppix would have Debian information from a clean install.

You should be able to get Knoppix's Lilo to work. Check to see if you got /etc/lilo.conf in Knoppix's root.

If you boot Knoppix with debian's removed or damaged kernel Knoppix should panic.

You can boot to another Linux, say using Knoppix, mount your sda6, change root into it and replicate lilo by

lilo -b /dev/sda

The equivalent for Grub is

grub-install /dev/sda
 
Old 12-11-2005, 02:15 PM   #3
upchucky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 113

Original Poster
Rep: Reputation: 16
Thank you for the reply, i booted my dvd knoppix to get this file posted, can i get rid of grub, and change to lilo without rendering windows unbootable, the debian install setup grub for me and still has the debian references in it.

i did not know that grub did not work with knoppix, and the install did not give me an option to use lilo

I am hoping to keep my windows intact until i get this install working properly.

the lilo replicate you mentioned, will it alow the dual boot for knoppix and windows?

thanks again








# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/sda7 ro ### isk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet vga=791

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,6)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=false

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## ## End Default Options ##

title Debian GNU/Linux, kernel 2.6.12 Default
root (hd0,6)
kernel /boot/vmlinuz root=/dev/sda7 ro ### isk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet vga=791
initrd /boot/initrd.img
savedefault
boot

title Debian GNU/Linux, kernel 2.6.12
root (hd0,6)
kernel /boot/vmlinuz-2.6.12 root=/dev/sda7 ro ### isk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet vga=791
initrd /boot/initrd.img-2.6.12
savedefault
boot

title Debian GNU/Linux, kernel memtest86
root (hd0,6)
kernel /boot/memtest86.bin
boot

title Debian GNU/Linux, kernel memtest86+
root (hd0,6)
kernel /boot/memtest86+.bin
boot

### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows 95/98/ME (sda1)
root (hd0,0)
makeactive
chainloader +1
title Windows 2K/XP/2003 (sda2)
chainloader (hd0,1)+1
 
Old 12-11-2005, 07:14 PM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Your Windows partition is as safe as you can expect. It is never an issue.

If you have a Grub floppy you can boot it up immediately. The instruction to boot it manually is last 3 lines of your post #3. You can actually try to make a Grub floppy by fllowing the simple steps of the Chapter 3.1 of the Grub Manual . The souce of Grub's stage1 and stage2 are obtainable Knoppix version 4 and above if you got it.

I just checked my Knoppix 4.0.2. It has both Grub and Lilo.

In that case the instructions to replicate the boot loader are as follow, after booting to Knoppix DVD, click terminal, become the super user (admin)

su
mkdir /mnt/sda6
mount /dev/sda6 /mnt/sda6
chroot /mnt/sda6 <----- you are inside the hard disk version of Knoppix now

do 2 floppies one for Lilo and one for Grub

lilo -b /dev/fd0
grub-install /dev/fd0

exit
reboot (leave on floppy behind)

I have already given the instruction for Grub to boot your Windoze. The equivalent necessary lines in Lilo's /etc/lilo.conf are just

other=/dev/sda1
Label=WinXP
 
Old 12-11-2005, 09:02 PM   #5
upchucky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 113

Original Poster
Rep: Reputation: 16
Thank you very much saikee, im up an runnin, just got a few minor errors in innit, im sure i can figure it out, i like how fast this sys runs linux, noticeable speed difference to win xp.

again many thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i got knoppix on cd and it rocks when booted! wut can i do to install knoppix on HD? kublador Linux - Distributions 4 12-12-2005 05:08 PM
GRUB Triple Boot XP FC3 Debian/Knoppix HD Install boyfromthedwarf Linux - Software 4 12-02-2004 09:31 AM
GRUB splashimage configuration / update GRUB rudL Linux - Software 1 05-10-2004 08:16 AM
How does one remove the custom KNOPPIX graphics from a KNOPPIX HD Install? apache363 Linux - Distributions 2 03-29-2004 06:08 AM
Update grub during rh install BBehemoth Linux - Software 11 07-19-2003 01:51 PM


All times are GMT -5. The time now is 12:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration