LinuxQuestions.org
Review your favorite Linux distribution.
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 06-02-2013, 09:52 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908
Blog Entries: 26

Rep: Reputation: 49
had grub2 . I replaced it with grub 0.97 . ubuntu 10.04 does not boot


Hi ,
ubuntu 10.04 installed grub2 by default. I installed tiny core OS later. I installed grub-0.97 which overwrote grub2 . I can easily boot iny core using
entry in /boot/grub/menu.lst as follows


title tinycore
root (hd0,0)
kernel /boot/vmlinuz waitusb=10 loop.max_loop=256
initrd /boot/core.gz

Similiarly I tried for ubuntu

title ubuntu
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-21-generic ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
I get dropped to initramfs prompt.
The files exist at location pointed to. I did not change their ownership or permissions.
I had simply noted down the entries of grub2 before changing to grub-legacy.
I like ubuntu 10.04 because I have its 47GB repository saved on my offline-computer.

What can I do to boot ubuntu-10.04?
 
Old 06-02-2013, 12:01 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,499

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
The entries you posted both point to (hd0,0) or sda1. Did you install Tiny Core over Ubuntu, to the same partition? If Ubuntu is on a different partition, you will need the correct entry. There are two different types of entries I use to boot systems with Grub2 from Grub Legacy shown below:

Quote:
title sda10-Mint-13-Cinnamon
root (hd0,9)
kernel /boot/grub/core.img

title sda12-Zorin
root (hd0,11)
chainloader +1
You need to determine which partition has Ubuntu and change the root line above to the appropriate drive/partition number.
Have you tried mounting whichever partition Ubuntu is on to see if the files are there.
 
1 members found this post helpful.
Old 06-09-2013, 07:32 AM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
To yancek ,
I will give more details & try your suggestion.
 
Old 06-11-2013, 06:52 AM   #4
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
'chainloader =1' says invalid executable elf file format .
I noticed that grub2 used linux <path to kernel> while legacy grub has no command called 'linux' . So i used kernel <path to kernel> followed by initrd <path to initramfs>
The message that follows indicate a little success but finally drop me to <initramfs> prompt.
 
Old 06-11-2013, 08:19 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,499

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
'chainloader =1'
That's not the actual entry you used, is it? You forgot to post the actual changes you made which you will need to do to get help. The entry you posted for Ubuntu in your initial post will not work when you are booting with Grub Legacy. Either of the options I showed you in my last post should work for a system with Grub2. I have used both on numerous occasions successfully.

Do you still have Tiny Core installed with its Grub Legacy bootloader in the master boot record?
Are you still able to successfully boot it?
Yes, Grub2 uses 'linux' in place of 'kernel' for the its entries.

Also, it would be helpful if you posted the output of the fdisk -l command run as root with an indication of which partition has TinyCore and which has Ubuntu.

Last edited by yancek; 06-11-2013 at 08:20 AM.
 
Old 06-12-2013, 06:32 AM   #6
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
i meant + . '=' was a typo while posting.
I overwrote grub2 with legacy-grub
I can boot tiny core in legacy-grub. I did not change any grub2 files.
 
Old 06-12-2013, 08:39 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,499

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
What entry do you have in the TinyCore menu.lst for Ubuntu? Grub Legacy counts drives and partitions from zero unlike Grub2.
Which partition is Ubuntu on?
Do you get any message when you try to boot Ubuntu? The initrafs error?
 
Old 06-13-2013, 06:57 AM   #8
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
further

please see attached screenshot.
Also see attached text file which is /boot/grub/menu.lst
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	19
Size:	205.0 KB
ID:	12701  
Attached Files
File Type: txt menu.txt (268 Bytes, 29 views)

Last edited by sumeet inani; 06-13-2013 at 07:00 AM.
 
Old 06-13-2013, 08:14 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,499

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Your TinyCore and Ubuntu root lines both point to the same partition so if TinyCore boots with that entry, you will need to change the Ubuntu root line to the correct partition. You have TinyCore on sda2 and windows 7 on sda4.

Quote:
root (hd0,1)
Change that line to indicate the correct partition for Ubuntu. Also, you need to use either the chainloader or core.img entries I posted above.
 
Old 06-13-2013, 10:14 AM   #10
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Actually I have installed tiny core & ubuntu on same partition which is ext3 while windows 7 is on an ntfs partition .
Actually the initrd & kernel files of tiny core have different name from that of ubuntu so there was no question of confusion between tiny core & ubuntu.

'chainloader +1' did not work for ubuntu.
I will try /boot/grub/core.img & revert back.

Last edited by sumeet inani; 06-13-2013 at 10:15 AM.
 
Old 06-14-2013, 08:49 AM   #11
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
login problem & hardware problem

kernel /boot/grub/core.img

did the trick.
Thanks yancek.

I had changed ownership of all files of my ext2 partition to tc:staff (my tinycore equivalent) which caused ubuntu to crash . I remember my login name in ubuntu (lxuser) but do not know what was the default group . I tried at recovery root prompt
chown -R lxuser:lxuser /
That did not help.

Also my computer has VGA & HDMI port on graphic card which are separately attached to CRT & my TV . I see that TV goes off after startup splash screen ends though CRT shows login error messages. Please suggest ?

Last edited by sumeet inani; 06-14-2013 at 08:56 AM.
 
  


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
[SOLVED] old grub of ubuntu replaced by 0.97 of fedora dexter.gdv Linux - Software 4 02-05-2011 10:23 AM
How do I need to format grub entry to boot from grub2 into grub legacy? mitchell7man Linux - Software 6 04-03-2010 03:03 AM
[SOLVED] How do I boot up In Grub2 If It is using grub legacy now ? obnascar Linux - Software 2 10-22-2009 12:08 PM
From which Red Hat Version, boot loader Iilo was replaced by GRUB usonule Linux - Newbie 7 12-21-2008 12:31 PM
Error 18 when trying to boot with GRUB or GRUB2 DaneM Linux - Software 6 09-20-2005 02:45 PM

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

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