Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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 found a previous thread on this subject but every suggestion either didn't work or I didn't know how to make it work. The scenario is this. A while back a buddy installed Ubuntu on my old laptop which is running Windows XP media center edition. I was deleting that partition and was downloading a program that would reintegrate that disk space back into XP when my computer suddenly died out of the blue. Now when I boot up I get a GRUB Error 22. I still have the Ubuntu disk and I have a Windows Bootdisk from Bootdisk.com that just brings up a command line A:/. Feels like I have all the ducks I just need some help getting them in a row. Not a novice when it comes to computers but I think I've reached my Google limit. Help resolving this would be great.
Recently I also faced same problem and By using xp bootable cd i can able to boot into windows by using two commands and as linuxlover.chaitanya said earlier i want to add one more command to this ,after typing the command FIXMBR we need to type FIXBOOT then everything goes fine(I did same thing..Works Fine)
This surely has been solved here at LQ. You just need to refine your search to find what exactly you want.
You need to boot from your XP disk and then enter rescue mode and on the prompt type
fixmbr
That will bring back your xp boot loader and you will be able to boot it.
Again I'm not trying to make any member restate anything. Like I said, I have found a previous thread on this exact subject but either the suggestions didn't work or I am just not knowledgeable enough to make them work. I can follow instructions well and if you have the experience to help fix this I would appreciate it greatly.
linuxlover.chaitanya, srinivasmiriyalu> BY XP disk do you mean the Bootdisk I bought or a full version of Windows XP? When I run the Bootdisk from Bootdisk.com I get four options that bring up a DOS like command screen with just "A:\>". If I type in fixmbr it says its a bad command or file name. I've never worked in DOS so if a .exe is needed or anything else, assume I'm a novice and throw the extra instruction in. Thanks again for your replies guys.
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Do you have the install CD of XP ?
Start you're computer with the CD in the CD drive so that will start up from the CD drive .
Press the keys as prompted until you reach the setup mode press the R to get the the repair mode then type fixmbr
ronlau9> I don't. Google results say I could create one using a computer currently running XP with nero. Any way around this?
jkzfixme> Using the bootdisk from bootdisk.com it brings me to A:\> I typed in fdisk \mbr and it says "Parameter format not correct - \mbr". If I just type fdisk it gives me a message "Your computer has NTFS partitions which may require large drive support" and goes on to ask "Should NTFS partitions on all drives be treated as large (Y / N)? Then it gives 4 options:
1.Create DOS partition
2.Set active partition
3.Delete partition or logical DOS drive
4.Display partition information \
If I'm typing something wrong just let me know. I would think I would be able to use the Bootdisk from Bootdisk.com as it was recommended in the last forum to help get Windows Xp going. Like I said guys major newbie but I can follow instructions. I just want Windows to start so I can finish unpartitioning the HD.
Thanks for the help so far guys but it didn't work.
Since I typed in fdisk /mbr now when it starts up instead of a GRUB error now it says "Missing operating system". I've tried using a supergrubdisk but an error occurs when its running a fsck check. It asks me to perform one manually in safe mode but I have no idea how. Also at the first screen of the supergrubdisk the only available operating system to select is "First Kernel and Initrd". Does this mean XP is lost?
The problem here is that grub can no longer locate your partition with the operating system as you have changed it. The easiet thing to do is fix grub. I hope you still have the ubuntu live CD you used for the install as you need this.
Insert the live CD and boot into Unbuntu. You may need to set the cdrom as your first boot device for this. It is different on different computers but on my Dell you press F12 to get a list of bootable devices.
Once in Ubuntu open a terminal window (accessories>terminal) and follow these instructions to repair grub:
Type sudo grub
Enter your password
Type find /boot/grub/stage1
You will get an output something like (hd0,0)
Type root (hd0,0)
Type setup (hd0,0)
Type quit
Shutdown and restart. Remove the cd when prompted.
Grub should now load as normal
If you still have both operating systems installed when you ask to find stage 1 you may get more than 1 choice. If you can remeber which partition winxp and ubuntu where on you can choose the appropriate one. For information sda1 in grub language is (hd0,0) sda3 would be (hd0,2) and so on. If before you installed ubuntu you only had one partition it is most likely winxp will be on (hd0,0)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.