LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-19-2004, 06:44 AM   #1
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Rep: Reputation: 15
VERY URGENT please (grub problem) :(


i have got a very urgent problem.... I can't boot any more the windows partition n my office (i tried to install mdk 10 esterday and I made a lot of confusion with the bootloaders )

i can boot mdk 10 without any problem, but when I select "windows" from the lilo graphial manager, it starts the grub command-line!


so my question is:

how can I boot the windows partition, which is hda1, with grub?

which command I must typ in to boot it up?

please help me


EDIT: I've tried tiping in these commands:

root (hd0,0)
chainoader +1
boot

..and in this case grub tells me: "Loading grub Second stage", but later it shows me the previous command line menu! Like a loop!

Last edited by moly82; 02-19-2004 at 06:52 AM.
 
Old 02-19-2004, 07:28 AM   #2
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Don't know a thing about grub (I use LILO), but you can 'fix' your MBR so you can boot into windows, then worry about fixing your mandrake problems later.

You'll need a windows bootdisk (if you don't have one, shame on you, you can download an image here).

Use it to boot your computer, then use the command:

fdisk /mbr

This will 'fix' the Master Boot Record as far as windows is concerned.

As I say, you can fix your mandrake install later with a linux bootdisk. Don't have one of those, either? Tsk-Tsk.

BTW nobody cares if your problem is URGENT. Or even if it's VERY URGENT. Everybody's problem is URGENT. So calm down and hopefully someone will have an answer for you when they can get around to it. After all, we're all volunteers here.

Enjoy!
--- Cerbere
 
Old 02-19-2004, 07:58 AM   #3
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Cerbere
Don't know a thing about grub (I use LILO), but you can 'fix' your MBR so you can boot into windows, then worry about fixing your mandrake problems later.

You'll need a windows bootdisk (if you don't have one, shame on you, you can download an image here).

Use it to boot your computer, then use the command:

fdisk /mbr

This will 'fix' the Master Boot Record as far as windows is concerned.

As I say, you can fix your mandrake install later with a linux bootdisk. Don't have one of those, either? Tsk-Tsk.

BTW nobody cares if your problem is URGENT. Or even if it's VERY URGENT. Everybody's problem is URGENT. So calm down and hopefully someone will have an answer for you when they can get around to it. After all, we're all volunteers here.

Enjoy!
--- Cerbere
I forgot to write down that I have already tried fixing the MBR with the boot floppy!! I'm not a newbie like that!

but also doing like this, grub appear when I boot up the pc!

it's very strange, it's incredible, but it happens.
I don't know how to proceed with the windows booting up from grub command line


About the "very urgent", I'm sorry I didn't mean to hurt your feelings, so if someone can edit the title no problem, do that!


PS: I know that all the problems for you have the same priority, but it isn't true that all the problems are exaclty the same!

for example, if someone can't install a kde theme, it's a kind of problem, it's not very important, is it?
but if someone (like me), works in the office every day with Windows 98, and after an attempt to install linux can't boot windows any more, it's not the same problem! If my bosses discover me I'm died!

I don't know what to do, please help
regards
 
Old 02-19-2004, 08:11 AM   #4
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
OK. you can boot into linux and check out if there are any discripancies in the grub.conf file. It is locaterd in /etc/grub

do

less grub.conf

and copy the output here. I am sure the problem can be easily solved

Cheers.
 
Old 02-19-2004, 08:49 AM   #5
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by LinuxLala
OK. you can boot into linux and check out if there are any discripancies in the grub.conf file. It is locaterd in /etc/grub

do

less grub.conf

and copy the output here. I am sure the problem can be easily solved

Cheers.

I hope so otherwise they'll destroy me

I don't have any /etc/grub directory because I've installed mdk10 3-4 times in order to try to solve the problem, and I didn't install grub any more, I installed lilo. for this reason in the mdk 10 partition I don't have any file related to grub, but it is still present in the hard drive, I don't know exactly where, and I don't know how is it possible that booting the PC it still appear!

waht can I do?
 
Old 02-19-2004, 09:43 AM   #6
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
Did you even write it to the master boor record? If you wrote it to the superblock and mdk is set to the boot partition it may just be going right to that. I think that if you choose repair from the windows disc it'll see that windows is no longer the active boot partition and "fix that" and it should also write the master boot record again. You might want to go to a windows forum to find relevant info, I just remember someone saying that the discs should do that, aka, I don't actually know.
 
