Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-19-2006, 05:13 AM   #1
LQ Newbie
Registered: Oct 2006
Posts: 24

Rep: Reputation: 15
Formatted Over grub now i can't access my linux partition


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.

Old 11-19-2006, 06:05 AM   #2
Registered: Apr 2004
Distribution: Pop OS
Posts: 130

Rep: Reputation: 17
You should be able to use a rescue cd like to reinstall grub. I do believe you would have to configure it manually.
Old 11-19-2006, 06:09 AM   #3
LQ Newbie
Registered: Oct 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Configure Manually.

I don't like the sound of that.

oh well ill see how we go.

Old 11-19-2006, 06:15 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
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.

Last edited by jschiwal; 11-19-2006 at 06:18 AM.
Old 11-19-2006, 06:57 AM   #5
Registered: May 2006
Distribution: Debian
Posts: 615

Rep: Reputation: 98
Old 11-19-2006, 04:21 PM   #6
LQ Newbie
Registered: Oct 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Cool thanks guys.

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



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
How to access Linux formatted harddrive in Windows? JohnDoe13 Linux - General 5 11-15-2006 12:14 PM
I just formatted a partition FAT32 do I need to mount it to write to it in Linux? royeo Linux - Newbie 1 07-13-2006 09:14 PM
Help: Formatted Linux, Stuck in grub. Badluck Linux - Software 4 05-22-2005 01:10 PM
using GRUB to access a partition grendel-IT Linux - Software 2 03-05-2004 10:46 AM
partition formatted on each new installation? timsch75 Linux - Newbie 2 03-01-2004 12:28 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration