LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-14-2005, 04:32 AM   #1
greythorne
Member
 
Registered: Apr 2004
Posts: 363

Rep: Reputation: 30
reinstalling grub.


hello ppl,

now i have ubuntu installed. but also installed win2000 in doing that my mbr was over written now how do i reinstall grub boot loader to mbr?

thnx
 
Old 11-14-2005, 05:09 AM   #2
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
sudo /sbin/grub-install /dev/hda
 
Old 11-14-2005, 11:39 AM   #3
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
The above instruction has to be issued inside the unbootable Ubuntu, by changeing root to it with a Live CD.

If your Ubuntu is in, say /dev/hda3 partition, you change root to it from a Live CD

mkdir /mnt/hda3
mount /dev/hda3 /mnt/hda3
chroot /mnt/hda3

at this point do a grub-install as per BittaBrotha's instruction, reboot and Ubuntu will be yours.
 
Old 11-15-2005, 05:55 AM   #4
greythorne
Member
 
Registered: Apr 2004
Posts: 363

Original Poster
Rep: Reputation: 30
ok. but is it possible to use the ubuntu install CD but when it comes to install i just choose to install grub on the mbr?

thnx.
 
Old 11-15-2005, 06:21 AM   #5
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
I think Ubuntu has two types of CD and one of it is Live CD while the other is an installation CD. The lattter will guide you through possibly with a re-installation. The former is therefore a lot quicker.

You can restore "any" Linux boot loader with "any" Live CD. It will always work if your system was operable before, so learn to use it.
 
Old 11-18-2005, 09:30 PM   #6
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
GRUB and LILO always conflict with Windows. And GNU GRUB is not so robust, causing many problems during boot.

So try GRUB for DOS please. It is a cross-platform boot loader based on GNU GRUB. The GRUB.EXE can be started from DOS/Win9x; and GRLDR can be started from BOOT.INI of Windows NT/2K/XP/2003; and even more, the GRUB.EXE can be started from LINUX via the KEXEC tool.

By using GRUB.EXE or GRLDR, you don't have to touch your MBR. It is the safest way coexisting with DOS/Windows.

You needn't install GRUB for DOS. Just run GRUB.EXE from DOS, or append a line of "C:\GRLDR=START GRUB" into your BOOT.INI(restart and select the "START GRUB" menu item), that will do.

Download GRUB for DOS here: http://freshmeat.net/projects/grub4dos/

There is a fat12grldr.img file with the GRUB for DOS release. You can create a GRUB bootable floppy with this fat12grldr.img file.

Or, you can just copy GRUB.EXE to your DOS floppy and run GRUB.EXE to enter the GRUB environment.
 
Old 11-19-2005, 01:06 AM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
ignoring tinybit's bit of spam for a moment (all 55 posts are the same)

You can use the ubuntu install cd as a linux rescue cd and chroot from there. It's just that the live cd is so much more intuitive.
 
Old 11-19-2005, 04:11 PM   #8
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
tinybit's Grub for DOS is a respectable software and has its rightful place in Linux.

I have tried it out today. It enable me to go from Dos 6.22 to Win3x and Win9x without a reboot. Yes it is a nice bit of software between real mode operating systems.

Of course it can launch Grub to boot any Linux too.
 
Old 11-19-2005, 07:23 PM   #9
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
Thank you all for the replies.

I needn't beg someone to use the software. This grub4dos is GPL, and I cannot benefit from it. I don't care whether someone would use it. I think, only Microsoft would hate this software.

Yes, LILO and GRUB is good enough. GRUB4DOS is based on GRUB. But GRUB4DOS has done much more. I have worked on this for 3 years, and I think it is the right time to introduce it to people who does not know it.

saikee: Thank you very much.

BTW. GRUB.EXE can be used to boot real-mode GRUB off a running Linux system thru KEXEC. This enable you to boot other OSes without having to reboot your machine. Of couse LINUX kernel should be KEXEC enabled before you can run KEXEC. Refer to KEXEC for more info.
 
Old 11-19-2005, 11:55 PM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
This is all very well and wonderful, and I'm sure grub4dos is worthy - however: was it absolutely required to spam everyone to announce it? Especially since the issues the spam posts arrived in were mostly stated as "solved" at the time and mostly involved things which grub4dos has no special advantage.

It is one thing to suggest software in responce to a problem which could really benifit from it and quite another to blanket post without discrimination.

Perhaps better would have been to post in general a:
HOWTO: run multiple OS's without rebooting.
(as a title) then a link to the project page and a rundown of capabilities... as you have.

People who havn't seen it and could benifit could be referred to the post by those who have seen it. Let the community spread the word. (You also failed to mention wingrub.)

In fact - without discrimination, it is quite possible (with spam - likely) that someone who would not benifit will actually be worse off by installing this. In fact - I uncovered two on other forums. Go check the results of these posts.

Quite apart from this, LQ has rules about duplicate posts. It's quite bad manners to post two the same, what do you think would happen if folk were to get away with 50-odd?

Oh, and I see you've spammed the responce too!

But, 'nuff said, we'll let a moderator decide shall we?

Last edited by Simon Bridge; 11-20-2005 at 12:09 AM.
 
Old 11-20-2005, 04:15 AM   #11
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
I use Grub4Dos for avoiding rebooting is purely a personal choice as I don't have a problem in booting with Grub.

