Mike Chirico on 27 Jul 2008 10:28:29 -0700 |
On Sun, Jul 27, 2008 at 09:09:54AM -0400, Art Alexion wrote: ... > that there is a problem with the primary SATA hard drive. The drive (sda) > has three partitions: sda1=/boot, sda2=/, and sda5=swap. sda1 & 2 are ext3, > sda1 being primary and sda2, LVM. [snip] > I gound a web page that suggested running > # grub > > root (hd0,0) > > setup (hd0) Since you have a sata drive, /dev/sda, you probably want to do the following: grub> device (sd0) /dev/sda grub> root (sd0,0) grub> setup (sd0) Below is sample output from the setup command: Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (sd0)"... 16 sectors are embedded. succeeded Running "install /boot/grub/stage1 (sd0) (sd0)1+16 p (sd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded Also, it might be worth verifying that /dev/sda1 is set as the boot partition using the fisk command below: $ fdisk -l Disk /dev/sda: 80.0 GB, 80000000000 bytes 255 heads, 63 sectors/track, 9726 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0002ddf9 Device Boot Start End Blocks Id System /dev/sda1 * 1 25 200781 83 Linux /dev/sda2 26 9726 77923282+ 8e Linux LVM Can you mount the drive on /mnt? $ mount /dev/sda1 /mnt You should see the following $ ls /mnt/grub device.map grub.conf minix_stage1_5 stage2 e2fs_stage1_5 iso9660_stage1_5 reiserfs_stage1_5 ufs2_stage1_5 fat_stage1_5 jfs_stage1_5 splash.xpm.gz vstafs_stage1_5 ffs_stage1_5 menu.lst stage1 xfs_stage1_5 In fact, if the grub setup command can't find files, you can manually copy after mounting it on /mnt. Hope this helps. Regards, Mike Chirico ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|