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.
My computer has Windows, and recently I installed ubuntu aside. My company asks me to leave Windows and unistall Ubuntu. Please tell me what should I do to accomplish such thing
You don't uninstall an operating system, you simply overwrite it. You should be able to go to the partition manager in Windows and tell it to delete the Ubuntu partition and expand the Windows partition to fill the empty space. Then you'll need to run the Windows recovery to rewrite the MBR to remove grub. You should make backups of your information before doing this.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Do the company provide and install image? Do they have an IT department? Do you have any data on the hard drive that you need to keep? Which version of Windows? Do you have a "recovery CD", a full install CD, something else or nothing?
The advice above is good but if your company has an IT department you should give it to them, if not you should make sure you have a backup of any data you need before making any changes.
Which version of windows. If it's XP you can replace the old MBR using the fixmbr windows program from the windows rescue disk, or the installer disc in management mode. You can remove the Linux partitions in the Windows disk manager, or from your Ubuntu luve distro or the install disk. Some Linux distro's save a cooy of the original MBR in the /boot/ directory. You might want to copy it to a usb flash drive. Using the dd program from Linux, you can restore the first 446 bytes of this file to the MBR to restore the original. The last 64 bytes cintain the original partition table, but you may have reduced the Windows partition to leave room for Linux.
If you used wubi to install Ubuntu, then Linux is in a file inside windows. In this case, you only need to restore the MBR and delette this file. Also check if Wubi has an uninstall option. It may do both. Note: I've not used Wubi, so I don't know if this is the case.
If you use Vista or Windows 7, the drive management programwill allow you to resize partitions. After you resize a partition, windows may want to run a chkdisk program the next time you reboot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.