Grub Hard Disk Error Centos 5
Contents |
have installed another OS such as one from Redmond that may have overwritten the master boot record
Grub Hard Disk Error Windows
(MBR), you will need to repair the bootstrap area. Re-install grub hard disk error windows 7 bootstrap code (GRUB) Please perform the following steps: Boot from CentOS installation disc (for does not have any corresponding bios drive example, CD #1 or DVD). For CentOS-4 or CentOS-5 type "linux rescue" at the "boot:" prompt. For CentOS-6 pick "Rescue installed system" from
The File /boot/grub/stage1 Not Read Correctly
the boot menu. Mount all filesystems in read-write mode. Change root to real root ('/') on your hard disk:# chroot /mnt/sysimage Re-install bootstrap code (GRUB). If you wish to re-install GRUB to the MBR on a SCSI or SATA disk (/dev/sda):# grub-install /dev/sda If you wish
Super Grub Disk
to re-install GRUB to the PBR of Partition #2 on a SCSI or SATA disk (/dev/sda2):# grub-install /dev/sda2 If you wish to re-install GRUB to the MBR on an IDE disk (/dev/hda):# grub-install /dev/hda If you wish to re-install GRUB to the MBR on a HP Smart Array disk (/dev/c0d0):# grub-install /dev/cciss/c0d0 Alternative Recovery from GRUB Issues - Super Grub Disk Super Grub Disk has a variety of open source boot recovery tools. For CentOS legacy GRUB SuperGRUB works well. More GRUB information and articles For complete information on GRUB type info grub in a shell window. GRUB Installation for CentOS 5 and 6 Troubleshooting GRUB Issues Information on Grub from RHEL's Installation Guide TipsAndTricks/ReinstallGRUB (last edited 2012-04-10 21:36:17 by PhilSchaffner) FrontPageHelpTips and TricksHow ToFAQsEventsContributeChangelogReinstallGRUB This wiki is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
installed it in RAID1, it works perfectly, ok! :)When I pull out one of the pendrive [good pendrive], it still boots grub-install command not found up,hurrah :)But: ...When I pull out the other pendrive [i plug in
Grub Command Line
the first one i tried] itsay's:GRUB hard disk errorWhat can I do?I already tried:grub-install /dev/sdc <-that's the pendrive grub command line boot name [bios -> hard driveemulation=hard drive, not auto]or:# grubfind /boot/grub/stage1hd0,0hd1,0root (hd0,0)setup (hd0,0)etc.What's the solution? Please help me:\I can't just dd the first 512 Byte of the "good pendrive", because theuuid https://wiki.centos.org/TipsAndTricks/ReinstallGRUB is stored there. [needed for the sraid..]It gets to the grub, so it's not a ""boot-order problem""How can I install grub to these two pendrives, so that if one of thependrives die, it would still be a bootable system? reply Tweet Search Discussions Search All Groups centos 4 responses Oldest Nested Phil Schaffner This is the CentOS list. ... http://grokbase.com/t/centos/centos/105nrdc951/grub-hard-disk-error Does "etc." mean you installed GRUB on (hd1) as well? Did you do that before you started yanking devices? Phil Schaffner at May 21, 2010 at 4:43 pm ⇧ Jozsi Vadkan wrote on 05/21/2010 12:29 PM:I've got two pendrives.I want to install a Debian on them. RAID1.This is the CentOS list....I already tried:grub-install /dev/sdc <-that's the pendrive name [bios -> hard driveemulation=hard drive, not auto]or:# grubfind /boot/grub/stage1hd0,0hd1,0root (hd0,0)setup (hd0,0)etc.Does "etc." mean you installed GRUB on (hd1) as well? Did you do thatbefore you started yanking devices? reply | permalink Jozsi Vadkan yes, i tried to install it to hd1,0 too. 2010. 05. 21, p?ntek keltez?ssel 12.43-kor Phil Schaffner ezt ?rta: Jozsi Vadkan at May 22, 2010 at 3:41 pm ⇧ yes, i tried to install it to hd1,0 too.2010. 05. 21, p?ntek keltez?ssel 12.43-kor Phil Schaffner ezt ?rta:Jozsi Vadkan wrote on 05/21/2010 12:29 PM:I've got two pendrives.I want to install a Debian on them. RAID1.This is the CentOS list....I already tried:grub-install /dev/sdc <-that's the pendrive name [bios -> hard driveemulation=hard drive, not auto]or:# grubfind /boot/grub/stage1hd0,0hd1,0root (hd0,0)setup (hd0,
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more http://unix.stackexchange.com/questions/166367/rhel-5-booting-from-local-hardisk-san-harddisk-via-grub about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and http://serverfault.com/questions/132623/booting-from-hard-drive-fails-after-installing-centos-from-usb-stick answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best grub hard answers are voted up and rise to the top RHEL 5 Booting from Local Hardisk & SAN Harddisk via grub up vote 1 down vote favorite I had a RHEL machine booting from local disk. Later I removed local disk & booted from a SAN disk and installed RHEL on it. Now I have read about a grub.conf file: root (hd0,0) kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/hda1 vga=0x317 showopts initrd /boot/initrd-2.6.18.2-34-default Grub stage1 boots grub hard disk from MBR and then when it goes to Stage2 it takes these entry parameters. What is the simplest way to set and choose which OS the machine will boot from? rhel multipath-storage share|improve this question edited Nov 6 '14 at 12:37 geedoubleya 2,063617 asked Nov 6 '14 at 11:14 Ashish 1457 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted When grub goes to stage 2, it will present the kernel selection menu. The best way to configure this is to use either the SAN disk or the local disk as your MBR (master boot record) then update the /boot/grub/grub.conf file to include both stanza entries from the local HDD and the SAN disk. Then use the default=0 entry to set the default OS kernel to load. default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz root (hd0,0) kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/hda1 vga=0x317 showopts initrd /boot/initrd-2.6.18.2-34-default ### SAN stanza entry ### root (sd0,0) kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/sda1 vga=0x317 showopts initrd /boot/initrd-2.6.18.2-34-default The second entry will be default=1. Note It may be better to boot from the SAN disk as you will be using the UEFI to load the fibre storage. Manually editing grub If you are unsure the local device number then you can go to the command-line entry when presented with the
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Booting from hard drive fails after installing Centos from USB Stick up vote 1 down vote favorite I created a Centos Live 5.4 Bootable USB drive. I used this to install Centos on a HP Netbook. When the system goes to write the Grub boot loader to disk, it wants to write the boot loader to the usb drive (/dev/sda), not the hard disk (/dev/hda). I do have the option of writing the boot loader to /dev/hda, (not to the mbr!) but when I reboot I get an load error and the Grub prompt. How can I get Centos booting from the hard disk instead of using the USB key. centos installation usb share|improve this question edited Jul 15 '12 at 14:18 Scott Pack 12.3k63678 asked Apr 15 '10 at 9:55 Rick 14818 Maybe by asking this question on the appropriate forum of superuser.com –Chopper3 Apr 15 '10 at 10:01 @chopper3 - When did you score a diamond? –MDMarra Aug 28 '10 at 0:19 about 2 months or so ago, it was on the SO blog, there was a vote etc. –Chopper3 Aug 28 '10 at 7:32 @Chopper3 - Ah, shows how much I pay attention. Congrats! –MDMarra Aug 28 '10 at 17:17 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote If you used whole hard disk for centOS, it might be possible to fix your grub. From shell prompt, try this command below #grub-install --recheck /dev/hda After that exit to reboot. If grub-install does not work for you, you can try to fix it manually from grub prompt. From grub prompt grub> root (hd0,0) Assumed that you've installed your boot on your first partition. Otherwise replace the last '0' with appropriate number. After that grub> setup (hd0) Then exit and