LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-22-2003, 06:38 PM   #1
Ming Dao
Member
 
Registered: Oct 2003
Location: Earth
Distribution: Linux 2.6.25.4
Posts: 30

Rep: Reputation: 15
grub not installing by error


My grub did not install. I am using Debian kernel 2.4.18-bf2.4 and here is the errors and the files I think you need to see:

paul:/home/mingdao# grub-install /dev/hda6


GNU GRUB version 0.93 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0,6)
Filesystem type is ext2fs, partition type 0x83
grub> setup --stage2=/boot/grub/stage2 --prefix=/grub (hd0,5)
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0,5)"... 15 sectors are embedded.
succeeded
Running "install --stage2=/boot/grub/stage2 /grub/stage1 (hd0,5) (hd0,5)1+15 p (hd0,6)/grub/stage2 /grub/menu.lst"... failed

Error 6: Mismatched or corrupt version of stage1/stage2
grub> quit
paul:/home/mingdao#

paul:/home/mingdao# fdisk -l

Disk /dev/hda: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 383 3076416 b W95 FAT32
/dev/hda2 384 7476 56974522+ f W95 Ext'd (LBA)
/dev/hda5 384 3571 25607578+ b W95 FAT32
/dev/hda6 3572 3693 979933+ 83 Linux
/dev/hda7 3694 3705 96358+ 83 Linux
/dev/hda8 3706 4191 3903763+ 83 Linux
/dev/hda9 4192 7109 23438803+ 83 Linux
/dev/hda10 7110 7476 2947896 83 Linux

Disk /dev/hdb: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 765 6144831 b W95 FAT32
/dev/hdb2 766 2528 14161297+ 5 Extended
/dev/hdb5 766 1008 1951866 83 Linux
/dev/hdb6 1009 1312 2441848+ 83 Linux
/dev/hdb7 1313 1798 3903763+ 83 Linux
/dev/hdb8 1799 1920 979933+ 83 Linux
/dev/hdb9 1921 2285 2931831 83 Linux
/dev/hdb10 2286 2528 1951866 82 Linux swap
paul:/home/mingdao#

#*****************************************************************************#
#
# file : /boot/grub/menu.lst
#
#*---------------------------------------------------------------------------*#
#
default=0 foreground=f0e0d0 splashimage=(hd0,5)/grub/Debian.xpm.gz
timeout=8
#
#*---------------------------------------------------------------------------*#
#
title GNU/Debian Linux root (hd0,6) kernel /vmlinuz ro root=/dev/hda6
hdc=ide-scsi hdd=ide-scsi vga=789 video=vesa:mtrr,ypan
#
#.............................................................................#
#
title GNU/Debian Linux (vga=normal) root (hd0,6) kernel /vmlinuz ro
root=/dev/hda6 hdc=ide-scsi hdd=ide-scsi vga=normal
#
#.............................................................................#
#
title GNU/Debian Linux (single user mode) root (hd0,6) kernel /vmlinuz
ro root=/dev/hda6 hdc=ide-scsi hdd=ide-scsi single
#
#.............................................................................#
#
title Windows 2000
rootnoverify (hd0,0)
makeactive
chainloader +1
#
#.............................................................................#
#
title Floppy Disk Drive A:
root (fd0)
chainloader +1
#
#*****************************************************************************#


I do not understand this line:
Running "install --stage2=/boot/grub/stage2 /grub/stage1 (hd0,5) (hd0,5)1+15 p (hd0,6)/grub/stage2 /grub/menu.lst"... failed
 
Old 10-22-2003, 06:41 PM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
enter the su command to become root. but before you install grub, are you sure you want to install grub in hda6? think about what you're trying to accomplish.
 
Old 10-22-2003, 06:49 PM   #3
Ming Dao
Member
 
Registered: Oct 2003
Location: Earth
Distribution: Linux 2.6.25.4
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks megaspaz,

Notice the # sign - this is root with bash shell, is it?

I want to dual boot with grub, and my / dir is hda6. Can you help me some more? I have read all the grub how-to and post I can find and can't understand any better. I have the headache now
 
Old 10-22-2003, 07:00 PM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Quote:
Originally posted by Ming Dao
Thanks megaspaz,

Notice the # sign - this is root with bash shell, is it?

I want to dual boot with grub, and my / dir is hda6. Can you help me some more? I have read all the grub how-to and post I can find and can't understand any better. I have the headache now
anyway. if you want to use grub to handle the os choices, you don't install it on your root partition. install it to the mbr, which if you're using one hard drive for both windows and linux, is /dev/hda....

so....

grub-install /dev/hda

post the exact errors your getting if this doesn't work.

Last edited by megaspaz; 10-22-2003 at 07:02 PM.
 
Old 10-22-2003, 07:16 PM   #5
Ming Dao
Member
 
Registered: Oct 2003
Location: Earth
Distribution: Linux 2.6.25.4
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by megaspaz
i don't know what you're talking about. i looked at your original post and what put in for the prompt didn't look like the prompt for root which is usually something like:

[root@Comp_name working_dir] $

anyway. if you want to use grub to handle the os choices, you don't install it on your root partition. install it to the mbr, which if you're using one hard drive for both windows and linux, is /dev/hda....

so....

grub-install /dev/hda

post the exact errors your getting if this doesn't work.
I still don't understand about the root prompt. Is it $ in RedHat and # in Debian? Maybe I have something else wrong that needs fixing, also.
mingdao@paul:~$ su
Password:
paul:/home/mingdao# exit
exit
mingdao@paul:~$


I have run grub-install /dev/hda and it returned no errors. Will reboot and try.
 
Old 10-22-2003, 07:17 PM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Quote:
Originally posted by Ming Dao
I still don't understand about the root prompt. Is it $ in RedHat and # in Debian? Maybe I have something else wrong that needs fixing, also.
mingdao@paul:~$ su
Password:
paul:/home/mingdao# exit
exit
mingdao@paul:~$


I have run grub-install /dev/hda and it returned no errors. Will reboot and try.
you're right, i just looked at my root prompt. never looked too closely to it. but it looks like you got the quote before i finished editing.

i hope you made a boot floppy before trying to reboot.
 
Old 10-23-2003, 12:36 AM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Megaspaz,

I was replying to your thread and the power went off. I learned that I had the comp plugged into the incorrect side of my new APC UPS. Can't read the Chinese characters. It's 1:30 p.m. now and power will be off until 6:00 p.m., so I'll boot with the floppy or CD then and check back.

I have grub, but this error:

Booting 'GNU/Debian Linux (vga=normal) root (hd0,6) kernel /vmlinuz ro'
root=/dev/hda6 hdc=ide-scsi hdd=ide-scsi vga=normal

Error 11: Unrecognized device string

Press any key to continue...




