LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2005, 06:47 PM   #16
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30

I have not been riding my bike lately because I work at the airport, but when I start again I'll probably go back to the usual spots on the weekend
Midvale to East and West (Kelly) river drive. Use to ride my bike to work @ 8th and Chestnut.

Check out this article for an alternative way of installing grub using Knoppix.

http://www.linuxdevcenter.com/pub/a/...knpxhks_1.html



peace V

Last edited by cuiq; 09-15-2005 at 06:50 PM.
 
Old 09-15-2005, 08:33 PM   #17
mngmd
Member
 
Registered: Jan 2005
Location: Philadelphia, PA
Distribution: ubuntu
Posts: 68

Original Poster
Rep: Reputation: 15
So anyway, I tried the live CD solution.

Error: Mismatched or corrupt version of stage1/stage2

AGGH! I'm going to try to reinstall with LILO....
 
Old 09-16-2005, 02:51 AM   #18
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Do whatever you see fit but the message tells me that you have failed to "chroot" from the live CD linux to your distressed Linux.

Change root technique is one of the most important technique for one "jump" from a booted up Linux to another, in your case unbootable.

The reason of mismatched stage1/stage2 is because you are using the Grub of the live CD and not from the distressed Linux.

If you did manage to chroot correctly you would have been using the orginal Grub and that message could not have been reported.
 
Old 09-16-2005, 05:44 AM   #19
mngmd
Member
 
Registered: Jan 2005
Location: Philadelphia, PA
Distribution: ubuntu
Posts: 68

Original Poster
Rep: Reputation: 15
When I tried to chroot, I got some permission error. I don't recall what it was. I was able to reinstall Yoper and get in using Lilo. I put Ubuntu on a separate partition, but have been unable to start it for the 2d part of installation.

I've played with LILO, but you're obviously a Grub pro. Is it worth it for me to change back to grub. During the Yoper install, there's something about reiserfs not being supported by grub??

I had used the grub loader before, but I forget why.

Here's my partition setup as it pertains to the OS.

sda5 -- yoper (bootable)
sda3 -- ubuntu
hdc1 -- winXP

Thanks for the help so far.
 
Old 09-16-2005, 06:37 AM   #20
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
You can use Yoper's Lilo to boot Ubuntu similar to using Ubuntu's Grub to boot Yoper. They are all interchangeable and can be switched around.

You can do it directly by calling the kernel or chain-loading

The latter is much easier.

These are the steps to use Lilo to boot Ubuntu

(1) Boot up Yoper
(2) Make a temporary directory in /mnt as a mounting point -- mkdir /mnt/sda3
(3) Mount your Ubuntu partition -- mount /dev/sda3 /mnt/sda3
(4) Change root to Ubuntu -- chroot /mnt/sda3

Now you are inside Ubuntu

(5) Replicate Ubuntu's Grub inside its partition so that it can be chain-loaded by Lilo -- grub-install /dev/sda3
(6) Exit Ubuntu --- exit

Now yoiu are back in Yoper

(7) Edit Yoper's /etc/lilo.conf to include the following lines

other=/dev/sda3
label=My_ubuntu

(8) Let Lilo validate its configuration file -- lilo

reboot and Ubuntu should be bootable by your Yoper

If I type too quickly and miss out things, just compare my suggestion with Yoper's way booting your Windows in /etc/lilo.conf. Improvise because it is the same technique.

You can make Lilo to boot a maximum of 15 systems. Just don't forget Step (8)!

Last edited by saikee; 09-16-2005 at 06:10 PM.
 
Old 09-16-2005, 04:34 PM   #21
mngmd
Member
 
Registered: Jan 2005
Location: Philadelphia, PA
Distribution: ubuntu
Posts: 68

Original Poster
Rep: Reputation: 15
You the man!!

Thanks!

Now to setup things up the way they used to be....
 
Old 09-16-2005, 06:08 PM   #22
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
You are welcome.
 
Old 09-22-2005, 01:15 AM   #23
bcalder01
Member
 
Registered: Nov 2003
Location: Mexico
Distribution: Debian sarge (x86 & PPC), Ubuntu Breezy
Posts: 42

Rep: Reputation: 15
I too have the same problem ... my up-till-now healthy GRUB packed in yesterday & just hangs (I think I got an 'error 150'? 152??). Following the advice here & in other threads, I did thusly:

mkdir /mnt/hda7 (my Debian /)
mount /dev/hda7 /mnt/hda7
chroot /mnt/hda7
grub-install /dev/hda

And I am getting "The file /boot/grub/stage1 not read correctly".

Any thoughts??
 
Old 09-22-2005, 04:34 AM   #24
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If your Debian uses Grub it would have a copy of stage1 and stage2 stored elsewhere other than in /boot/grub.

I would do a find to locate the original stage1 and stage2 files

find / -name stage1

which will be compatiable with the Grub compiled with the original Debian. Copy these two files to /boot/grub and try again the grub-install command

It is rare for Grub to get corrupted.
 
Old 09-22-2005, 09:29 AM   #25
bcalder01
Member
 
Registered: Nov 2003
Location: Mexico
Distribution: Debian sarge (x86 & PPC), Ubuntu Breezy
Posts: 42

Rep: Reputation: 15
> It is rare for Grub to get corrupted.

I thought so too ... very surprising.

Thanks for the tip on the multiple Stage1 & 2's. I'll try your technique & let everyone know what happens.
 
Old 09-23-2005, 10:49 AM   #26
bcalder01
Member
 
Registered: Nov 2003
Location: Mexico
Distribution: Debian sarge (x86 & PPC), Ubuntu Breezy
Posts: 42

Rep: Reputation: 15
You were right, there were other copies of stage1 & stage2. I copied both over to /boot/grub and ran grub-install. Still getting the same error, "The file /boot/grub/stage1 not read correctly".

grrr ...
 
Old 09-24-2005, 03:15 PM   #27
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
You can try one more.

Instead of doing a Grub-install, activate Grub prompt at root terminal

grub
root (hd0,6)
setup (hd0,6)


Have a look in /boot/grub/device.map to see if Grub has mao your hdds correctly.
 
Old 09-24-2005, 07:14 PM   #28
bcalder01
Member
 
Registered: Nov 2003
Location: Mexico
Distribution: Debian sarge (x86 & PPC), Ubuntu Breezy
Posts: 42

Rep: Reputation: 15
Thanks, Saikee.

In the interests of (not enough) time, I did a reinstall using Kanotix, which I had been wanting to check out. I'll downgrade it to testing & see how it is for me. Grub is working fine post-install.
 
  


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
fresh instlalation hanging on boot (grub?) tenfourzero Linux - General 2 09-06-2005 12:04 PM
GRUB hanging at bootup (Fedora Linux, dual boot Windows XP) Forezt Linux - Software 4 12-07-2003 12:52 PM
Grub hanging on RH9 deejaya Linux - General 11 09-29-2003 04:53 PM
X is hanging SLaCk_KiD Slackware 1 03-03-2003 03:38 PM
Grub hanging Syncrm Linux - General 2 11-27-2002 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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