|
|
| Kubuntu Install killed Windows |
|
waldchr
Member #11,023
June 2009
|
I installed Kubuntu with the in-Windows program, and now neither OS loads (I get a grub error) the only thing that works is Kubuntu on my flash drive. How do I get rid of the stuff I installed and get Windows to boot again? Is it possible to just rename or delete the files created in the installation?
|
|
BAF
Member #2,981
December 2002
|
Do a repair on Windows. |
|
waldchr
Member #11,023
June 2009
|
How?
|
|
bamccaig
Member #7,536
July 2006
|
You've overwritten the master boot record with grub, which unfortunately is misconfigured if not even Kubuntu boots. If you have installation media for Windows then you should be able to recover it by booting from the Windows installation media and looking for a repair option. I just did this with Windows 7 a few days ago because the Debian installer didn't prompt me for where to install grub (I knew this when I installed, but I expected it to be easier to recover Windows). You have to go past the language selection screen. It feels like you're progressing towards installation, but it actually has a repair option on a subsequent screen. I had to play with a few of the repair options though. There are a bunch of options that seem like they should work, but I think I tried 3 of them before I finally got it to work. You'd expect better UI from Microsoft... Anyway, on older versions of Windows (and I think DOS), again with installation media, you could repair the master boot record with fdisk /fixmbr[1], IIRC from college. References
-- acc.js | al4anim - Allegro 4 Animation library | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) |
|
BAF
Member #2,981
December 2002
|
Grub2 is awful. I did an install of Ubuntu Server 9.1, which came with that heaping pile of shit of a bootloader. Installed it to an empty hard drive, and still couldn't get it to work. I ended up installing grub-legacy. If it's Windows 7, you just hit repair on one of the first few screens. It will recognize the MBR is blown away pretty quickly and ask you to fix it, and if not, the automatic repair will catch and fix it. There is a way to do it on the command line too, but I don't know it off the top of my head. Of course, I don't live on a command line, I let the GUI handle everything for me. |
|
waldchr
Member #11,023
June 2009
|
Did the repair (Vista). It got through two steps/attempts, but then comes up with a message telling me to remove anything recently connected to the computer. There is nothing connected, and it won't let me tell it that. Edit: Would reinstalling Kubuntu (and therefore grub) work?
|
|
BAF
Member #2,981
December 2002
|
Probably not, it didn't work the first time. You could always try booting into rescue mode, removing grub2, and installing grub-legacy. I saw a writeup on the ubuntu forums someplace when I had to deal with it. Grub2 is a huge steamy pile of crap, from what I've seen. |
|
waldchr
Member #11,023
June 2009
|
Reinstalling did work, and now all OS's are recognized. Is there a way to reorder the way they are listed in the boot screen (eg vista as default, then Kubuntu instead of the other way around)? Also, after I installed it the second time, apt-get began to recognize more packages
|
|
Thomas Fjellstrom
Member #476
June 2000
|
With Grub 2 its hard to reorder if you want to keep the auto generated stuff (like the vista install), the best is to just tell it to set the Vista option to be the default. waldchr said: Is there a way to do "configure apt" manually (command line) so I don't have to install something every time I try a new distro on my flash drive? Yes, check /etc/apt/sources.list and make sure universe and metaverse are enabled along with main. -- |
|
waldchr
Member #11,023
June 2009
|
Thomas Fjellstrom said: the best is to just tell it to set the Vista option to be the default. How? Quote: Yes, check /etc/apt/sources.list and make sure universe and metaverse are enabled along with main. I can change the document, but it won't let me save it to actually apply the changes. How do I get around this? Terminal command?
|
|
Thomas Fjellstrom
Member #476
June 2000
|
waldchr said: I can change the document, but it won't let me save it to actually apply the changes. One of the normal apt commands. apt-get update or aptitude update and it will fetch all of the list of packages from all apt/apt-src lines in the file. Quote: How? RTFM? Small hint, look in /etc/default/grub -- |
|
waldchr
Member #11,023
June 2009
|
Thomas Fjellstrom said: One of the normal apt commands. apt-get update or aptitude update and it will fetch all of the list of packages from all apt/apt-src lines in the file. Sweet, I thought you actually had to change the sources.list. For grub, do I change "GRUB_DEFAULT" to the number that vista is in the list at startup (eg if it's 5th write 4)?
|
|
Thomas Fjellstrom
Member #476
June 2000
|
waldchr said: Sweet, I thought you actually had to change the sources.list. if you change sources.list, or haven't run an update in a while, run it. I pretty much run an update every time I go to use apt (at most once a day or so). Quote: For grub, do I change "GRUB_DEFAULT" to the number that vista is in the list at startup (eg if it's 5th write 4)? Yup. And you'll want to run update-grub2 as root. -- |
|
waldchr
Member #11,023
June 2009
|
I, to no avail, tried su to gain root privileges, so how do I get it to let me save my changes? I know: Linux noob
|
|
bamccaig
Member #7,536
July 2006
|
waldchr said: I can change the document, but it won't let me save it to actually apply the changes. How do I get around this? Terminal command?
waldchr said: Sweet, I thought you actually had to change the sources.list. You do, but it's owned by root (the system administrator) so you'll need root privileges to do it. With Ubuntu, the easiest way to do this is with sudo. $ sudo editorOfChoice /etc/apt/sources.list For example: $ sudo gedit /etc/apt/sources.list After editing that file, you need to update your package list to actually use the reconfigured sources. $ apt-get update # and/OR $ aptitude update
-- acc.js | al4anim - Allegro 4 Animation library | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) |
|
waldchr
Member #11,023
June 2009
|
That doesn't seem to work. It just comes up with an error and opens a new document. Edit: Resolved it.
|
|
|