How to Change Windows without affecting GRUB or Ubuntu??
UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
The bad news: Windows is the proverbial 600 pound gorilla who neither knows nor cares if there's anybody else in the room.
The good news:
a) When you install Windows, just don't lose and don't overwrite your Linux partition(s)
<= JUST PAY ATTENTION DURING THE "HARD DISK SETUP" EARLY IN THE WINDOWS INSTALL, AND YOU'LL BE FINE
b) After Windows is installed, you will only be able to boot to Windows (the grub boot will probably have been lost)
c) It's easy to fix, however. To restore dual-boot, just do something like this (my notes were for SuSE):
1. Boot from CD
2. Selected "Install" boot option.
Selected "Repair installed system" sub-option.
3. Logged on as "root" (no password)
4. Mounted my hard disk:
mkdir /oldroot
mount /dev/hda4 /oldroot
5. Ran the *hard disk's* version of grub-install, specifying the
hard-disk as "root dir":
cd /oldroot/usr/sbin
./grub-install --root-directory=/oldroot --force-lba /dev/hda4
<= GRUB-INSTALL SUCCESSFUL
thanks for the help, but the procedure is somewhat different in Ubuntu.
I used the Ubuntu install cd, to go in Rescue Mode....
There i got a shell, into my ( / ), then i tried installing Grub back.... by...
grub-install /dev/hda6
where /dev/hda where hda is i donno what.
When i did this, all i was left with was the GRUB loader with no choices on it, neither Windows nor linux.......????
Well, where exactly is the GRUB boot loader installed. It shows in the /boot, but i think it is installed in the MBR of my Hard Disk.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.