LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-20-2004, 05:25 PM   #1
billman424
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 7

Rep: Reputation: 0
deleted bootloader


im running fedora core 1

I used fdisk to remove what I thought was a useless empty partition but it had my bootloader on it now i just get a grub command prompt when I try to boot. I tried using the fedora cds to upgrade my fedora and create a new bootloader but since no packages get upgraded it refuses to create a new bootloader. can anyone help me out here?
 
Old 04-20-2004, 05:35 PM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
boot your kernel probably linux with the command prompt
use help command if you don't know what to do
 
Old 04-20-2004, 05:42 PM   #3
billman424
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 7

Original Poster
Rep: Reputation: 0
um huh?

I am not quite following you?
 
Old 04-20-2004, 06:15 PM   #4
Squall
Member
 
Registered: Jan 2004
Location: The land of the free and the home of the brave
Distribution: Slack 10
Posts: 239

Rep: Reputation: 30
Try using your installation CD to boot. If you go to the install part, there might be an option to boot the existing system. Then you can just create it again.
 
Old 04-20-2004, 06:46 PM   #5
billman424
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 7

Original Poster
Rep: Reputation: 0
there isnt an option like that all i can do in setup is upgrade (which does nothing) and clean install which would require me to delete my partitions.
 
Old 04-21-2004, 01:48 AM   #6
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
You can find how to recreate your bootloader in the gentoo install instructions - just go to the bootloader section. Cliff's notes:

grub sees your drives as an array indexed from 0, so if /dev/hda is your first hard drive, grub sees it as hd0. If /dev/hdc is your first hard drive, grub also sees it as hd0. If /dev/hdb is a CDROM and /dev/hdc is a hard drive, again, grub sees your hard drive as hd0.

In the same way, grub sees partitions indexed from 0, so /dev/hda1 = /hd0,0

get it? ok....

so, assuming your boot partition is on the first partition of your first hard drive, at the grub prompt, you'd type something like this (grub has tab auto-completion for *everything*)

Code:
root (hd0,0)
setup (hd0)
save
reboot
*note: check the "save" command with auto-complete. It might be "write" or something like that, I forgot.

assuming you still have a grub.conf located in hd0,0 everything should be fine.

if your boot partition is anywhere else, I'm sure you can figure it out, but, say, for instance, your boot partition is on your second drive, third partition, you would do something like this:

root (hd1,2)
setup (hd1)

make sense?

Last edited by BrianK; 04-21-2004 at 01:54 AM.
 
  


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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 10:55 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 09:53 AM
Kmail crashes when deleted mail is deleted dufferin Slackware 0 03-21-2005 04:23 PM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 05:53 PM
Deleted all my bootloader stuff from windows/linux system jimdaworm Red Hat 2 09-04-2003 06:54 PM


All times are GMT -5. The time now is 08:40 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration