Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell driver drivers email error ethernet excel firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition password problem router slow software sound trojan usb video virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Solved: Dualboot questions


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
absolutezero1287's Avatar
Senior Member with 156 posts.
 
Join Date: May 2007
Experience: Intermediate
20-Feb-2008, 11:00 PM #1
Solved: Dualboot questions
A friend wants to start using Ubuntu (She too is tired of M$) and I'm gonna install it for her. But I want to get a dualboot for her so that the transition is smoother. The reason for my paranoia is as follows:

I've been on Linux (Ubuntu) for about half a year. I gave windows the boot. I just got so sick of my computer being slow. I got sick of the registry and the viruses.

I had known about Linux for a while and just decided to do a dual boot. So I did. I dual booted Ubuntu 7.04 and Windows XP. It worked beautifully. Until one day I figured that I didn't need Windows. So I deleted the Windows partition.

A week or so passed and I missed my windows games that wouldn't play with wine. I tried to reinstall windows but to no avail. I felt like Linux had taken over my HD. In the end it turned out for the better, though!

So what I'm really asking is...how would I reinstall windows after deleting the windows partition (as per my story)?
demortes's Avatar
Computer Specs
Member with 98 posts.
 
Join Date: Mar 2007
Location: Sioux City, Iowa, USA, Earth
Experience: Advanced
21-Feb-2008, 02:32 AM #2
My recomendation? Reinstall Windows XP on one partition, THEN reinstall Ubuntu. Reinstalling GRUB is a pain IMHO.

If you choose not to, then install the XP to the partition (resize it if you don't have it anymore), then boot into Ubuntu with the live CD and open a terminal. Run sudo grubinstall (I think... google for reinstall GRUB). If everything is alright, it should reinstall GRUB, detect WinXP, but keep your Ubuntu as default.

As always, back up your files!
saikee's Avatar
Distinguished Member with 2,515 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
21-Feb-2008, 03:19 AM #3
Installing Grub, Lilo, NTLDR or Vista boot loader is easy as ABC.

Just install XP. XP's boot loader will over write Grub. You then restore Grub and edit Grub's menu.lst to boot XP.

Piece of cake. You can add 100 systems and the procedure is identical.
absolutezero1287's Avatar
Senior Member with 156 posts.
 
Join Date: May 2007
Experience: Intermediate
21-Feb-2008, 04:21 PM #4
I didn't kno that. Now I see...the reason that it didn't work was because there was no partition for Windows to rest on.
saikee's Avatar
Distinguished Member with 2,515 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
21-Feb-2008, 05:21 PM #5
Ubuntu has Gparted and it can resize partitions. So what's stopping you to reduce Ubuntu and make some room in the hard disk for XP?
scimitar91's Avatar
Junior Member with 2 posts.
 
Join Date: Feb 2008
27-Feb-2008, 07:16 PM #6
Grub
Hey I managed to screw up my MBR/GRUB/whatever.
Windows XP on master hard drive, just installed Ubuntu on second hard drive.
GRUB Error 15 now comes up and neither OS is accessible.
I'm writing from a SLAX live cd. I can look at my hard drive from here and see files like GRUB.exe and ubnldr.exe

Is there any way to fix this from SLAX? I don't have a winXP cd.
Can I just remove GRUB entirely, boot in windows, and reinstall ubuntu fresh?
saikee's Avatar
Distinguished Member with 2,515 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
29-Feb-2008, 01:19 PM #7
Slax has no Grub and so you need to mount the Ubuntu partition to restore its Grub.

You can restore Grub by any Live CD. Details is Task B5 of the last link in my signature.

You can restore XP's MBR using (1) a Dos floppy, (2) a Win2k/XP installation CD or (3) a FreeDos floppy or CD. Just take a look at the last link of my signature.

Make sure you know which is the first boot disk. Also the current Ubuntu calls all disk as sda, sdb, sdc etc and Pata disk device names like hda, hdb etc are no longer supported.
__________________
A newbie entered Linux wonderland in Jun 2004, now a converted Linux user - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & & A "Howto" to install and boot 145 systems
Just booting tips A collection of booting tips
Judge told Linux "You are charged of murdering Windoze by stabbing its heart with a weapon, what was it? Linux replied "A Live CD"
John A's Avatar
Computer Specs
Junior Member with 18 posts.
 
Join Date: Feb 2008
Location: Canada
29-Feb-2008, 02:07 PM #8
Here's how I usually reinstall GRUB on a messed-up Linux installation:

1. Boot off a Linux CD (doesn't necessarily have to be a LiveCD)
2. Use 'mount' to mount all my partitions
3. Mount the dev filesystem with:
mount -o bind /dev /mnt/linux/dev
And mount the proc filesystem with:
mount -t proc none /mnt/linux/proc
4. Run 'chroot /mnt/linux /bin/bash' to change the root to where you mounted it (I usually mount it in /mnt/linux)
5. Run 'grub-install /dev/hda' to install GRUB to the MBR of /dev/hda

>XP's boot loader will over write Grub.

Technically speaking, it doesn't. NTLDR, XP's boot loader, is actually installed on the first sector of the Windows boot partition. This means that no matter what you do to your MBR, your Windows boot loader will remain unchanged. If you've got GRUB installed on the MBR, you can simply erase it at a Linux command prompt like this:
Code:
# dd if=/dev/zero of=/dev/hda bs=446 count=1
After that's done, Windows will boot normally as expected. You can also use fixmbr on the Windows side of things if that's what you prefer.
RootbeaR's Avatar
Computer Specs
Distinguished Member with 2,012 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
01-Mar-2008, 12:30 AM #9
Quote:
Originally Posted by scimitar91 View Post
Hey I managed to screw up my MBR/GRUB/whatever.
Windows XP on master hard drive, just installed Ubuntu on second hard drive.
GRUB Error 15 now comes up and neither OS is accessible.
I'm writing from a SLAX live cd. I can look at my hard drive from here and see files like GRUB.exe and ubnldr.exe

Is there any way to fix this from SLAX? I don't have a winXP cd.
Can I just remove GRUB entirely, boot in windows, and reinstall ubuntu fresh?
This is the easiest way I have found. (In snapshot)

This is PCLinuxOS, I don't know about other LiveCDs'.

After clicking "Redo MBR", it will ask from which partition.
Attached Thumbnails
solved-dualboot-questions-snapshot19.jpg  
saikee's Avatar
Distinguished Member with 2,515 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
01-Mar-2008, 05:11 AM #10
John A

The Task B5 of my suggested link in Post #7 does exactly what you proposed by with less unnecessary steps.

RootBeaR

Th method by Live CD is the general method that works for every Linux Live CD.

You might wish to know any Linux Live CD can be used to rescue another Linux, access that Linux and in some cases ever to operate that Linux's desktop.

Using a Linux Live CD in terminal mode is recommended because it works for both Grub and Lilo and is a "universal" method.

If you use a Linux "A" Live CD in terminal mode and change root to Linux "B" you are actually operating Linux "B" with the kernel from Linux "A" . That is one of the many wonderful features a Linux system can offer.
__________________
A newbie entered Linux wonderland in Jun 2004, now a converted Linux user - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & & A "Howto" to install and boot 145 systems
Just booting tips A collection of booting tips
Judge told Linux "You are charged of murdering Windoze by stabbing its heart with a weapon, what was it? Linux replied "A Live CD"

Last edited by saikee : 01-Mar-2008 05:19 AM.
RootbeaR's Avatar
Computer Specs
Distinguished Member with 2,012 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
01-Mar-2008, 09:16 AM #11
Quote:
Originally Posted by saikee View Post
John A

The Task B5 of my suggested link in Post #7 does exactly what you proposed by with less unnecessary steps.

RootBeaR

Th method by Live CD is the general method that works for every Linux Live CD.

You might wish to know any Linux Live CD can be used to rescue another Linux, access that Linux and in some cases ever to operate that Linux's desktop.

Using a Linux Live CD in terminal mode is recommended because it works for both Grub and Lilo and is a "universal" method.

If you use a Linux "A" Live CD in terminal mode and change root to Linux "B" you are actually operating Linux "B" with the kernel from Linux "A" . That is one of the many wonderful features a Linux system can offer.
Sorry saikee, guess I should have elaborated some.

The PCLinuxOS LiveCD will do it without a command line. It may require a root password, I can't remember.

You just point it to the partition you wish to restore from. If I remember correctly it gave a list of all partitions it could see for you to choose from (which is all of them).

Easy as "Clickety-click, found the trick." (From an old kids show, can't remember which one)

P.S. Ever consider changing your name to MBR, Master Boot Resolver. Or GRUB. GRand Unique Booter?
I think most everyone here either waits for your advice or recommends your advice on boot matters.
__________________
Registered Linux User #450919

"All hear my warning, never turn your back, or I'll attack...."
The Ripper
Judas Priest

This is my intellectual property. Please do not tamper with it. Or face severe criminal prosecution to the full extent of the Law. (Where would we be today if math formulas and equations were to be copyrighted when first thought of?)
saikee's Avatar
Distinguished Member with 2,515 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
01-Mar-2008, 01:47 PM #12
RootbeaR,

I know in many Linux one can repair the MBR with facilities in the desktop. I recommend a Live Cd and terminal mode because it is a general method. For example you can use Slax, which has no Grub, to repair Grub. How it works out must be a wonder to many users.

Thanks for your kind words. Many members here are very knowledgeable in booting. I tend speak out to highlight the differences and similarities of different posters. It all goes to a better understanding of the subject. I can get it wrong and it is up to others to step in to correct me.
__________________
A newbie entered Linux wonderland in Jun 2004, now a converted Linux user - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & & A "Howto" to install and boot 145 systems
Just booting tips A collection of booting tips
Judge told Linux "You are charged of murdering Windoze by stabbing its heart with a weapon, what was it? Linux replied "A Live CD"
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:31 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.