LinuxQuestions.org
Visit Jeremy's Blog.
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 11-17-2005, 04:01 PM   #1
ds-one
LQ Newbie
 
Registered: Nov 2005
Distribution: Debian
Posts: 20

Rep: Reputation: 0
Accidentally removied Windows from Boot...I wish I didn't


Ok, this sounds really stupid...but I accidentally deleted Windows 2000 from my the "Boot" panel in Gnome.

Is there any way I can recover it (aside from re-installing Win2K)? I do have files under my FAT32 partition that I do need.

I would appreciate any help I could get

PS: GRUB is the OS loader btw.

Last edited by ds-one; 11-17-2005 at 04:11 PM.
 
Old 11-17-2005, 04:12 PM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Which boot loader are you using? So long as it's still available in grub.conf or lilo.conf, re-installing the boot loader should put it back in the menu for you.
 
Old 11-17-2005, 04:15 PM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Adding an entry like this to your /boot/grub/grub.conf should get it back:
Code:
title Other
        rootnoverify (hd0,0)
        chainloader +1
This entry if for my box where windows is installed on the first partition of the first (primary) hard drive. Adjust the (hd0,0) bit tosuit the location of your Windows install.
 
Old 11-17-2005, 04:15 PM   #4
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
you should be able to add win2000 to lilo or grub with the editor of ur choice. search here for examples of what you need to make it look like. Just keep ur *nix install disc handy in case you mess something up and it wont boot. I would also make a backup of any files you edit
 
Old 11-18-2005, 10:47 AM   #5
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,268

Rep: Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086
The first instinct might be... "OMG! REINSTALL!"

But that's a Windows instinct. This is Linux ...

Here's what to do. Ask yourself how you managed to make Windows go-away from the boot menu. What changed recently? Is there a backup-file handy?

Okay, let's suppose there isn't. The next question is: are you using grub as your bootloader, or LILO? In Linux, look for a directory called /boot/grub. That is, from the topmost directory, look for "boot" and within that look for a folder, "grub." If so, you'll find a grub.conf file in that folder, and the command info grub will tell you all about it... with examples.

If, on the other hand, you see a /boot/map file, and a file /etc/lilo.conf, you're probably using LILO. Once again, man lilo will tell you all about it. A little bit more complicated but it'll get you on the right track.

In both cases you do need to know where the Windows operating-system is: on which drive, and which partition.

"Simply scrambling for a reinstall disk" is not the right thing to do. It will only make things needlessly worse... Now that you find yourself unexpectedly thrust into this situation ... work your way out of it ... learning as you go. These woods will never be so dark-and-scary again.
 
Old 11-18-2005, 08:29 PM   #6
ds-one
LQ Newbie
 
Registered: Nov 2005
Distribution: Debian
Posts: 20

Original Poster
Rep: Reputation: 0
I ended up reinstalling Debian (not only for the Windows problem, but I was unsatsified with a lot of the things I did). The good thing is I ended up configuring everything back to the way I wanted.

FYI: GRUB came with my install disk and was the one used from start. There was (and still is) no grub.conf.

Thanks for the help though. I did end up learning a lot I didn't know about Debian/Linux beforehand.
 
  


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
How do I dual boot Linux and Windows XP from Windows boot file andyri Linux - Newbie 4 08-04-2004 10:09 PM
linux won't boot up cause of a comment I accidentally made linuxzouk Fedora 7 05-15-2004 12:24 AM
accidentally deleted /boot partition, yet it boots timsch75 Linux - General 6 04-08-2004 02:51 PM
accidentally deleted /etc/profile tanbetien Fedora 2 11-21-2003 09:42 PM
accidentally reset master boot record jessiscroggins Linux - Hardware 3 06-11-2002 01:32 PM


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