I just adore the install. Esp. of GRUB. Does *anyone* who works on GRUB actually work in the real world, and not only on brand new machines? I just had happen at work what happened last fall on my home system: then, I had /dev/hda, and was trying a clean install on a new SATA drive; right now, I'm installing on a replacement disk on a server that has no CD/DVD drive from a USB key. My options: on my home system, it was MRR on /dev/hda (which was being replaced, and was to become my backup drive), and here, in the MBR of the USB key; in both cases, *only* in the first sector of a partition on the new drive. I am NEVER OFFERED THE OPTION of the MBR of the drive I'm installing to. *snarl* mark "no grub, then linux rescue, then chcon, then grub install... I hope"
a cross post -- how tacky On Fri, 4 Jun 2010, m.roth at 5-cent.us wrote:> Does *anyone* who works on GRUB actually work in the real > world, and not only on brand new machines?certainly -- I had a data recovery a couple weeks ago where all I could reach on boot was the grub command prompt, a tight time deadline, no spare box to debug from, and a need to do exploration from that prompt> I just had happen at work what happened last fall on my home system: then, > I had /dev/hda, and was trying a clean install on a new SATA drive; right... snip> I am NEVER OFFERED THE OPTION of the MBR of the drive I'm > installing to.Yup -- Probably you did not get a clean initrd containing the needed driver module for the SATA drive controller in question. Happens a lot. -- Russ herrold
On 6/4/10 11:10 AM, "m.roth at 5-cent.us" <m.roth at 5-cent.us> wrote:> I just adore the install. Esp. of GRUB. > > Does *anyone* who works on GRUB actually work in the real world, and not > only on brand new machines? > > I just had happen at work what happened last fall on my home system: then, > I had /dev/hda, and was trying a clean install on a new SATA drive; right > now, I'm installing on a replacement disk on a server that has no CD/DVD > drive from a USB key. My options: on my home system, it was MRR on > /dev/hda (which was being replaced, and was to become my backup drive), > and here, in the MBR of the USB key; in both cases, *only* in the first > sector of a partition on the new drive. I am NEVER OFFERED THE OPTION of > the MBR of the drive I'm installing to. > > *snarl* > > mark "no grub, then linux rescue, then chcon, then grub install... > I hope"Not a GRUB bug, rather, Anaconda being overly "helpful". -- Gary L. Greene, Jr. IT Operations Minerva Networks, Inc. Cell: (650) 704-6633 Phone: (408) 240-1239
On Fri, Jun 04, 2010 at 02:10:31PM -0400, m.roth at 5-cent.us wrote:> I just adore the install. Esp. of GRUB. > > Does *anyone* who works on GRUB actually work in the real world, and not > only on brand new machines? > > I just had happen at work what happened last fall on my home system: then, > I had /dev/hda, and was trying a clean install on a new SATA drive; right > now, I'm installing on a replacement disk on a server that has no CD/DVD > drive from a USB key. My options: on my home system, it was MRR on > /dev/hda (which was being replaced, and was to become my backup drive), > and here, in the MBR of the USB key; in both cases, *only* in the first > sector of a partition on the new drive. I am NEVER OFFERED THE OPTION of > the MBR of the drive I'm installing to. > > *snarl* > > mark "no grub, then linux rescue, then chcon, then grub install... > I hope"Try `grub-install --root-directory=/path/to/your/new/system /dev/hda' (if there is on hda). -- Dominik Zyla -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20100604/a3ab0c89/attachment-0001.sig>
> On Fri, Jun 04, 2010 at 02:10:31PM -0400, m.roth at 5-cent.us wrote: >> I just adore the install. Esp. of GRUB. >> >> Does *anyone* who works on GRUB actually work in the real world, and not >> only on brand new machines? >> >> I just had happen at work what happened last fall on my home system: >> then, I had /dev/hda, and was trying a clean install on a new SATA drive; >> right now, I'm installing on a replacement disk on a server that has no >> CD/DVD drive from a USB key. My options: on my home system, it was MRR on >> /dev/hda (which was being replaced, and was to become my backup drive), >> and here, in the MBR of the USB key; in both cases, *only* in the first >> sector of a partition on the new drive. I am NEVER OFFERED THE OPTION of >> the MBR of the drive I'm installing to. >> >> *snarl* >> >> mark "no grub, then linux rescue, then chcon, then grub install... >> I hope" > > Try `grub-install --root-directory=/path/to/your/new/system /dev/hda' (if > there is on hda).I did the linux rescue, chroot (whoops, not chcon) to /mnt/sysimage, and did grub-install --no-floppy /dev/sda Now, when I reboot, it goes into the grub shell. Googling, and using the hostile find, I set root (hd0,0), and then setup (hd0). It claims everything is wonderful... but when I reboot, I go back to the grub shell.>From the grub shell, I've also tried telling it kernel/vmlinuz-2.6.18-194.3.1.el5, and it claims it can't find that; neither can find. This is *so* much more sophisticated than changing lilo.conf, and running lilo to update the MBR.... And no, I have no choice, this is work, so I have to use the mandated grub. mark
> On Fri, Jun 04, 2010 at 02:10:31PM -0400, m.roth at 5-cent.us wrote: >> I just adore the install. Esp. of GRUB. >><snip>> Try `grub-install --root-directory=/path/to/your/new/system /dev/hda' (if > there is on hda).Now, is that root directory /, or /boot? mark