The normal use of Grub4Dos is to help someone to boot up Grub from a FAT16 or Fat32 partition. To be able to launch a GNU/Linux boot loader within these M$ partitions can be a formidable weapon, especially for Windows users, inexperience in Linux, stuck with a booting problem.

In the duration of one weekend I downloaded Grub4Dos and could used it to move around between 3 versions of DOS and 2 Windows without a rebooting but was able to boot up any of my 50+ systems at the same time. Since Grub4Dos operates in DOS and so the booting can be made dead simple with a batch file like boot.bat containing just one line

\grub4dos\grub --config-file=%1,%2/boot/grub/menu.lst

This can allows me to boot say Suse 10 at hda43 (at the end of a 200Gb IDE disk) by typing this line in DOS

boot (hd0,42)

or boot (hd3,14) for Slackware 10.2 in sdb15 (in 2nd 200Gb Sata disk)

or boot (hdi,j) for any jth partition in disk i.

It is a feat on its own that I can boot these Linux from a Fat16 partition which DOS 6.22 has no address capability beyond 2Gb and is incapable of working with a Sata!

I was sketical about Grub4Dos initially thinking this may be a "loadlin" mark 2, a Linux boot loader has since nearly vanished to give way to Lilo and Grub.

tinybit is the "author" of Grub4Dos and his reply can be very useful to many users. Anybody who can write such a piece of software is an expert and very knowledgeable by default.

GNU/Linux is to provide a user with functionalities and it is up to the user to make use what is available. One who can't be benefited from Grub4Dos may regards it as a spam but for others the offer can be inspirational, valuable and educational.

I happen to belong to the latter after 1.5 days experience with it. I am sure Grub4Dos can offer much more when I start to launch it from the Linux side.
--------------------

Despite being green in Linux with only 1.5 years home use I like to point out that Grub can be installed "unattached" to an operating system to boot a system manually. Grub is therefore a "mini" DOS. It has its own command interpretor (from stage2) and uses the same batch file scheme as in DOS. The menu.bat is Grub's batch file! Grub can be installed in a floppy, a CD, a root partition of a system, own partition without an operating system and the MBR to serve whatever our need.

Therefore a software like Grub4Dos which actually can allow DOS and Grub to load and unload each other repeatedly is a real "breakthough"!

Last edited by saikee; 11-20-2005 at 04:31 AM.
 
Old 11-20-2005, 04:50 AM   #12
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
This is being designated as spam because an identical post has been added to just about every single "bootloader" thread. As I have said before, if you (ar anyone) wants to bring a project to the attention of our members, use a link in your signature block and put the link in your profile. DO NOT POST IT TO AS MANY THREADS AS YOU CAN FIND.

This software is not the answer to every bootloader problem and should not be posted in every bootloader thread.

tinybit - while I accept that you think you are doing us a favour by doing this, please stop it now.
 
Old 11-20-2005, 05:50 AM   #13
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
I have been enthusiastic in answering some users on the booting problems recently.

Don't know what tinybit have done to other posts but he has sent his reply to 14 thread that I have been answering and every one was to do with Grub (i.e. has Grub is in in every thread's title).

He certainly wasn'y spreading spam in these 14 threads.
 
Old 11-20-2005, 05:50 AM   #14
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
I am new to the forum. Say sorry once more.

Thank you for not kicking me out. But now, I should go to the development side of this software.

You all are experts, so I don't worry GRUB4DOS could disappear in LQ. Bye bye.
 
Old 11-20-2005, 08:01 PM   #15
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I have been enthusiastic in answering some users on the booting problems recently.
Very good and well done.
Quote:
Don't know what tinybit have done to other posts but he has sent his reply to 14 thread that I have been answering and every one was to do with Grub (i.e. has Grub is in in every thread's title).
But each post was identical, they were posted within seconds of each other, what does that suggest? - were those 14 to the point of the question being asked?
Quote:
He certainly wasn'y spreading spam in these 14 threads.
Spam or not - these are massively duplicated posts, likely from a bot. A single duplication produces a short reminder of the rules and can be put down to a sluggish browser/server responce.

Personally I'm inclined to think that tinybit was genuinely trying to help. Had each of the posts shown that tinybit had actually read the previous posts, then that would be fine and dandy.

This particular action is not, on the scale of things, a very large offence. I mean, the intent was genuine and the posts likely to be helpful in many cases. However, allowing this sort of thing (massive multiple posts highlighting a project or website) is allowed to pass, LQ could end up like so many other forums and disapear under the weight of advertising.

tinybit: be not descouraged by the flaming - this is a mild roasting (or maybe a moderator has contacted you inprivate?) There is certainly room on LQ for grub4dos. Just don't multipost like this.

You know a great tool that can help many people - go look for people to help and post a personal reccomendation. There are many now using grub4dos who would benifit from the designers insights. You could be a valuable addition to the LQ community.

I hope you stick around.

And that's all the time I have for this topic.
Moderators can sort out the fallout from here
 
  


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 not reinstalling jboo Linux - Software 5 10-02-2005 10:55 AM
reinstalling GRUB 0perat0r Linux - Newbie 7 05-02-2005 02:30 PM
Reinstalling grub darkangel29 Linux - Newbie 3 04-03-2005 05:53 PM
reinstalling grub ELconkestador Linux - Software 1 02-12-2005 10:22 PM
Reinstalling GRUB Petelow Linux - Newbie 1 05-24-2004 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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