LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 07-19-2013, 07:51 AM   #1
sagar666
Member
 
Registered: Feb 2013
Posts: 93

Rep: Reputation: Disabled
How to install a grub boot loader in rescue mode


Hi folks,

some one deleted completely boot directory.I want to install grub boot loader and other deleted files and directory.

I tried boot from rescue mode using DVD ROM
1. I selected a linux rescue and
2. chroot /mnt/sysimage
3. I selected shell prompt and entered the command

#grub-install /dev/sda.
getting /sbin/grub: Not fount

and also i tried

#/sbin/grub-install /dev/sda
getting no such file or directory

please help me out
 
Old 07-19-2013, 08:33 AM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,159

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
You forgot to indicate which distribution of Linux you are using and which version of Grub. If the Grub files were all deleted, you need to put them back. Boot the DVD of the system you have installed and copy the Grub files to /boot/grub. The are usually in the /lib/grub or /usr/lib/grub directory.
 
Old 07-19-2013, 08:39 AM   #3
sagar666
Member
 
Registered: Feb 2013
Posts: 93

Original Poster
Rep: Reputation: Disabled
Hi yancek,
1.RHEL 6
2.How to find grub version because i can't able to boot my computer
 
Old 07-19-2013, 12:19 PM   #4
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,159

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Quote:
How to find grub version because i can't able to boot my computer
I believe Red Hat still uses Grub Legacy. Do you have a Linux Live CD or Linux on a flash drive? If you do, boot it and create a mount point for your / filesystem partition, mount it and find the grub files. I don't use Red Hat so don't know where they would be. As I said above, they are usually in /lib/grub or /usr/lib/grub/ directory. You would then need to copy them to your /boot/grub directory. If you have a separate partition for boot, you will also need to create a mount point for it and mount it. I expect you will need to create your own grub.conf file unless you have a backup somewhere.

I don't know why you would get a 'no such file or directory' message for /sbin/grub or /sbin/grub-install although I would not expect either to work in your circumstance.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot Error + GRUB + Rescue Mode najeebsyed2 Linux - Software 9 11-01-2007 09:08 AM
how to install grub using fc 4 installation cd .the cd has rescue mode amolgupta Linux - Software 2 03-15-2006 02:14 AM
Why is it so difficult to reinstall RH9's Boot loader using the Linux Rescue mode? Seph64 Linux - Distributions 10 10-04-2003 08:24 PM
RedHat 9.0 /sbin/loader hangs in linux rescue mode subrakrishnan Linux - Newbie 2 07-28-2003 08:00 AM
grub boot loader and single user mode midnightcommander Linux - General 1 04-02-2001 04:12 AM


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