LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-09-2005, 11:52 AM   #1
netlatino
LQ Newbie
 
Registered: Apr 2005
Posts: 1

Rep: Reputation: 0
Exclamation Windows stole my Dualboot!


I am a newbie at linux.... I have installed in two seperate hard drives Windows (primary hard drive) and Mandrake Linux 10.1 (slave hard drive). Last week I had a problem with windows and, after moving some important files my /home forlder in linux from windows, I reinstalled windows on my primary hard drive. But when I went to start up my computer again, my dualboot option from Madrake Linux disappeared... now only Windows boots. Is there a way to restore that boot option without reformatting my linux hard drive and reinstalling it? I don't want to lose any files I have in linux and (being a newbie) I didn't create a copy of the boot files on a floppy for such an occasion.

PS. I already tried the rescue option on the linux cd and it supposedly reinstalled the boot sector... but windows is still the only one that loads...
 
Old 04-09-2005, 12:27 PM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Boot cd in rescue mode. Get to command line. Mount your hd:
mkdir /mnt/hd
mount /dev/hda1[replace hda1 with linux partition] /mnt/hd

#chroot into partition, reinstall bootloader
chroot /mnt/hd
lilo



This assumes you were using the lilo bootloader. If you used grub then run "grub-install /dev/hda" instead of "lilo".
 
Old 04-09-2005, 03:16 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Here's a help file from LQ's own help files. Scroll down a ways to find the specific steps to follow.
 
  


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
WHo stole what idea from Who? Windows Apple KDE carl0ski General 4 12-09-2004 08:47 PM
Installing Windows for a dualboot MylesCLin Linux - Newbie 2 11-03-2004 07:40 AM
windows stole my partiton :( drzoot Linux - Software 1 10-22-2004 12:57 PM
Windows ME and Linux dualboot piggysmile Linux - Newbie 1 04-28-2004 07:24 AM
Dualboot w/ Windows XP mm18050 Linux - General 6 11-22-2003 11:32 AM

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

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