The only boot choices were Windows 2000 (I'm there now), Linux and floppy.

Thanks,

He Ming Dao
 
Old 10-23-2003, 12:45 AM   #8
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
post your grub.conf file.

i have a guess from looking at your first post regarding root (hd0,6). on mine linux is on /dev/hda11 and root has the string "root (hd0,10)". try changing every instance of "root (hd0,6)" to "root (hd0,5)" in your grub.conf if you can boot into linux.

Last edited by megaspaz; 10-23-2003 at 12:47 AM.
 
Old 10-23-2003, 09:17 AM   #9
Ming Dao
Member
 
Registered: Oct 2003
Location: Earth
Distribution: Linux 2.6.25.4
Posts: 30

Original Poster
Rep: Reputation: 15
I had some help getting to post once while my power was off. Now it's back, but I can't get the system from any type of rescue. The / filesystem is reiserfs. I will reinstall because I can't seem to get to the menu.lst to change it. Once it's back up and running, I'll post what I have as grub.conf before I hose it again.

Where in this world can I find a manual that explains what grub does, what it is, and how it works so that I can write the menu.lst file from some base of information? Is this the correct one -> http://www.gnu.org/manual/grub/html_mono/grub.html ?
 
Old 10-23-2003, 07:51 PM   #10
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Quote:
Originally posted by Ming Dao
I had some help getting to post once while my power was off. Now it's back, but I can't get the system from any type of rescue. The / filesystem is reiserfs. I will reinstall because I can't seem to get to the menu.lst to change it. Once it's back up and running, I'll post what I have as grub.conf before I hose it again.

Where in this world can I find a manual that explains what grub does, what it is, and how it works so that I can write the menu.lst file from some base of information? Is this the correct one -> http://www.gnu.org/manual/grub/html_mono/grub.html ?
that would be the grub manual alright. just to let you know everything that's listed will be in /boot/grub/grub.conf if you're using grub. that's the file that configures grub. sorry to hear you couldn't get in and have to reinstall.
 
Old 10-23-2003, 08:34 PM   #11
Ming Dao
Member
 
Registered: Oct 2003
Location: Earth
Distribution: Linux 2.6.25.4
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by megaspaz
that would be the grub manual alright. just to let you know everything that's listed will be in /boot/grub/grub.conf if you're using grub. that's the file that configures grub. sorry to hear you couldn't get in and have to reinstall.
What could be worse, right? In the process of attempting to Install Grub Natively rather than the previous way, I hosed by Windblows mbr. It would only boot to grub> when I chose Windows. And fdisk /mbr wouldn't fix it. I use ghost and had an image on the E:\ drive, but lost everything since the last backup date of 10/15 - some email that I wish I hadn't lost

Now I have lilo back as the bootloader, and it works. Why would I want grub rather than lilo anyway?

I am so sick of Windblows and I want it totally out of my computer! But following manuals for open source, such as the Grub Manual, and How-To's, just leave me sick in the stomach! After hours of work a person new to Linux finds out the author either left out some "minor details" which make a major difference, or he assumes you already have a good working knowledge of the application and just need a few pointers! It's driving me insane!

Anyway, I tried RedHat in 1999 and gave up after a few months. I tried it again this May, but found it is too bloated for my taste. Even with a personal desktop installation, and selecting only the packages I really need, it installed 587 packages! And there is no way under the sun for a newbie to understand what to leave in and what to take out. And then trying to use rpm to get something was like a dog chasing his tail for dependencies. Not for me!

So I read for weeks, and decided either Debian or Gentoo would suit me, as you can get a really base installation with very few packages and build from there. APT attracted me to Debian versus building from source in Gentoo, so here I am. I tried the Knoppix v3.3 CD, and it found all my hardware and ran really well. It's now installed on my wife and daughter's PC. There are still things which don't work properly, such as Wine, but more study and configuration should straighten that out.

I want to be Micro$loth FREE more than I want almost anything!!!!!

I'll check back once I'm back into Debian and have a new browser installed. I appreciate your help!
 
Old 10-23-2003, 08:40 PM   #12
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
well with boot loaders, if one is working fine, i never mess with that. what version of windows are you running? if it was xp, then you stick in your install cd and get to recovery console and type "fixmbr". but it sounds like that was too late in coming.
 
Old 10-23-2003, 08:52 PM   #13
Ming Dao
Member
 
Registered: Oct 2003
Location: Earth
Distribution: Linux 2.6.25.4
Posts: 30

Original Poster
Rep: Reputation: 15
Yeah. It's Windblows 2000 and I always partition Windblows using Partition Magic and make all partitions FAT32. That's okay, it's no great loss except the email. I will ghost what I've got now and then boot into Debian and go get the latest Mozilla from unstable. Then I can start getting the packages to build the latest kernel. I don't have support for sound, or my gigabit lan or other hardware until I compile the kernel.

My comp is:
Asus P4PE
Intel P4 2.4 GHz
1GB Kingston DDR333
ATI Radeon 9000
Onboard Intel 810 sound (not Linux friendly)
(2) Maxtor 60GB ATA133 7200rpm (but mobo only supports ATA100 on IDE)
Asus 52X CD-ROM
Sony DRU 500AX DVD+/- RW
Microtek ScanMaker 4850
HP Deskjet 920C
and many other assorted little gadgets

So, I have much configuring to do to get things working as they do with no effort in Windblows

I will be Micro$loth FREE!!!!!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB Error 17 when installing Ubuntu on an External Drive nrbelex Linux - Software 1 11-16-2005 08:06 AM
Installing Grub error. Daanh Linux - Software 6 08-31-2005 06:06 PM
Boot problem: "GRUB Loading stage2read Error" after installing PCI Ethernet card nsyng Fedora - Installation 1 06-06-2005 06:53 AM
Error 15, installing GRUB via SUSE9 jwsnl Linux - Newbie 1 01-29-2004 03:15 AM
Grub Error After Installing Gentoo Crashed_Again Linux - General 3 12-20-2003 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:18 AM.

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