LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-22-2005, 12:51 AM   #1
fatenabu
Member
 
Registered: Sep 2004
Posts: 131

Rep: Reputation: 15
had to reinstall windows and lost lilo


Hello,
I have ran into a problem. I had Mandriva 2006, and Xandros 3 DE and Windows on my PC. I used lilo through my Mandriva as my boot loader. Unfortunaly windows screwed up really bad and I had to reinstall windows. When doing so I lost my lilo boot loader and I was wondering if their was a way to fix this or to use a windows boot loader. I also have the problem that A friend of mine has my Mandriva cd and is using it to install it on his machine and he took it with him over christmas break. Is their a way for me to restore lilo or use an alternative to boot to all three operating systems without needing my mandrivia 2006 install DVD.

Thanks,

Dustin
 
Old 12-22-2005, 01:36 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
You should be able to use your install cd and go into recovery mode or simple shell. In here, I think you can just type lilo and have it install correctly.

Or if you made a bootdisk/bootcd, you can boot with that and then open up a shell and type lilo as root.
 
Old 12-22-2005, 01:44 AM   #3
beagle2
Member
 
Registered: Aug 2004
Location: Aberdeen Scotland
Distribution: elive,sidux,xp,pclinuxos super gamer, mandriva 2007
Posts: 417

Rep: Reputation: 30
Unless you have done some fancy footwork reinstalling windows you may find windows has erased all traces of your other distros - it tends to use whole drive for its own use.
 
Old 12-22-2005, 02:52 AM   #4
fatenabu
Member
 
Registered: Sep 2004
Posts: 131

Original Poster
Rep: Reputation: 15
i only installed windows to my ntfs partition. The other partitions are fine and are there I just can't get to them. I do not have the install cd right now. That is my problem As I said earlier my friend has it to put linux on his system. I won't get it back until after christmas break.

Thanks,

Dustin
 
Old 12-22-2005, 03:06 AM   #5
bit128_linux
Member
 
Registered: Dec 2005
Location: Brasov, Romania
Distribution: Slackware, Bluewhite64
Posts: 49

Rep: Reputation: 15
Go grab a small iso like sysresccd.org. It is a very good one. Not so big. Burn it, boot it. There you go. It shouldn't be so hard. If you like more cryptic CDs then try one of toms.net/rb/.. You should keep in mind that these are somehow hard to understand at first. Good luck!
 
Old 12-23-2005, 01:17 PM   #6
drakethegreat
Member
 
Registered: Sep 2004
Location: Seattle, WA
Distribution: None (Linux doesn't support my basic hardware)
Posts: 61

Rep: Reputation: 15
Honestly this is something I always run into myself. I think distros need to wise up and create a simple way for the newbies to install the boot loader whenever its needed and on any drive they need it on. This would be a good improvement cause I doubt microsoft intends to stop overwriting the MBR.
 
Old 12-23-2005, 01:32 PM   #7
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
http://www.slax.org is another small sized bootable Linux. Either way, once in your LiveCD, mount your HDD Linux partition and chroot into it to run /sbin/lilo.
Code:
mount /dev/hda2 /mnt/hd
chroot /mnt/hd
/sbin/lilo
init 6
 
Old 12-23-2005, 03:49 PM   #8
Armon
Member
 
Registered: Feb 2005
Distribution: Ubuntu- Dapper Drake and Mac OS X 10.4
Posts: 46

Rep: Reputation: 15
I have the exact same problem, except I am using grub. What would be the procedure for me to get grub back w/ windows and ubuntu
 
Old 12-23-2005, 03:54 PM   #9
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
grub-install /dev/hda

do not put a device label number in the device label above:

so NO - /dev/hda1, or /dev/hda2, blah blah blah.
 
Old 12-26-2005, 01:45 PM   #10
Armon
Member
 
Registered: Feb 2005
Distribution: Ubuntu- Dapper Drake and Mac OS X 10.4
Posts: 46

Rep: Reputation: 15
thanks I'll try it out when i get a chance
 
Old 01-03-2006, 01:50 PM   #11
dianat100
Member
 
Registered: Aug 2004
Distribution: Kubuntu 7.04
Posts: 73

Rep: Reputation: 15
I had to remove one of the hard disk drives from my PC which (apparently) had grub written on it. It was a second HDD (hdb). Now I am unable to boot to Linux or worse yet, reinstall boot loader. Upon insterting a Linux install CD (be it Mandriva, Suse, Ubuntu or Linspire) and going into recovery mode it informs me of errors, i.e. no HDD found or not able to reinstall lilo or grub (Mandriva).
I'd like to avoid reinstalling linux just to get back the boot option.

Can anyone offer a workaround? Thank you.
 
  


Reply



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
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
Had to reinstall XP...Lost LiLo snowiewolf Slackware 31 03-22-2004 08:55 PM
Can't get rid of LILO or GRUB bootloaders to reinstall Windows on Laptop CorpChAoS Linux - Newbie 5 11-25-2003 01:23 AM
Lost my WIndows with LILO quwiltw Linux - Software 4 04-24-2002 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:50 AM.

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