LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-10-2007, 08:44 PM   #1
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Rep: Reputation: 37
installing windows after linux


LOL. back again, havent gotten out of the newbie catergory yet.

i am going to reinstall xp pro to my windows partition. after i do the install i assume nasty microsoft will automatically write over the master boot partition, so how easy is it to restore grub back to its state?
is it as easy as just using the recovery cd and installing MBR again or is it a bit trickier than that?

oh using debian-etch if it makes any difference.

thanks.
 
Old 06-10-2007, 09:11 PM   #2
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,876

Rep: Reputation: 88
Yes, it is as easy as knowing how to boot your distribution from another source and reinstalling Grub. Just confirm you know how to do it.
Boot your Debian CD and make sure you can boot your Debian partition.
Running "grub-install" is the command usually used to rewrite Grub.
 
Old 06-10-2007, 09:50 PM   #3
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Original Poster
Rep: Reputation: 37
mmm...thanks.

is using the grub-install command the same as using the MBR option from the boot disk menu.

wait im confused now you say boot your debian CD and make sure you can boot your partition too, doesnt the boot cd just go straight to the install/recovery menu by default? what do you mean by make sure you can boot your debian partition too?

ive never used the boot/recovery disk after an initial install so im unsure about how to use it?
 
Old 06-10-2007, 09:52 PM   #4
thloh85
Member
 
Registered: Apr 2006
Location: Earth
Distribution: BLFS customized
Posts: 160

Rep: Reputation: 31
Quote:
Originally Posted by 2damncommon
Yes, it is as easy as knowing how to boot your distribution from another source and reinstalling Grub. Just confirm you know how to do it.
Boot your Debian CD and make sure you can boot your Debian partition.
Running "grub-install" is the command usually used to rewrite Grub.
Yup... Thats the easy way...
The hard way :
1. Run grub from Debian CD
2. In grub, type "root /dev/hd**" where hd** is your harddisk plus your partition number
3. Then type "setup (hd*) where * again is your harddisk number
 
Old 06-10-2007, 10:07 PM   #5
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,876

Rep: Reputation: 88
Quote:
Originally Posted by narz
is using the grub-install command the same as using the MBR option from the boot disk menu.
Haven't used Etch yet. I don't know?
Does the "MBR option" from the boot disk menu install the Grub configuration from your current installed partition?
Quote:
Originally Posted by narz
wait im confused now you say boot your debian CD and make sure you can boot your partition too, doesnt the boot cd just go straight to the install/recovery menu by default? what do you mean by make sure you can boot your debian partition too?
Okay, booting from my Woody DVD to see how that worked.
 
Old 06-11-2007, 01:47 PM   #6
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Original Poster
Rep: Reputation: 37
HELP Please.

i used my recovery/install cd and typed in rescue and it says kernel not found? so i tried going back into the menu/install part to try something from there but it wont let me go into the menu because i have my eth connection down because i use wifi and it wont let me get past that point.

AAHHH! is there another utility i can download to restore grub back to its original state?

GODDAMN you windows.
 
Old 06-11-2007, 02:45 PM   #7
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
If you can get to a command prompt then just modprobe the module for your wireless.
 
Old 06-11-2007, 03:04 PM   #8
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by jstephens84
If you can get to a command prompt then just modprobe the module for your wireless.
thats exactly my problem, i cant get to a command prompt, the closest i can get is the initial prompt to set boot parameters for the cd. unless you guys know of a way to get to a command prompt.

what i dont understand about the cd is why it just doesnt let you go straight to the menu, why does it assume youre doing a new install and make you go through all those initial steps with mapping your keyboard and setting up your internet connection, as the rescue command wont work in this case.

thanks.
 
Old 06-11-2007, 03:55 PM   #9
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Original Poster
Rep: Reputation: 37
i found this in another thread:

boot up from Debian installation CD and type 'boot=/dev/hda1' at prompt. Debian will boot up. execute 'grub-install /dev/hda' in konsole to reinstall GRUB.

i dont have my laptop with me right now but am wondering if you guys can tell me that it will work or not?
 
Old 06-11-2007, 06:27 PM   #10
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by narz
i found this in another thread:

boot up from Debian installation CD and type 'boot=/dev/hda1' at prompt. Debian will boot up. execute 'grub-install /dev/hda' in konsole to reinstall GRUB.

i dont have my laptop with me right now but am wondering if you guys can tell me that it will work or not?
Yes it should work.
 
Old 06-12-2007, 02:13 AM   #11
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Original Poster
Rep: Reputation: 37
ok i am just about there. i have made into the rescue menu and have reloaded the grub bootloader. only thing i have to remount my /home and swap partitions. i do not know how to do this from command line and prefer to do it from the menu, but when i go to partition settings i remount my partitions to my preferences and have the format option set to "no, keep existing data" but when i go to save changes it says ALL EXISTING DATA WILL BE DESTROYED if i proceed?
if i dont format the partitions, how can the data be destroyed? is this the debian installer trying to trick me? i already have too much important stuff on those partitions to accept without reassurance from you guys. is anyone here familiar enough with debian etch's installer to verify what will happen.

thanks.

am not sure why something that should be so easy has turned into a nail-biting nightmare for me.
 
Old 06-12-2007, 09:37 AM   #12
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
When It says that is it listing all the drives or is it just listing the ones you wish to reformat? Or did you not choose any of the partitions to be reformated?
 
Old 06-12-2007, 09:44 AM   #13
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Have you also tried creating a rescue floppy yet from the cd's? if you do a search for debian rescue floppy you will get ton's of information.
 
  


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
installing dual boot (linux and windows)without corrupting windows anirudh.iitm Linux - Newbie 7 06-30-2006 02:16 PM
Installing Windows after installing LINUX brads@kwlink.com Linux - General 4 01-08-2006 10:03 AM
Installing Windows after Linux brinkster Linux - General 5 01-05-2005 09:17 PM
Installing programs in linux? which progs? can linux do the things windows can? James-jmpm Linux - Newbie 6 07-02-2004 07:01 PM
Installing windows over linux on a fully partitioned drive for linux reddon84 Linux - Software 2 01-26-2004 06:17 PM

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

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