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 installed Ubuntu 7.04 on a PC already running with WinXP.
Everything went OK but after restarting my system, I was unable to start WinXP from the Grub menu, I got the following error:
Error 24: Attempting to access block outside partition
My menu.lst file looks like this (not the complete file):
I think you might need to take out the "map" lines. Those are used when you have 2 or more hard drives to pretend that the second drive is the first drive (which many Windows versions require). Since it appears you only have one drive, you don't need it.
Thanks for the suggestion but it's not working: I commented out the two lines and I still get the same error message.
By the way, I also have an other drive (hdb) with other partitions (both for Win and for Linux) but it's not the primary drive used to boot the system.
I also forgot to mention that before using Ubuntu, I was using OpenSuse 10.2 and that the menu.lst used is (strangely) located on my previous OpenSuse partition: /media/sda9/boot/grub instead of /boot/grub.
I also forgot to mention that before using Ubuntu, I was using OpenSuse 10.2 and that the menu.lst used is (strangely) located on my previous OpenSuse partition: /media/sda9/boot/grub instead of /boot/grub.
Not a problem.....this presumably means that you did not install GRUB as part of the Ubuntu install---ie you are still using the GRUB that went with SUSE. The "gotcha" is that the GRUB file that goes in the MBR gets "hard-coded" to point to the correct /boot partition.
Your menu.lst file implies that Windows is on the first partition of the first drive---Is that correct? (Yes--I just looked at your fdisk output)
So--are you sure that the GRUB menu at startup matches the one you are editing?
Yes, I know that it's matching because the other menu.lst file (the one located in /boot/grub) looks totally different.
I also tried to compare with the menu.lst generated by the OpenSuse distribution but its structure looks completely different and it's therefore not helping.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.