LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dual boot (linux installed first) (https://www.linuxquestions.org/questions/linux-newbie-8/dual-boot-linux-installed-first-584275/)

allyghee 09-12-2007 05:56 PM

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

Larry Webb 09-12-2007 08:30 PM

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

Junior Hacker 09-13-2007 01:55 AM

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


allyghee 09-13-2007 08:16 AM

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.

Junior Hacker 09-13-2007 10:15 AM

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.


All times are GMT -5. The time now is 08:56 AM.