LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-13-2006, 04:46 AM   #1
monkey_eater
LQ Newbie
 
Registered: Sep 2005
Location: Australia, sydney
Distribution: linux redhat fedora 4
Posts: 9

Rep: Reputation: 0
trying to boot linux from windows boot loader


hello

Im new to linux, Any way trying to get my dual boot (windows server 2003 and Fedora 4) to boot off the windows boot loader'

system setup like this

MBR - current boot loader GRUB

hda1 = windows
hda2 = / fedora
hda3 = /home
swap
hda6 vfat(fat32)

i mount the hda6 then use the

"dd if=/dev/hda2 of=/mnt/hda6/fedora.bin bs=512 count=1"
creates the file
then go in to windows edit the boot.ini
G:\ferdora.bin "Fedora"

so i boot the system, i havent deleted grub yet coz i want to be sure the it will work first. So i use grub to go to the chain loader select the fedora and nothing happens, well some error message.

i did this before using a system that all ready was setup with the same software that i didnt setup myself and it worked fine.

Can some one help me or even give a different way this can be achived.

Thank you all!

Last edited by monkey_eater; 05-13-2006 at 05:20 AM.
 
Old 05-13-2006, 05:15 AM   #2
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
You are creating a copy of the whole Linux file system (partition) on a Windows partition. That's not required as far as I've done. Try
Code:
dd if=/dev/hda2 of=/mnt/hda6/fedora.bin bs=512 count=1
instead. This command only gets the first 512b from the Linux file system.

This thing worked for LILO. I never tried to use Windows boot manager when I was using GRUB. But I guess this works too. (I haven't looked into GRUB internels yet)

Last edited by SkyEye; 05-13-2006 at 05:16 AM.
 
Old 05-13-2006, 05:19 AM   #3
monkey_eater
LQ Newbie
 
Registered: Sep 2005
Location: Australia, sydney
Distribution: linux redhat fedora 4
Posts: 9

Original Poster
Rep: Reputation: 0
sorry i did have the 'bs=512 count=1' in the line of code just for got to add it.
 
Old 05-13-2006, 05:25 AM   #4
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Well, what was the error message?

Being more descriptive can help us for helping you :-)
 
Old 05-13-2006, 08:11 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I dont understand what your dd command is supposed to be doing. If you wanted to copy the mbr, you would not use a partition number---you want the 1st 512 bytes of the **disk**--not of the 1st partition.
eg: "dd if=/dev/hda of=<pathtofile> etc"

Actually, note that grub is really the first 446 bytes (after that is a 64-byte partition table, and then the 2-byte "signature") Do if you just want grub, use bs=446
 
Old 05-13-2006, 11:10 PM   #6
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Quote:
Originally Posted by pixellany
Actually, note that grub is really the first 446 bytes (after that is a 64-byte partition table, and then the 2-byte "signature") Do if you just want grub, use bs=446
That's why I said I haven't looked into GRUB internals. Well, here's someone who did..
 
Old 05-14-2006, 08:01 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,739

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Was grub ever installed at hda2?

FYI Using window boot.ini to boot grub.
http://www.geocities.com/epark/linux...w2k-HOWTO.html

In your case since you do not have a seperate /boot you would install grub to hda2.
 
Old 05-14-2006, 01:06 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
Have a look at Task E4 of the last link of my signature.

I think it will work out. That you can use the existing Grub to boot to Window. In Window's NTLDR it lists itself and Linux so that you can boot to either there. Once you are happy with it you can restore Windows's MBR (Task B1 or B2 of the same link) and overwriting Grub at the same time.

Using Windows NTLRD you need to copy the file "fedora.bin", created in Linux using the dd command, into the "C" drive of your XP or Win2k.

Basically NTLRD does not support Linux and so can't (or won't) read a Linux partition to find its boot loader for chainloading. A user must round up each Linux's first 512 bytes of the Linux partition (the boot loader) and copies into the Windows partition for NTLRD to use. It is a pain in the ar?e because Linux can't write on NTFS partition and so "fedora.bin" has to be transfer into a floppy or a Dos partition first and fetched into XP or Win2k later. Editing "boot.ini" also need it to be "unhide" first and "hide" it on completion.

Personally I would stick with Grub or make a bootable Grub floppy or Grub CD to boot the PC. There is no PC system that cannot be booted by a Grub floppy so why bother with NTLRD?
 
Old 05-15-2006, 07:54 AM   #9
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
My pardon;
Speaking of GRUB ,

I have Java system(SUSE) wich is the 'GRUB' of FEDORA 'GRUB' on those GRUB contain WINDOZE.

Those 3 system of mine works fine on 1 drive.
No floppy/'tweaking' at the beginning of the world, just plain install.

Sorry to ask what are you guys getting at 'on the GRUB'?.
 
Old 05-16-2006, 09:05 AM   #10
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
Saike is brilliant.

Let's skip the FLOPPY.

I boot Windoze from compact Flash, why not make bootable GRUB on the CompactFlash.

It's very fast, I guarantee.

Regards
 
Old 05-16-2006, 01:00 PM   #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
Just like the Linux kernel the boot loaders like Grub or Lilo requires a fast response similar to that from a hard disk. USB devices are limited by the USB transmission rate and this causes the standard kernel to panic and the boot loader to hang if a system is booted from a USB device.

A slower bootloader is often used to boot a USB device.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot Loader than can be edited in Windows and Linux BxBoy Linux - Software 6 04-05-2006 12:50 AM
trying to dual boot windowsxp/fc2 using windows boot loader. dr_zayus69 Linux - Software 7 02-08-2005 11:59 PM
GRUB boot loader blocking windows boot julienroger Linux - Newbie 3 10-12-2004 01:11 PM
how can i add windows xp in Linux boot loader mobassir Linux - Software 33 09-11-2003 12:56 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11: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
Open Source Consulting | Domain Registration