Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I was able to boot up and select which OS to start, Ubuntu 8.10 or Windows XP pro, without any problem. Unfortunately I had cause to reinstall Windows XP pro, which appears to have overwritten Grub. As Windows now starts automatically when I boot up
Can anyone help me to sort this problem out, without having to reinstall Ubuntu 8.10 again, as this would mean, I believe, losing all my current files.
From any Linux "live CD", you can re-install grub. Open a terminal (or ctrl-alt-F1 (or F2) for a command prompt) and:
fdisk -l ##confirm what partitions are seen by the system. Let's assume that Linux /boot is on /dev/sda2. To grub, this is (hd0,1).
grub ##opens the GRUB shell
root (hd0,1) ##Points GRUB to the the Linux /boot partition
setup (hd0) ##Puts GRUB on the MBR of the first drive.
From any Linux "live CD", you can re-install grub. Open a terminal (or ctrl-alt-F1 (or F2) for a command prompt) and:
fdisk -l ##confirm what partitions are seen by the system. Let's assume that Linux /boot is on /dev/sda2. To grub, this is (hd0,1).
grub ##opens the GRUB shell
root (hd0,1) ##Points GRUB to the the Linux /boot partition
setup (hd0) ##Puts GRUB on the MBR of the first drive.
What do you mean by:
1 - "Live CD"? All I have is the CD I created from the Ubuntu download.
2 - I am sorry, but I don't understand what you are trying to tell me.
I am new to Linux and as yet do not fully understand the "techie" talk.
Please excuse my ingorance.
"Live CD"? All I have is the CD I created from the Ubuntu download
Exactly. That's what pixellany is referring to. Live CD because it has the operating system and can be used for many purposes without installing to your hard drive. You insert your installation CD, let it load and open a terminal/konsole and enter the commands pixellany suggested:
sudo fdisk -l #(lower case Letter L)This give partition info so you know which partition has Ubuntu boot files. Assuming your Ubuntu partitions is sda2 you would enter command suggested above. If the partition is different you need to make appropriate changes.
Many different versions of Linux give you a full install live from the CD. From there, you can open a terminal from the menus.
For just about ANY bootable Linux disk, you can get a terminal using ctrl-alt-F1.
Once you have a terminal, you enter the commands in order. (Note that I put comments in with ##--the only thing to be entered is the stuff before the ##)
Take the time to learn the basics in a terminal (AKA "console" or "command-line") This is the most efficient way to do some things---and has largely been taken away from Windows users.
I don't see how reinstalling Grub will help in this instance. If the OP re-installed Windows, it's probably overwritten the Ubuntu installation entirely. Windows AFAIK assumes it's the only OS in the world and can therefore use the entire disk.
I don't see how reinstalling Grub will help in this instance. If the OP re-installed Windows, it's probably overwritten the Ubuntu installation entirely. Windows AFAIK assumes it's the only OS in the world and can therefore use the entire disk.
The assumption is that the OP is using seperate disks.
Try to download and use SUPERGRUB. It worked for me.
It has a help menu that explains everything. Read everything carefully. You ill be able to install a GRUB with dual boot or at least boot into UBUNTU and from there you can reinstall GRUB with the old specifications.
I don't see how reinstalling Grub will help in this instance. If the OP re-installed Windows, it's probably overwritten the Ubuntu installation entirely. Windows AFAIK assumes it's the only OS in the world and can therefore use the entire disk.
If I recall correctly, Windows DOES give you the option to install on a partition which is smaller than the whole disk.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.