LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-09-2006, 10:14 AM   #1
oryhara
LQ Newbie
 
Registered: May 2006
Posts: 2

Rep: Reputation: 0
Accidentally deleted GRUB


I kinda feel like the biggest noob in the universe for doing this, but I was trying to resize my windows XP partition to be smaller then add that space to linux (Fedora Core 4) through partitionmagic. The actual linux partition came up as type 8e, which I googled and found to be lvm. There was another ext3 partition that I thought I just created and realized I didn't know how to add to lvm, so I deleted it. Turned out that was the partition that had GRUB on it (oops), because now GRUB doesn't work. Which, obviously, causes problems. Is there any way to reinstall GRUB so that it can boot both FC4 and XP again? I still have my FC4 install discs and a rescue disc, but I don't have the slightest cluewhere any of my XP discs are.

Edit: I was using the FC4 rescue disc, and I can access my old files on FC4 fine, albeit only through the console, and I noticed that /boot is empty. I'm not sure, but that may or may not be a problem...

Last edited by oryhara; 06-09-2006 at 12:01 PM.
 
Old 06-09-2006, 11:54 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Boot with the installation media into rescue mode by typing; linux rescue

Answer a few questions and read the on-screen messages, pay extra attention to chroot screen you may need this. When loaded use parted to restore the partition you deleted.

You might want to read/review using parted before starting(the rescue command);

http://www.gnu.org/software/parted/m...ed.html#rescue

http://www.gnu.org/software/parted/manual/
 
Old 06-09-2006, 12:13 PM   #3
oryhara
LQ Newbie
 
Registered: May 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Parted sees my current partition table correctly, but the rescue command does not appear to find anything, starting at 0 and ending at the end of my hd. I type in the end number, it says its searching for filesystems, then goes back to the parted prompt without any further messages.
 
Old 06-09-2006, 05:23 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Do you mean when you deleted the ext3 partition you added the free space to some other partition??? or was there a blank space between two partitions???

The trick is to start around the beginning of the free space if any. What does the hard drive parttions look like??? Try using the command fdisk -l (that's the letter 'L' in the command) and post the results.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I accidentally deleted libstdc++ :( piforever Fedora 4 01-01-2006 06:03 PM
Accidentally Deleted Everything In /var/log Joe Heng Slackware 3 12-23-2004 07:20 PM
Accidentally deleted files rwalkerphl Linux - Newbie 3 06-24-2004 06:11 PM
Accidentally deleted /etc/init.d .. what do i do? :| waste Linux - General 5 03-04-2004 03:39 AM
accidentally deleted /etc/profile tanbetien Fedora 2 11-21-2003 09:42 PM


All times are GMT -5. The time now is 07:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration