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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
First, install Windows boot loader if you are currently using grub, instructions are in post #4.
In Windows XP, go to control panel/performance & maintenance/administrative tools/computer management/disk management. Highlight the Ubuntu partition(s) one at a time and right click it, select "delete partition".
Then, to reallocate the free space back to Windows, download and use Bootitng you'll make a bootable CD or floppy to boot into dos mode with to resize the Windows partition, select "Cancel" to the first window that appears so you don't install it and can do maintenace, click on "Partition work" icon and highlight the Windows partition, hit "resize" and wait for error check, then put the maximum amount of megs. it says you have in the new size field.
You can also use Gparted to do the same, but it can't guarantee "Non-destructive resizing for NTFS", no matter how many "Linux users" have used it successfully to resize NTFS. And Bootitng is a much smaller download and free to use/try for 30 days.
Last edited by Junior Hacker; 01-23-2009 at 08:53 PM.
Reason: Added syg00's advice
Do you have any other OS on besides Ubuntu and xp?
How many partitions do you have for Ubuntu?
How many partitions do you have for xp?
What bootloader do you use to boot?
Can you boot into Ubuntu?
If you can, you could run the command: sudo fdisk -l, from a terminal and post the output here.
Since you are the only one who knows where xp is, it would be hard for anyone here to tell you what to do to not damage your xp partition (s), right?
If grub is your boot loader, you can remove it and restore the Windows boot loader following instructions below.
To restore Windows XP MBR
1: Boot with Windows XP CD in the drive
2: Hit any key to boot from the CD
3: Wait for installer to load drivers in memory
4: When asked to press enter to install, type: r
5: When asked which Windows installation would you like to log onto,
if there is only one, type: 1 (and hit enter)
6: When asked to type the Administrator password, I hit enter without
typing anything which will be the administrator password for most OEM
Windows installations, (No password). If you installed Windows XP
yourself and added an administrator password, type this password.
7: At the prompt type: fixmbr (and hit enter)
-**CAUTION** and a warning appear
8: When asked "Are you sure you want to write a new MBR?:" type: y
-The new master boot record has been successfully written.
9: When the prompt returns, type: exit
-The computer re-boots and Windows kernel is loaded.
No it wont delete linux partitions if you know what you are doing and where you are installing windows. You should always use free space to install new os unless otherwise needed. After installing windows you will need to reinstall grub.
For that you will need to enter the rescue mode and do it. You can search for it here and find and answer though.
Tacking on a query to someone elses topic isn't really the way to ask things, however the answer was already given to you, "reinstall GRUB" is effectively the answer, vibinlakshman. Grub will then take back the MBR and you can then configure your windows installation within grub to be able to boot windows.
Last edited by r3sistance; 01-24-2009 at 09:28 AM.