LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-12-2007, 06:56 PM   #1
allyghee
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Rep: Reputation: 0
dual boot (linux installed first)


hi there,

i recently installed debian etch(4) and i'm very happy with the distro.

i have widows installed(1st before the linux) before so i was able to set up dual boot without any hassle(i used grub during the linux installation).

i had a problem with my windows so i had to reinstall. i found out that windows had over-written my grub boot loader. how do i fix the bootloader so as to be able to boot from the linux again?


thanks in advance

ally
 
Old 09-12-2007, 09:30 PM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Here is one of the better tutorials on grub, there's a lot more here than you will need.
http://www.justlinux.com/forum/showt...hreadid=147959
 
Old 09-13-2007, 02:55 AM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
That's an alright saikee link there Larry, but this is the one that should have been posted. Look an task B5 which shows how to use a Live CD. Not sure if the etch CD will allow you to go into Linux rescue mode, but if it does (by typing linux rescue at a boot prompt), get yourself to a terminal and as root issue command: fdisk -l to see which is your Etch /boot or / partition and issue the four commands below to re-install grub in the MBR, the root command assumes Etch /boot is in /dev/hda2 (first drive), replace with what is appropriate.
Code:
grub
root (hd0,1)
setup (hd0)
quit
 
Old 09-13-2007, 09:16 AM   #4
allyghee
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Original Poster
Rep: Reputation: 0
my linux(DEBIAN) installation i found on sda6, how does is affect the command above. cos i'm kinda lost in what the "1" in
Quote:
root (hd0,1)
is for OR STANDS for. is it the partition number or what.

thanks


ally

people say motivation doesnt last, well i say "so does bathing " . thats why we recommend it daily.

Last edited by allyghee; 09-13-2007 at 09:22 AM.
 
Old 09-13-2007, 11:15 AM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Yes,
Grub starts counting from 0, the first hard drive is hd0, the second partition on the second drive would be hd1,1, the first partition on the first drive would be hd0,0.
 
  


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
Setting up Dual Boot with Linux already installed Abomb Linux - Software 2 02-02-2006 08:38 AM
how to create an XP dual boot after linux has been installed izquierdista Linux - Software 4 07-08-2005 03:01 PM
Dual Boot With Linux Already Installed computergee Linux - Newbie 13 02-05-2005 01:32 PM
Dual Boot, linux already installed primal Linux - Newbie 2 01-19-2004 07:35 PM
Dual-boot with Windows, installed Linux first trusted_content Linux - General 10 06-06-2003 02:38 PM


All times are GMT -5. The time now is 05:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration