LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Formatted Over grub now i can't access my linux partition (https://www.linuxquestions.org/questions/linux-newbie-8/formatted-over-grub-now-i-cant-access-my-linux-partition-502931/)

Mutch 11-19-2006 04:13 AM

Formatted Over grub now i can't access my linux partition
 
Ahhhhhh.

So i was reformatting my windows partition, as you do. And now when i boot i don't get the grub loader.
I tried to install from my debian cd but i have to reinstall to do that. And i don't particularly want to do that. Is there another way.

Please say yes.

Mutch

amishtechie 11-19-2006 05:05 AM

You should be able to use a rescue cd like http://rescuecd.pld-linux.org/ to reinstall grub. I do believe you would have to configure it manually.

Mutch 11-19-2006 05:09 AM

Configure Manually.

I don't like the sound of that.

oh well ill see how we go.

Thanks!

jschiwal 11-19-2006 05:15 AM

If the linux partitions are intact, and your install disk lets you access the grub menu (probably by pressing the ESC key during the initial menu), then you can boot up your system and then run the grub-install program to rewrite to the MBR. The grub shell has auto-completion, which makes it easy locating the partition that has linux on it.

For example, enter "kernel (hd" and press the TAB key. Select a drive ( numbered from 0 ) and press tab again for a list of partitions. Keep going until you have your kernel selected. Do the same on another line starting with "initrd (hd". With both selected enter "boot" to boot up the system.

With the grub shell you could locate your /boot/grub/menu.lst file and boot with that.

You don't need to manually configure grub unless you also added or removed a disk and (hd1,1) is (hd0,1) or (hd2,1) now. You simply removed the MBR program that loaded the the grub boot loader. The /boot/grub/menu.lst is still there.

arochester 11-19-2006 05:57 AM

See http://linuxhelp.blogspot.com/2005/1...-and-boot.html

Mutch 11-19-2006 03:21 PM

Cool thanks guys.

I will give that a go when i get home from work.

:)


All times are GMT -5. The time now is 04:57 PM.