LinuxQuestions.org
Visit Jeremy's Blog.
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 04-28-2010, 12:44 AM   #1
tired_of_microshaft
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
dual booting from a 2nd hard disk


I have 2 IDE drives, Windows XP is on the Master drive & Fedora 12 is on a partition the other drive.
I purposely installed the Linux boot loader on the same drive as Fedora because want to use NTLDR as the primary boot loader.

According to a guide I found (http://www.linux.com/archive/feature/113945), I should be able to copy the Linux boot sector to a file & put that copy on the Windows drive & then modify boot.ini, so Iím prompted to with an OS choice a startup. The problem is the command the guide gives to copy the Linux boot sector (dd if=/dev/hdb1 of=bootsect.lnx size=512 count=1) has outdated syntax and does not work.

What syntax would make this command work in Fedora 12?

Another guide I found (http://fedorasolved.org/Members/rask...-vista-already) suggested using: Grub4Dos & modifying boot.ini
This method almost worked until grub gave an error that there was no kernel loaded.

What would I type into the grub prompt to load the kernel?

How would I automate the loading of the kernel, so I donít have to specify the kernel each time?
 
Old 04-28-2010, 03:05 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,189

Rep: Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507
this is what i do
( well it was fedora and xp -- now it is xp arch and Cent)

boot using the install dvd - in rescue mode -
and after you " chroot /mnt/sysimage"

use the dd command

BUT if you also mount the xp disk you can bypass the need for copping the Fedora.bin file to a 3.5 flop

and just copy it to your windows c drive

a part of a back up copy of my instructions
Code:
 -----------------------------
chroot /mnt/sysimage 
/* root login */
root
( my password)
mkdir /mnt/windows
mount -t ntfs-3g /dev/sda1 /mnt/windows
dd if=/dev/sd?? of=/fedora.bin bs=512 count=1
/* ?? is where the boot is */
cp /fedora.bin /mnt/windows
/* or run */
dd if=/dev/sd?? of=/mnt/windows/fedora.bin bs=512 count=1
nano /mnt/windows/boot.ini
/* and add    C:\fedora.bin= " Fedora "  
(ctrl+o ) and <enter> to save*/
 
Old 04-28-2010, 04:15 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,884

Rep: Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191
Quote:
Originally Posted by tired_of_microshaft View Post
I purposely installed the Linux boot loader on the same drive as Fedora because want to use NTLDR as the primary boot loader.
Same drive as Fedora ??? - or same partition ?.
If the former try "if=/dev/sdb" - if the latter try "if=/dev/sdb1"

Otherwise should work. Can't do any damage.
 
Old 04-28-2010, 04:54 AM   #4
tired_of_microshaft
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
There doesn't seem to be a rescue mode for the installation disk I have, apparently it's only a Live CD.
Entering: chroot /mnt/sysimage
gave me a Permission Denied error. It didn't prompt me to enter the root password.
The other commands should work if I didn't get Permission Denied errors, any ideas?
 
Old 04-28-2010, 04:04 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,189

Rep: Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507
a qusetion then ??
how are you booting into fedora ???? or are you not .
ALL of the above post must be done before the "first boot" or there will not be a first boot.

unless there is a very good reasion do not use my method
use GRUB to boot windows xp
and NOT xp to boot fedora

Last edited by John VV; 04-28-2010 at 04:06 PM.
 
Old 04-28-2010, 06:07 PM   #6
tired_of_microshaft
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I'm not booting Fedora from the local drive, I'm using the live CD to access the Linux partitions that it made on the local drive.
I think the Permission Denied errors are because the live CD doesn't log on as root.
 
Old 04-28-2010, 07:19 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,189

Rep: Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507
well you will need a disk that has dd on it
download the fedora 12 install dvd ( 3.7 gig's of it)
but "SystemRescue-cd " should do it
http://www.sysresccd.org/Main_Page

or reinstall xp and fedora and use grub to start xp
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount 2nd Hard disk bjlatt Linux - Newbie 5 01-26-2010 03:22 PM
Mounting and using 2nd hard disk daveturnbull Linux - Hardware 1 11-30-2007 05:41 AM
Booting from 2nd IDE Hard Disk RamanaRao Linux - General 1 10-28-2006 01:54 AM
dual booting slackware and 2nd distro stevielawson Slackware 5 01-09-2006 11:47 PM
Booting to 2nd Disk Stingray Linux - Software 2 01-09-2005 10:21 AM

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

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