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.
so this was obviously pretty dumb of me, but hopefully it's not too hard to fix. I deleted my ubuntu partition from windows, and of course now I can't boot into anything. It says error 17. I have a lot of important files in windows that I need to access. What should I do?
Depends what you want to do - if you are going to put another Linux on, just go ahead. The installer will fix the boot-loader for you - and probably add an entry for windows (depends on distro).
If you want a Windoze only box, just boot the CD, and get into recovery console when it tells you to. Then run fixmbr. For Vista use "bootrec.exe /fixmbr"
Done.
i would try booting from an external live linux cd (inside-security.de i.e.) and then using testdisk for recovering the lost partition..
hope this helps.
good luck.
So, you were dual-booting linux & windows. If I understand you correctly, now you have deleted linux, and therefore grub so you cannot boot to windows anymore?
You are in a big and scary mess.
My solution would be to:
Borrow a computer so you can download stuff.
Download a linux "live CD" eg knoppix. Burn it to a CD.
Boot from it on your broken computer. Do not click "Install" if that option is offered.
Mount your windows partition and rescue your essential files to a USB-attached external disk.
Once you have rescued your files you are free to try restoring windows boot.
You don't say which version of windows you were running (3.1 or vista?), but you should google for fix MBR only after you have safely rescued your important personal files to an external disk.
I would do what syg00 mentions in the post above. This is the easiest and quickest way to get Windows back. You can reinstall Ubuntu later on if you want. You will not lose any data. Good luck.
There is a much easier way to do it than has been listed above. Just download a copy of super grub, burn it to disk. Then just boot super grub from the cd, it will repair or totally replace the grub. Super grub even has a feature that will help you through the process, it normally takes less than a minute. Super grub is listed in distrowatch.com If you run linux you should never be without it. It will restore the grub for linux/linux, linux/windows or a single os.
There is a much easier way to do it than has been listed above.
And wouldn't you know it, there's an even easier way, you didn't delete grub (in MBR), you deleted the Ubuntu partition where the grub config file was located, but you can still boot Window$ by typing this at the grub command line when it boots up:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.