Thank you for your answer. I tried to install grub when I install ubuntu. But there are some errors so that I can't install the grub during the install session. So I have to boot to ubuntu from my flash-disk. I can boot directly from my harddisk to xp. I don't want to delete my xp. But is it possible for me to install the grub now?
<br><br><div><span class="gmail_quote">On 12/28/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>><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 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 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 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 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 opportunity to<br>select grub as the booter.  It's much easier than the apt-install 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: 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><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