LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-14-2007, 09:06 AM   #31
bonito
Member
 
Registered: Mar 2005
Posts: 117

Rep: Reputation: 15

Hola Amigos!

Quote:
Originally Posted by saikee
If you declare "root (hd0,0)" Grub should return filing system unknow Type 0x07 because Grub cannot read a NTFS partition.
I think i've seen that once before, but i never made the connection that it was because of NTFS.

Saikee, i have a crazy Q:
So what if his windows partition on (hd0,0) had been type FAT32?

i know Mohrravvian's partition is NTFS,
BUT if it had been FAT32, do you think his WindozeXP(hd0,0) would have been able to boot Automatically via Grub?

I ask this because i dualboot PCs quite often. And if setting the XP to FAT32 can save me from future grief, i think it would be worth pointing out.

But i dont know, so thats why im asking. Would it have helped him?
Thanks!


Quote:
Originally Posted by saikee
Well your Suse installation has gone south then.
lol
Well, there you have it.
If this is truly the case; what are the General steps Mohrravvian(or whoever) needs to do to get WindowsXP booting normally again without a Grub-CD,etc?

i ask this because you said: "Any MS compatible system that can be booted up and has fdisk.exe can do this job. My advice is even without the XP installation CD and no floppy drive one can download a FreeDos CD iso image to burn it into a CD."

UPDATE:
oh, it looks like you suggest using "Any Win2k or XP installation CD will do the job. Just boot up the installation CD, choose recovery console and type the command fixmbr."

Is that all there really is to do?
I've heard stories of people refortmatting their entire Drive, but Grub was still there.
Can you explain this as if i were a 2nd grader? : )



Lastly,
Code:
root (hd1,0)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
boot
Quote:
Originally Posted by saikee
because the two map statements swap the disk order temporarily on-the-fly to let sda1 regained the first bootable disk status.
Wow, now that is absolutely AMAZING! Grub is truly impressive!!

Last edited by bonito; 01-14-2007 at 09:41 AM.
 
Old 01-14-2007, 09:53 AM   #32
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Grub can read Fat32 but not NTFS partition. However MS systems do not have a kernel as such and so there is no point for Grub to go inside to fetch a file to load into the memory.

Grub can boot any system that it cannot read its inside content by a technique known as "chainloading". Basically Grub cut off the rest of itself except the first 512 byte and "paste" it at the "+1" position of a foreign boot loader, which always hides inside the boot sector of every partition. Thus the command
Code:
chainloader +1
is what I did to boot every one of the 145 systems of Dos, Windows and Linux. Solaris and BSD systems are no different too.

Therefore these simple commands to boot a system residing in the j+1th partition of the i+1th disk (Grub counts from zero) are applicable to all PC systems
Code:
title Operating system in the j+1 partition of the i+1 disk
root (i,j)
chainloader +1
The only necessary condition is to make sure each operating system installs its boot loader in the root partition. There is no more to learn in booting.

On the question of booting a Windows without a Grub CD, you will need a Grub floppy. Alternatively you restore MS's own MBR so that it boots itself. (Task B1 & B2 of the last link of my signature refer)

With a Grub floppy or CD you don't need to know what systems are in a PC, if they are Linux you don't even need a boot loader inside any of them and still fire up everyone as long as each one is healthy.

Enjoy Grub. It is the simplest but the most powerful. If there something difficult in Linux you can safely rule out the boot loaders!
 
Old 01-14-2007, 10:06 AM   #33
bonito
Member
 
Registered: Mar 2005
Posts: 117

Rep: Reputation: 15
Hola!

Quote:
Originally Posted by saikee
On the question of booting a Windows without a Grub CD, you will need a Grub floppy. Alternatively you restore MS's own MBR so that it boots itself.
If i read correctly, Mohrravvian does Not have a floppy drive.

So, just to be clear, he can get his WindowsXP to start "automatically" by:

1- boot up with his XP installation CD,
2- choose recovery console,
3- and then type the command "fixmbr"

Is this what you are saying, saikee?

thank you
 
Old 01-14-2007, 04:29 PM   #34
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Absolutely.

Exactly as written in many MS sites.

XP, as all othe MS systems, relies on a common MBR for booting. The role of the MS MBR is to search every one of the 4 primaries and load the one that has the booting flag switched on. The "fixmbr" is to restore this code.
 
  


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
Problem with Boot up loader blackman890 Mandriva 1 04-09-2005 08:12 PM
problem with boot loader makaveli0129 Mandriva 1 11-02-2004 12:20 AM
boot loader Problem sashhoney Linux - Newbie 0 07-24-2003 03:33 AM
boot loader problem rzee Linux - Newbie 12 02-14-2003 12:49 PM
boot loader problem.. rzee Linux - General 1 02-13-2003 02:43 PM


All times are GMT -5. The time now is 12:22 PM.

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