LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2008, 06:38 AM   #1
rehan999
Member
 
Registered: Aug 2007
Posts: 134

Rep: Reputation: 15
Unhappy Grub Error


Good Morning

I have a machnie which has been installed with linux and windows.(Dual boot)

I logged in to windows and accedentally deleted the linux partitions.

i rebooted the machnie ,i am getting the error

GRUB

Can any one please help me how to log in to windows i ahve so much data in that.

I am not able to see even the blue GruB screen at the boot time.
Directly it is giving the error GRUB


PLease help me out.
 
Old 05-18-2008, 07:18 AM   #2
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Rep: Reputation: 16
Can you see grub shell?

if so then use grub commands. something like

rootnoverify (hd0,1)
chainloader +1
boot

or
root (hd0,2)
kernel /path/to/kernel [pressing tab key can show you if something left on your /boot]
initrd /path/to/initrd img file.
boot

try commands given to you in grub shell

Anuj
 
Old 05-18-2008, 07:27 AM   #3
rehan999
Member
 
Registered: Aug 2007
Posts: 134

Original Poster
Rep: Reputation: 15
No i cant see any grub shell.
 
Old 05-18-2008, 08:58 AM   #4
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Rep: Reputation: 16
if you have your linux partitions intact only the boot loader gone then you can boot in to rescue mode of linux (using linux installation cd) and do a grub-install /dev/my_disk_device

In case you only want windows, then you boot in to rescue mode from windows installation media. get into the command prompt.
give "fixmbr" command
this will fix the master boot record of your machine. (but you won't be able to boot into linux cause of M$.



Anuj.
 
Old 05-18-2008, 09:05 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If you deleted only the Linux partitions, then GRUB is still in the MBR, but it cannot find its files. To get to the GRUB shell, try hitting escape and then "c" for command-line.

You can also solve this be simply re-installing Linux. Almost any Linux installer will recognize the Windows installation and automatically configure GRUB.
 
  


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
Loading Grub 1.5 Please Wait...... Grub Failed Error 18 2words4uready Linux - Newbie 5 06-12-2008 05:37 PM
Sofware RAID 1 + Fedora Core 3 + Boot Error L1 + GRUB 21 ERROR najeebsyed2 Linux - Hardware 0 10-25-2007 01:20 PM
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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