LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-06-2003, 08:46 AM   #1
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Do I have to install windows first? :(


I am sick of installing and reinstalling linux and windows... I have linux how I want it pretty much but I want to put xp on another partition. Is there any easy way to install windows and then I dunno re-instate grub?

Adam
 
Old 09-06-2003, 08:58 AM   #2
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Yes there is...

Install windows as normal, then switch your bios to boot from CD. Use the redhat boot cd to load a basic linux shell. Login as root.

Now type as follows :

mount /dev/hd? /mnt

chroot /mnt

this should now leave you logged in as root on YOUR system disk. Remeber to replace ? with your disk address.

You can now reconfigure grub. I'm not sure how, i use lilo, but i'm sure it's easy, lilo is just a case of typing :

lilo (return) and it adds your bootloader again. I suppose it's similar with grub.

Hope that helped !
 
Old 09-06-2003, 09:00 AM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
Windows always tries to replace the bootloader. Just boot intlo linux afterwards using a floppy or "linux rescue" mode from CD1 then rn:
/sbin/grub-install /dev/hda

This will reinstate grub on the MBR of the primary master ide drive.
 
Old 09-06-2003, 10:09 AM   #4
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Before I do anything drastic

So all I need to do is install windows and then boot from my boot floppy (linux made when I was installing it) and literally type:

/sbin/grub-install /dev/hda

I dont need to substitute anything or anything like that?

Adam
 
Old 09-06-2003, 10:12 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
That should work fine assuming you login as root and that hda is the drive you want to install grub to the MBR of - more than likely it will be.
 
Old 09-06-2003, 10:19 AM   #6
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Root

when you say log in as root you mean just boot off the disk and when I get the prompt typ su and my password? Then do the above?

Adam
 
Old 09-06-2003, 10:24 AM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
Yes, Or just use the username "root" and type the password you usually type after "su -". It is the same thing
 
Old 09-06-2003, 01:27 PM   #8
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Your not going to believe this

Hey when I try to boot of my boot disk it gives me an error :
syslinux 2002-10-25
Boot Failed

I cant seem to make another disk either with instructions that I found on the net because when I type:

[adam@localhost adam]$ fdformat /dev/fd0H1440
/dev/fd0H1440: Device or resource busy
[adam@localhost adam]$

I have tried mounting and unmounting the floppy but I dunno what to do now!

Lucky I tried the boot disk BEFORE installing windows!

Adam
 
Old 09-06-2003, 01:48 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
The alternative is:
1) boot with CD1
2) at the "boot:" prompt type "linux rescue"
3) once the system has booted run "chroot /mnt/sysimage"
4) Run the grub install "/sbin/grub-install /dev/hda"
5) Remove the cd and reboot "shutdown -r now"
 
  


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
Accidental Install of Windows Second....Install GRUB? Brnzwngs Linux - Newbie 6 08-12-2005 01:10 PM
Fedora Core 3 install screwed up my Windows XP install MichaelD Fedora - Installation 6 06-10-2005 02:54 PM
Windows with Linux..can't boot windows or install imari1027 Mandriva 4 11-13-2004 01:00 PM
Linux/Windows dual boot with Windows re-install dhowell1129 Linux - Newbie 6 04-25-2004 04:21 AM
On Windows and LInux dual boot - why install Windows first? yanar99 Linux - Newbie 13 12-18-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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