I will try to boot from the live cd and try derek's method. I have reinstalled the ubuntu some times. The same error that the grub can't install always occurs. Now I have a lot of data and software in ubuntu. I don't want to reinstall it again. I have googled the error message from the Internet. But there is not an effective solution.
<br><br><div><span class="gmail_quote">On 12/29/06, <b class="gmail_sendername">alex</b> <<a href="mailto:aradsky@ne.rr.com">aradsky@ne.rr.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
zhihang wang wrote:<br><br>> Thank you for your answer. I tried to install grub when I install<br>> ubuntu. But there are some errors so that I can't install the grub<br>> during the install session. So I have to boot to ubuntu from my
<br>> flash-disk. I can boot directly from my harddisk to xp. I don't want<br>> to delete my xp. But is it possible for me to install the grub now?<br><br><br>If you had errors other than just GRUB during the installation of
<br>ubuntu, that's all the more reason for cleaning out your ubuntu<br>partitions and doing a completely new reinstallation.<br>Trying to correct errors that occured during installation with "fixes"<br>and "patches" can be very frustrating.
<br><br>THERE'S NO REASON TO DO ANYTHING TO YOUR WINDOWS INSTALLATION IN hda1.<br>(I notice that you have the file system W95 FAT32 (LBA) in hda1 and you<br>mention that you have Windows XP installed-------?????)<br><br>
Save yourself a lot of frustration and just do a completely new<br>installation of ubuntu and use care to prevent errors during the<br>installation.<br><br><br>><br>><br>> On 12/28/06, *alex* <<a href="mailto:aradsky@ne.rr.com">
aradsky@ne.rr.com</a> <mailto:<a href="mailto:aradsky@ne.rr.com">aradsky@ne.rr.com</a>>> wrote:<br>><br>> zhihang wang wrote:<br>><br>> ><br>> > This is my disk partion table:<br>
> > sudo fdisk /dev/hda -l<br>> ><br>> > Disk /dev/hda: 60.0 GB, 60011642880 bytes<br>> > 255 heads, 63 sectors/track, 7296 cylinders<br>> > Units = cylinders of 16065 * 512 = 8225280 bytes
<br>> ><br>> > Device Boot Start End Blocks Id System<br>> > /dev/hda1 * 1 3825 30724281 c W95<br>> FAT32 (LBA)<br>> > /dev/hda2 3826 7226 27318532+ 83 Linux
<br>> > /dev/hda3 7227 7296 562275 5 Extended<br>> > /dev/hda5 7227 7296 562243+ 82 Linux swap /<br>> > Solaris<br>> ><br>> > When I install grub as follows:
<br>> > sudo grub-install /dev/hda2 --modules=ext2<br>> > An error message alway occures:<br>> ><br>> > cannot find a GRUB device for /boot/grub.<br>> > grub-setup: error: Cannot guess the root device. Specify the option
<br>> > ``--root-device''.<br>> ><br>> ><br>> > Could any one help me?<br>> ><br>> > Best regards<br>> ><br>> Wasn't there a point during the installation of ubuntu where you
<br>> had an<br>> opportunity to install grub as the booter?<br>><br>> Since you seem to have no easy way to boot into ubuntu you could<br>> avoid a<br>> lot of trouble by simply clearing out everything except your Win95 and
<br>> starting over. Correcting errors in installation can be a real<br>> drag---and you're never sure if you didn't miss something.<br>><br>> If all you want (in addition to Win95) is ubuntu, you can use hda2
<br>> for /<br>> and hda3 for swap. You don't need to get involved with hda4, hda5 or<br>> extended partitioning.<br>><br>> I usually use cfdisk to prepare the partitioning. You could do this
<br>> while running ubuntu from the CD.<br>><br>> Watch carefully during the installation of ubuntu for the<br>> opportunity to<br>> select grub as the booter. It's much easier than the apt-install
<br>> route<br>> after ubuntu is installed.<br>><br>><br>> alex<br>><br>><br>><br>><br>> ><br>> > --<br>> > Best Regards<br>> > zhihang wang<br>
> > --<br>> > Best Regards<br>> > zhihang wang<br>> ><br>> >------------------------------------------------------------------------<br>> ><br>> >No virus found in this incoming message.
<br>> >Checked by AVG Free Edition.<br>> >Version: 7.5.432 / Virus Database: 268.15.28/604 - Release Date:<br>> 12/26/2006 12:23 PM<br>> ><br>> ><br>><br>><br>> --
<br>> ubuntu-users mailing list<br>> <a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a> <mailto:<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a>
><br>> Modify settings or unsubscribe at:<br>> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>><br>><br>><br>><br>
> --<br>> Best Regards<br>> zhihang wang<br>><br>>------------------------------------------------------------------------<br>><br>>No virus found in this incoming message.<br>>Checked by AVG Free Edition.
<br>>Version: 7.5.432 / Virus Database: 268.15.29/607 - Release Date: 12/28/2006 12:31 PM<br>><br>><br><br><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com
</a><br>Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best Regards
<br>zhihang wang