[SOLVED] Tried to Ext3 a 3TB drive, now grub can't find the kernel Centos 5.6 Raid 1
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Tried to Ext3 a 3TB drive, now grub can't find the kernel Centos 5.6 Raid 1
After setting the partition on the new external 3TB drive (using gdisk), I rebooted and that's when the trouble began. The external drive, which was to back up some other failing drives, none of which is the boot disk, seemed to be preventing boot. Probably, I should have made more careful note of what the computer said at that time, but it was late and I was tired and... http://xkcd.com/349/ Probably, I should have just unplugged the new drive and started over, but instead I tried to fix things by commenting out the new drive in fstab.
In rescue mode, I can chroot /mnt/sysimage, so I assume it's mostly in good shape. I just need to figure out how to fix grub. But since it's a Raid 1, things are a teeny bit more complicated. It's a software raid that is managed by the Intel BIOS on an Inspiron 530s, Intel Celeron 450 (2.20GHz,800FSB).
So far, I've tried to install-grub on /dev/mapper/isw_caaccjcibc_mercurial1 and received the error message: "The file /boot/grub/stage1 not read correctly." Not sure what to make of that.
Suggestions? Advice? Amusing anecdotes or favorite web comics?
fdisk -l looks like this:
Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 60800 488271577+ 8e Linux LVM
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 60800 488271577+ 8e Linux LVM
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded. succeeded
Running "install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/grub.conf"... failed
Error 2: Bad file or directory type
So I type 'root (hd0,' and then hit the tab key and see this:
Code:
Possible partitions are:
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 1, Filesystem type is unknown, partition type 0x8e
Thanks to this page: Partition types: List of partition identifiers for PCs I can see that 0x83 is a 'Linux native partition' and 0x8e is a 'Linux Logical Volume Manager partition.' But that doesn't really help me much, since running setup on the 0x8e partition fails with the message: "Error 17: Cannot mount selected partition."
But something has happened: now when I try to boot, CentOS starts, sort of. Instead of the Grub shell, I land on a page with the blue CentOS logo in the background and 'GNU GRUB version 0.97 (616K lower / 2085440K upper memory)' at the top. And a big list of kernels:
2.6.18-194.26.1.el5xen
2.6.18-194.32.1.el5xen
2.6.18-238.5.1.el5xen
2.6.18-238.9.1.el5xen
2.6.28-238.12.1.el5xen
and all of their debug versions, too.
Unfortunately, choosing most of these simply leads me to the 'Bad file or directory type' error message and at least one of them causes a kernel panic.
Tune in next week for the next exciting installment!
Downloaded supergrub (http://www.supergrubdisk.org/). And this looks like a fine utility, but it hasn't improved my situation any. I think, for the most part, I had already repaired grub. And now, whenever I try to boot any of the kernels, grub says: Error 2: Bad file or directory type. And this page here: http://www.uruk.org/orig-grub/errors.html tells me that "This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO." But I don't think I can take that at face value. Based on what I've read, I'm developing a suspicion that the raid is the problem, that grub just doesn't see the raid as a proper/bootable disk. Not sure how it worked in the first place, but I'll make sure my boot drive is just a regular old hard drive in the future. I think next I will try to see if I can convert my raid 1 drives into normal drives.
And that seems to have worked. Using Intel Matrix Storage Manager, I simply converted one drive and then the other back to non-raid, rebooted, and pointed grub at the drive that was not hd0 (I think it was hd5 or something weird like that, probably I installed them goofily). But the next thing I know, my server is running again. Oh, and I should mention that I had everything backed up already. The Storage Manager issues a "you will lose all your data" warning when you convert to non-raid, but apparently that's not a sure thing with Raid 1, at least it wasn't in my case. Raid 0, you'd probably be screwed.
Anywayz... cheers! umm... all of you. Now I can get back to working on that 3TB drive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.