- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how can repair grub.conf?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2010 10:49 PM
тАО06-13-2010 10:49 PM
how can repair grub.conf?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2010 12:07 AM
тАО06-14-2010 12:07 AM
Re: how can repair grub.conf?
The rescue environment will search for your existing RHEL installation. If it can be found (i.e. not too badly damaged), it will automatically mount it to /mnt/sysimage. You can then go to /mnt/sysimage/boot/grub directory (= the real /boot/grub when the system is running normally) and fix your grub.conf.
If you run "chroot /mnt/sysimage" your rescue session's root directory will be switched to the installation's root directory (e.g. /mnt/sysimage/boot/grub becomes simply /boot/grub), so all the tools of your RHEL5 installation will work more or less normally.
The RHEL5 Installation Guide has more information about the rescue mode:
https://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.5/html/Installation_Guide/pt-rescue-mode.html
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2010 12:51 AM
тАО06-15-2010 12:51 AM
Re: how can repair grub.conf?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2010 04:02 AM
тАО06-15-2010 04:02 AM
Re: how can repair grub.conf?
- boot into rescue environment
- run "ls /etc", you see the very limited /etc directory of the rescue environment
- run "ls /mnt/sysimage/etc", you see the complete /etc directory of your RHEL5 installation
- now run "chroot /mnt/sysimage"
- run "ls /etc" again: now it's the complete one! Now the system looks just like it does when running normally.
- run "ls /mnt/sysimage": you find it does not seem to exist.
- run "exit" to return to non-chrooted rescue environment
- running "exit" a second time will exit the rescue environment and cause the system to reboot.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2010 05:08 AM
тАО06-15-2010 05:08 AM
Re: how can repair grub.conf?
Maybe you should mention here to type
"linux rescue" and hit Enter at the CD's boot prompt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2010 05:46 AM
тАО06-15-2010 05:46 AM
Re: how can repair grub.conf?
Linux rescue, as noted above should do the trick.
If there is real damage to your system, you may need to install an OS to a secondary disk, as I once had to do to recover a system.
grub contains all the commands needed to fix the issue.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2010 10:21 AM
тАО06-15-2010 10:21 AM
Re: how can repair grub.conf?
if so,
Boot up with a rescue cdrom/usb.
Assuming that hda is the active boot disk and that /boot is on the first partition, you need to:
rescue# grub
grub>root(hd0,0)
grub>setup(hd0)
That should reinstall grub and fix your MBR problems.
Let me know if it works, and don't forget about assigning points.!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2010 04:26 AM
тАО06-16-2010 04:26 AM
Re: how can repair grub.conf?
i understoot what to do but didn't understand how it happens?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2010 08:35 AM
тАО06-16-2010 08:35 AM