Old 02-19-2004, 10:04 AM   #7
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
OK. If u have installd lilo and grub is not going away, then you have to clean the mbr.

Use a windows boot floppy and do
fdisk /mbr

Now your mbr is empty and grub won't show. Now insert the Mandrake CD1 and theer should be a rescue utility theer. Use it to install lilo.

Quote:
I have already tried fixing the MBR with the boot floppy!! I'm not a newbie like that!
Try this again OK
 
Old 02-19-2004, 10:44 AM   #8
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by LinuxLala
OK. If u have installd lilo and grub is not going away, then you have to clean the mbr.

Use a windows boot floppy and do
fdisk /mbr

Now your mbr is empty and grub won't show. Now insert the Mandrake CD1 and theer should be a rescue utility theer. Use it to install lilo.



Try this again OK
I've already done this! many times! I installed lilo 5-6 times, grub 4-5 times.. I'm doing a mess I know

the very very strange thing is that I also did 3-4 times:

fdisk /mbr

...but also doing like this, at next boot up of the system, grub appear again! I also tried installing lilo after the finxing of the MBR sector, but grub apear every time!

the problem is that probably yeterday I installed grub in the hda1 partition! and now I don't know how to delete it from there!


any suggestion?


bye
 
Old 02-19-2004, 04:41 PM   #9
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
Well, if you're really scared of your boss and know that this is hurting productivity just buy a new hard drive. it's worth your job right? You'll have a working windows box and You can pull all your important files off your old hard drive simply enough and you have another HDD for your home computer. If you want to install mdk again make sure you tell it to use lilo and that it is to use the mbr. The menu is also much nicer then grubs(although not being able to use spaces sucks).

If your company has an IT crew they will have an image of the companies hard drive.
 
Old 02-19-2004, 05:30 PM   #10
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Original Poster
Rep: Reputation: 15
i have an "hold" 4gb hard disk at home and i'll ty it tomorrow

i've already thought about this solution, but i'd like to solve the problem on the same hard disk!
 
Old 02-19-2004, 06:33 PM   #11
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
have you tried reinstalling grub instead of LILO?
 
Old 02-20-2004, 12:15 AM   #12
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
So, what you are saying is that cleaning up the mbr does not rid you of grub because you probably installed it to hda1 Whoa...

But your hda1 is the Windows partitions right?

Try mounting the windows partition under linux.
mount /dev/hda1 /mnt/floppy
should work

If you mount successfully and can see all data, that's good. If not, it might be doomsday...
 
Old 02-20-2004, 12:45 AM   #13
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Quote:
EDIT: I've tried tiping in these commands:
root (hd0,0)
chainoader +1
boot
I was just looking at your first post....why dont you try the following

1. Install grub once-more, just in case it isnt installed.....

2. in the file grub.conf, locate the section for Windows....and if it isnt there...then add the following lines at the end of the file...

title Windows 98
rootnoverify (hd0,0)
chainloader +1

Regards,

amit
 
Old 02-20-2004, 01:03 AM   #14
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
Hi amit

grub has been installed repeatedly and so has been lilo. Check out post #5

The problem is, she has installed grub in hda1 That is why it does not go away with fdisk /mbr

I think to remove boot loader from partition you need to do
fdisk /mbr x (where x is your partition, in this case hda1)


I am not too sure about this and most probably all data on hda1 will be lost by this


Try mounting the windows partition under linux.
mount /dev/hda1 /mnt/floppy
should work

If you mount successfully and can see all data, that's good. If not, it might be doomsday... in the sense that all data is lost and you might as well format that partition.
 
  


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
Urgent! Grub Boot Loader! Help! greenjm90 Linux - Newbie 41 08-17-2005 06:03 AM
GRUB : just write grub in black screen. (Urgent) dezeque Linux - Newbie 11 05-27-2005 01:47 PM
URGENT: Grub Boot Problem thebear Linux - General 5 09-16-2003 11:02 PM
URGENT HELP > Booting into DOS with GRUB GodFoca Linux - General 4 07-15-2003 08:49 AM
URGENT....GRUB problem jdevanand Linux - Software 8 05-03-2002 03:52 AM


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