LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices

Reply
 
Search this Thread
Old 04-24-2005, 01:14 PM   #1
aashiks
LQ Newbie
 
Registered: Mar 2005
Location: Cochin
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Post DISCUSSION: How to Dual boot with XP/2000/NT and install linux/windows whenever You want


This thread is to discuss the article titled: How to Dual boot with XP/2000/NT and install linux/windows whenever You want
 
Old 05-23-2005, 03:40 AM   #2
aneroid
Member
 
Registered: May 2005
Distribution: slackware, slax, debian
Posts: 88

Rep: Reputation: 26
modification so that u don't have to reboot into windows to add linux to the OS list

small modification so that u don't have to reboot into windows to add linux to the OS list:
if boot.ini is not on NTFS...
after this step
Code:
dd if=/dev/hdaN of=/mnt/windowsdrive/bootsect.lnx bs=512 count=1
Quote:
replace /dev/hdaN with your Linux root partition name (/dev/hda something) .I had asked you to note it down , hadn't I?

now boot to windows. find out the bootsect.lnx file from which ever drive u wrote it to using the previous command.Copy it to C:\

open boot.ini and add the following line to its end

c:\bootsect.lnx="Linux"
open boot.ini (u're still in linux) and add that line.

to add a newline safely...whether or not it's already there:
Code:
echo -ne '\r\nc:\\bootsect.lnx="Linux"\r\n' >> /mnt/windowsdrive/boot.ini
(note the c:\\ so that \b isn't interpreted).

no winboot required. (useful for kernel compiles and anytime u might run lilo).

anirudh
 
Old 09-24-2005, 01:57 AM   #3
JesusFreak84
Member
 
Registered: Sep 2005
Location: Grand Rapids, MI
Distribution: Ubuntu Feisty Fawn, dual-booted with WinXP Media Center Edition 2005
Posts: 61
Blog Entries: 1

Rep: Reputation: 15
Is there somewhere I can get a windows-compatable partitioner for free?
 
Old 11-22-2005, 07:14 PM   #4
dvius
LQ Newbie
 
Registered: Nov 2005
Location: New Zealand
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
I hope somone sees this soon, cause I really wanna get out of this windows environment!
I installed Ubuntu (latest) and then Win XP Pro. I now cannot get into my Linux OS.. AAARGH!!! I installed Grub on the MBR so when I use an app called "Bootpart.exe" from within Windows to add my Linux line to Boot.ini it works up to the point where I select it from the windows bootloader, and then it says it can't find the system files on me Root partition. So I assume I'm suppose to install grub on the first sector of the Root partition? but how?
My drives look like this:

/ = hda1 ##Root (and boot?) partition for Linux
/usr = hda2 ##other partition for everything else under Linux
WindowsXP = hda3 ##Windows system partition

WindowsStorage = hdb1 ##Just space to store windows related documents etc
WindowsPageFile= hdb2 ##Dedicated windows pagefile partition
/Swap = hdb3 ## Dedicated swap partition for Linux

Windows Storage2 = hdc1 ##more dedicated storage space for windows stuff
/storage = hdc2 ##storage space for music, movies etc under Linux
 
Old 11-22-2005, 08:33 PM   #5
aneroid
Member
 
Registered: May 2005
Distribution: slackware, slax, debian
Posts: 88

Rep: Reputation: 26
it tends to be convenient to install the windows system partition, C: on hda1. if u haven't got too much linux data (user files or storage) on it, u may wanna consider reformatting.

but even i know that's a crappy solution. if u can boot off the cd into the linux on ur hard drive (i think specifying root=/dev/hda1, at least in slackware), then use that to create a lilo or grub conf file. i haven't used grub but in this scenario, the hide/unhide features would work well. check out http://www.faqs.org/docs/Linux-mini/...ith-GRUB.html.

in the partition example he's used, he's got win98 where u've got win xp (1st hard disk, 3rd partition).
Code:
title Windows 98
hide (hd0,0)
hide (hd0,1)
unhide (hd0,2)
rootnoverify (hd0,2)
chainloader +1
makeactive
win2k, win98 and dos follow similar rules. 'hide' all the non winxp boot partitions; specifically the one's before it, since it won't read the linux roots after. (basically, it wants to be on the 1st partition of the 1st disk).

u can store ur config on a floppy with grub-install '(fd0)'. i just read Dual-Boot Linux and Windows 2000/Windows XP with GRUB HOWTO. apparently grub isn't to be installed on the mbr. fyi, i've installed lilo on the MBR (like i said, i haven't used grub). that doc follows the same steps as the parent article. steps from both: write grub to a floppy (optional) and to a file on a shared partition and then add it to boot.ini.

wondering how ur winxp managed to install on hda without using 'hide' and a rescue floppy. did it get formatted?

hth.
anirudh
 
Old 11-24-2005, 12:00 AM   #6
dvius
LQ Newbie
 
Registered: Nov 2005
Location: New Zealand
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
yeah I formatted the whole disk and started from scratch. I first installed LInux (cause that's what i wanted to use) but then kinda jad to install XP.

In light of your answer. I tried using a live CD and got onto my Linux part's fine, but I couldn't get how to actually tell it to install grub to hda1, so I just formattted again and reinstalled Linux.

I'm a little impatient sometimes (and stubborn) :P

thanx for your help though!

d
 
Old 11-24-2005, 01:06 AM   #7
aneroid
Member
 
Registered: May 2005
Distribution: slackware, slax, debian
Posts: 88

Rep: Reputation: 26
no prob.

so finally it was: format, winxp, linux?

u might wanna search the forum for grub specific stuff, i'm sure there are others with similar issues.

anirudh

(right now reading MS's "Removing the Linux LILO Boot Manager" article. kinda funny/strange that they didn't mention why u should. can't beleive they didn't use that as another placement for 'get the facts') :P

Last edited by aneroid; 11-24-2005 at 01:10 AM.
 
Old 11-24-2005, 03:49 PM   #8
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,397

Rep: Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114
Save yourself a lot of hassle and simply buy a second hard-disk drive. Most motherboards have two disk-drive controllers on-board, giving you the ability to easily have three hard-drives and a CD-ROM. (And that's excluding USB 2.0 and/or FireWire if you have those!) Installing a new drive is a snap.

Most machines these days can boot from any drive, as well as (usually) USB/FireWire and maybe even the network. So you can install Linux onto a nice, "pristine" drive .. with a boot loader such as Grub, and an entry for both Windows and Linux on the startup menu. No changes whatsoever need to be made to Windows. You can even make the OS selection directly from the BIOS ("Setup") screen.
 
Old 11-24-2005, 04:19 PM   #9
aneroid
Member
 
Registered: May 2005
Distribution: slackware, slax, debian
Posts: 88

Rep: Reputation: 26
nice option. but he already has 3 drives. hopefully that'll be my setup real soon. my machine (about 3 yrs old) doesn't boot from usb :-( and it's only got usb 1.0. also no OS selection in BIOS.
 
Old 12-01-2005, 07:21 PM   #10
MarioLavoie
LQ Newbie
 
Registered: Jul 2005
Location: Gatineau, QC, Canada
Distribution: SUSE 10
Posts: 1

Rep: Reputation: 0
I had that problem for a long time until I heard of GAG, which solved all my windows and Linux installation problems.

http://gag.sourceforge.net/
 
Old 12-17-2005, 04:51 PM   #11
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
What happened to the original article. It appears to have disappeared.
 
Old 12-17-2005, 05:17 PM   #12
aneroid
Member
 
Registered: May 2005
Distribution: slackware, slax, debian
Posts: 88

Rep: Reputation: 26
all the "answers" are 404. the most recent thread here (DISCUSSION: External USB or firewire drives) is also missing. i think there may be an issue with either the htaccess to handle the url rewriting or...eg. http://www.linuxquestions.org/linux/...P_Server_Howto doesn't use a number for the article (title instead) and the first post in the discussion thread points to it as http://www.linuxquestions.org/questions/answers/276 which is 'not found'.

logical conclusions / paranoia apply :P

anirudh
 
Old 12-18-2005, 03:43 AM   #13
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
I've been having the same problem with some of the tutorials I bookmarked. After some searching I found it's just as you say: the numbering scheme has been replaced by a title. But that means that all the discussion threads have the same problem. Maybe we should ask the moderators to look into a sollution for this inconvenience.
 
Old 12-18-2005, 04:48 AM   #14
aneroid
Member
 
Registered: May 2005
Distribution: slackware, slax, debian
Posts: 88

Rep: Reputation: 26
yeah. either that or the actual db entries for the first posts on the discussion threads which, afaik, is auto generated, will have to be modified/str_replaced whatever. so [u r l="ht..lq.com/questions/answers/123"]A cool topic[/ u r l] has to be made [u r l="ht..lq.com/questions/answers/A_cool_topic"]A cool topic[/ u r l]...assuming all topics are unique and all non alpha characters are converted and searched for in the same way (underscores or whatever).

ofcourse, existing bookmarks won't work, so lq should either continue the new system and use the new urls for new answers AND have provisions for searching by 'id' for old/already existing 'answers'. (yes, waaay too many 'new's)

anirudh

ps: have u informed jeremy or posted/linked to this in "website s & f"?
 
Old 12-18-2005, 04:54 AM   #15
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
I'm on it....
 
  


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
Linux and Dual boot setting up with Windows 2000 Questions??? macmike Red Hat 5 12-28-2006 10:50 AM
DISCUSSION: Sharing Mozilla Mail Messages and Settings on a Dual Boot Linux/Windows Set-up chun-mee LinuxAnswers Discussion 0 03-02-2005 01:34 PM
dual boot with windows 2000 rikke Linux - Newbie 9 12-24-2004 01:00 AM
How to uninstall SuSE Linux 9.0 from a dual boot with Windows 2000? bullitt Linux - General 2 04-20-2004 04:17 PM
Dual boot with Windows 2000 Phillip Hess Linux - Newbie 10 04-23-2001 07:33 AM


All times are GMT -5. The time now is 09:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration