LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-02-2004, 02:26 PM   #1
damoncf
LQ Newbie
 
Registered: Sep 2003
Location: OH
Distribution: Knoppix; Mandriva; Gentoo; Debian; Playing with some new distro always!
Posts: 27

Rep: Reputation: 15
booting back to linux


I went ahead and had the bright idea of going ahead and reinstalling XP because the os was trashed and I needed to give more space to my Debian system anyway. I started by resizing my hd with Partition Magic and all went well there. I now had 12 G NTFS and 38 to LInux. My linux partition was still in tact and all seemed great. I went ahead and reinstalled XP onto its new NTFS and it installed great. I was running as good as can be expected from XP. The problem is that now I am not able to boot to my Debian System. XP overwrote (assuming) my grub boot loader and I can only boot to XP. I need to know how to put either lilo or grub back in as my main boot-loader. I have Knoppix at my disposal if need be.

Any and all help will be greatly appreciated.
Damon
 
Old 10-02-2004, 03:17 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 69
Re: booting back to linux

Quote:
Originally posted by damoncf
I went ahead and had the bright idea of going ahead and reinstalling XP because the os was trashed and I needed to give more space to my Debian system anyway. I started by resizing my hd with Partition Magic and all went well there. I now had 12 G NTFS and 38 to LInux. My linux partition was still in tact and all seemed great. I went ahead and reinstalled XP onto its new NTFS and it installed great. I was running as good as can be expected from XP. The problem is that now I am not able to boot to my Debian System. XP overwrote (assuming) my grub boot loader and I can only boot to XP. I need to know how to put either lilo or grub back in as my main boot-loader. I have Knoppix at my disposal if need be.

Any and all help will be greatly appreciated.
Damon
Boot with knoppix 2 then once at the prompt and if you already had lilo installed with a working /etc/lilo.conf and did not remove it when grub was installed.

Code:
mount /dev/hd?? /mnt/hd??
chroot /mnt/hd??/ /sbin/lilo -v
shutdown -r now
Now for grub I have no idea what the command would be to put at the end of the chroot line I never use it. You would replace the ?? with the drive letter and partition number of the / partition.
 
Old 10-02-2004, 03:23 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Definitely, when you re-installed XP, it overwrote the MBR. Windows doesn't play well with the other kids on the block. You will have to boot from the deb install cd to get into LInux, or use Knoppix. Either way, go through the grub setup procedure as spelled out in "Zen and the Art of Using Grub", which is a good step-by-step for grub. You will have to edit either /etc/grub.conf or /boot/grub/menu.lst (whichever deb uses) to add XP to the grub menu, otherwise you won't be able to boot XP.
Search this board for dual boot questions. There is a great deal of discussion on the topic of Linux and XP.

Last edited by bigrigdriver; 10-02-2004 at 03:24 PM.
 
Old 10-02-2004, 04:51 PM   #4
Xen9899
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10.1
Posts: 3

Rep: Reputation: 0
When I was setting up my dual boot not too long ago, the guide said to make sure that the Linux partition was set as the active partition. Otherwise it would either automatically boot Windows, or it wouldnt be able to boot at all, the computer being unable to tell which OS it was supposed to use.

Hope that helps.
 
  


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
Getting Linux back..? concoran Linux - Software 4 06-24-2005 12:02 AM
network card info goes away in XP after booting back up from suse 9.1 pro philipbrown9 Linux - Newbie 7 10-11-2004 08:06 AM
Booting up in X server... how do I disable it or fall back to console mode? Delmarc Linux - Newbie 3 09-06-2003 09:23 PM
booting from linux to xp and back jense Linux - General 1 08-11-2003 10:59 AM
Linux Expert Qwestion Stumper: Garunteed to stump linux experts or your money back! psyklops Linux - General 28 09-10-2002 10:05 AM


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