Grub Error 21 Sles
Favorite Rating: Error 21 in grub during the upgrade to newer SLES 11 (SPx)This document (7014290) is provided subject to the disclaimer at the end of this document. Environment SUSE Linux Enterprise Server 11 Service Pack 3SUSE Linux Enterprise Server 11 Service Pack 2SUSE Linux Enterprise Server 11 Service Pack 1SUSE Linux Enterprise Server 11 Situation Server was converted from running as a "physical server" to running as a "virtual machine" running on VMware infrastructure. The conversion was made by using VMware vCenter Converter.SymptomsDuring the upgrade process from a previous OS version (i.e. SLES 10 SP4, or older SLES 11 SP) to a newer version of SLES 11, an error is encountered when the grub bootloader is installed. The relevant text of the error is similar to:grub> install --stage2=/boot/grub/stage2 (hd0,0)/boot/grub/stage1 d (hd0) (hd0,0)/boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lstError 21: Selected disk does not existgrub> quitIf using a graphical install, you may see the following: Resolution Revert the VM back to the snapshot before applying the update/installation.Modify the /boot/grub/device.map to point to the proper disk/partition. Ideally, you will want to use either:/dev/disk/by-idor/dev/disk/by-uuidReboot and run the upgrade again. Cause After conversion to a virtual machine, the /boot/grub/device.map file no longer points to a proper device. Additional Information When the server is on physical hardware, the /boot/grub/device.map file may incorporate the driver name in the device. In our example it read like:(hd0) /dev/disk/by-id/cciss-xxxxxxxxxxxxxxxxxxxx(hd1) /dev/disk/by-id/cciss-xxxxxxxxxxxxxxxxxxxxAfter being converted to a virtual server, the old name will only work as long as grub isn't modified -- which occurs when upgrading to a new OS version or service pack. Therefore, in order to avoid this error, use the appropriate entry in /dev for your device. Try to avoid using disk names, like cciss devices, and use the links to your disks under /dev/disk/by-id or /dev/disk/by-uuid -- pointing to devices similar to /dev/sda, /dev/sdb... in most of configurations).############################################################################Here is an example. Before upgrading my machine, I see that /boot/grub/device.map shows:(hd0) /dev/disk/by-id/cciss-3600508b1001039565a353152494a0000(fd0) /dev/fd0and that my /boot is on partition /dev/sda1 (as it is part of the '/' partition):/dev/sda1 on / type ext3 (rw,acl,user_xattr)In looking at the /dev/disk/by-id directory, the following is seen:lrwxrwxrwx 1 root root 9 2015-01-22 21:34 edd-int13_dev80 -> ../../sdalrwxrwx
Help Here Install/Boot/Login Partitions and GRUB Error 21 Welcome! If this is your first visit, be sure to check out the FAQ. You will have to register before you can post in the forums. (Be aware the forums do not accept user names with a dash "-") Also, logging in lets you avoid the CAPTCHA verification when searching . Select Articles, Forum, or Blog. Posting in the Forums implies acceptance of the Terms and Conditions. Results 1 to 8 of 8 Thread: Partitions and GRUB Error 21 Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 20-Jul-2009,09:14 #1 northern_llama NNTP User Partitions and GRUB Error 21 I am installing openSUSE 11.1 on my Dell PowerEdge 2650 server: Here's where I'm at... https://www.novell.com/support/kb/doc.php?id=7014290 I boot from the install disc and everything seems to go fine. The install completes successfully and I can log into openSUSE and run applications. However, as soon as I reboot, the boot fails with the following: GRUB Loading stage1.5. GRUB loading, please wait... Error 21 I've done some digging, and discovered that this error means that the hard disk (or partition?) is not being recognized. GRUB Manual - Error messages reported by GRUB I've tried several reinstalls, and using the partition expert to https://forums.opensuse.org/showthread.php/418457-Partitions-and-GRUB-Error-21 manually assign partitions, but no luck... Here is the setup I've been trying base on instructions here: Re: [opensuse] Partition Query Device Mount Size FS Type sdc1 swap 6 GB linux swap sdc2 / 10 GB linux native Ext3 sdc3 /home 200 GB linux native Ext3 sdc4 /boot 196 MB linux native Ext3 Is there something I am missing? Do I need my /boot partition on sda? Does order matter? NOTE: The server itself does not have an internal hard drive, but is connected to a SAN (compellant solution). A QLogic driver at boot-up correctly identifies the hard drives that the machine boots from. The Linux install sees the SAN (so i don't think this is where my issue is at). If there is a way to use the install disk to repair this problem, that would be preferable (as opposed to a complete re-install). I am new to Linux, so please be specific and detailed as this is only my 3rd or 4th time using YaST2. Thanks. -Dell PowerEdge 2650 -3 GB RAM -3.0 Ghz Xeon (quad core) Reply With Quote 20-Jul-2009,10:05 #2 caf4926 View Profile View Forum Posts View Blog Entries Visit Homepage View Articles Global Moderator Join Date Jun 2008 Location The English Lake District. UK - GMT/BST Posts 37,818 Re: Partitions and GRUB Error 21 HowTo Boot into openSUSE when it won't Boot from the Grub Code on the Hard Drive Kernel: 4.7.2-1-default x86_64 | Desktop KDE 5 Distro: "openSUSE" "20160812" "Tumbleweed" My Art
Links Social Groups Pictures & Albums Members List Go to Page... GRUB madness [Error 21] !! Suse Linux Page http://www.techtalkz.com/suse-linux/62750-grub-madness-error-21-a-2.html 2 of 4 < 1 2 34 > View First Unread http://www.linuxforums.org/forum/red-hat-fedora-linux/162056-solved-grub-error-21-a.html Thread Tools Display Modes 29-08-2007, 02:05 PM #11 akarui.tomodachi@gmail.com Guest Posts: n/a Re: GRUB madness [Error 21] !! On Aug 28, 12:50 am, EOS
Today's Posts Advanced Search Find the answer to your Linux question: Entire Site Articles Downloads Forums Linux Hosting Forum Your Distro Red Hat / Fedora Linux [SOLVED] GRUB Error 21 If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. ** If you are logged in, most ads will not be displayed. ** Linuxforums now supports the Tapatalk app for your mobile device. Page 1 of 2 1 2 Last Jump to page: Results 1 to 10 of 13 Thread: [SOLVED] GRUB Error 21 Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Enjoy an ad free experience by logging in. Not a member yet? Register. 03-27-2010 #1 KPolulak View Profile View Forum Posts View Articles Just Joined! Join Date Feb 2009 Posts 42 [SOLVED] GRUB Error 21 Here's the problem: My laptop is running Fedora 12. I installed BackTrack 4 onto an external USB hard drive using a LiveCD. Now when I boot my laptop (external HDD removed), I get this: Code: GRUB Loading stage1.5. GRUB loading, please wait... Error 21 I don't get this. I never touched anything with my internal drive. Well, maybe. When I was reviewing what partitions the installer was going to format, the swap partition for my internal drive (Fedora) was set to be formatted even though I did not specify this. I figured that wouldn't cause any problems. Also, Fedora never used to show GRUB loading at all. Screen was blank until Fedora starting loading. Maybe this means that this is a copy of GRUB from my BackTrack disc? Also, I ran 'fdisk' to look for anything suspicious and under /dev/sda1 (internal drive, boot partition) it says "Partition 1 does not end on cylinder boundary." Please, please help. I have a half-completed research paper on this drive and LOTS of homework and about 70 O'Rielly books. 03-27-2010 #2 devils casper View Profile View Forum Posts Private Message View Articles Super Moderator Join Date Jun 2006 Location Chandigarh, India Posts 24,776 Installer of Backtrack has installed its GRUB in MBR of Internal disk. When you unplug External disk, GRUB couldn't locate its conf files and throws error. Fedora's GRUB Menu is hidden by default and thats why it doesn't appear at startup. You can remove hiddenmenu option in grub.conf file to make it appear. You have to re-install Fedora's GRUB now. Boot up in Rescue Mode using from Fedora Installation CD/DVD and execute this at Shell Prompt :