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.
Hey, I am completely new to linux and I want to try it out.
So I downloaded ubuntu 7,04 and I have burned out the cd.
Now I want to make sure I don't mess up my entire computer whith dual booting.
I have 2 hard drives the first has windows installed on one partision and my "usage" space on the other. And the seccond hard drive is ready for linux. I yust wanna know how I can install linux on the computer without messing windows up when I have linux and If I desside to uninstall it
I tried searching but I dint find any cases that wold make me 100% secure :-)
Yes, of course you can do that. Linux is my primary OS but I also retain a windows install for a game or two and for things at work that Linux cannot run.
I have 2 hard drives one with windows and one with linux. here is how mine is set up.
Drive 1(sda): Using Windows MBR
Partition 1: Windows (ntfs) (bootable)
Partition 2: Windows (fat32) to share files between linux and windows
Drive 2(sdb): Using Grub MBR
Partition 1: Small partition mounted for /boot (bootable)
Partition 2: Big partition mounted as / (root)
Partition 3: Swap space
Grub configured to chain load the boot code from drive one should I choose to boot into windows. Motherboard set to boot from the secord drive.
This has the advantage of being able to boot into a working OS should either of them fail for some reason (with a bios) change.
The only thing I have to do is to change where grub installs (/dev/sdb). Some distros give you a warning (perhaps all though I don't remember) if you install grub on any drive but your first.
There are many ways to do this, and this is just one idea. Others will probably chime in with others.
Safest way: unplug the windows disk, move the Linux disk to its connector, install Linux, plug the other disk back in. This implies that you XP won't be detected by the installer and that you'll have to add an entry to the boot menu yourself. Not difficult, though. 100% failsafe.
Alternative approach: switch you disks in BIOS so that the Linux disk is listed as the first one. Select that specific disk during install and have GRUB installed to the MBR. This shouldn't affect the windows disk either and XP will automatically be picked up and added to GRUB. Can be 100% failsafe providing that the instructions are followed to the letter.
well, the best I can suggest if you think you might uninstall Linux would be:
when you install Ubuntu don't install a boot loader and just configure Boot.ini in Windows to point to your Ubuntu installation
here is a Howto that I found for setting this up
the advantage to doing it this way is that if you do uninstall Ubuntu you won't have problems booting into Windows since there will be no files left for the grub/lilo bootloader to point to for config info
after the uninstall you simply remove the lines pertaining to Ubuntu and your done
otherwise install the bootloader normally and if you uninstall Ubuntu you then have to boot your XP CD and run fixmbr to resinstall the Windows bootloader
this is the method that I have used and it works fine
I have been experimenting with multiple distros and have done more format reinstalls then I care to think of until I realized that this was all I had to do
I have not tried booting with boot.ini so I can't tell you if that method truly works but the source of that howto is a reliable one
Thanks for all the feedback (almost blown away :-D)
I think I will try Nigtshade's sulution, If what he say is true that is the simplest I think :-)
Now then its yust for me to install linux, and then learn how to install tings a bit more complicated than windows me thinks :P
Edit: Adding a question. How does the linux bootloader work, can I like set it to automatecly start windows or linux? or do you need to select before each startup?
Last edited by Andro1337; 08-21-2007 at 10:09 AM.
Reason: Add a question
A little update and a little plea for help.
I installed ubunto on the 2nd hard drive
but now when the computer tried to boot up
it showed GRUB error 21
I needed to run my winxp cd and fixmbr to load windows.
but seeing I cant boot up linux atm I cant give you the file.
1. HD
Partition(ntfs) 1 windows xp 20 gb
Partition(ntfs) 2 Storage area 280 gb
2. HD
Partition(e**3) 1 linux 80gb *dont remember the file system quite :-)
Partition(fat32) 2 transfer area
I installed linux to partision 1 on the 2nd HD
Restarted and the error 21 occured.
Any tips on where I have gone wrong then?
Your GRUB menu may have been installed incorrectly. I suggest that you go into BIOS, make the Linux disk the first one and reinstall. Make sure, when/if requested, to place GRUB on the MBR. Having the Linux disk as the first one means that it won't overwrite you windows bootloader, i.e. nothing to worry about should it fail again.
Using XP to boot a Linux takes about 10 times more effort and this is a good example of it.
You have to fix a few things first. Once the installation has completed "DO NOT" alter the disk order because you will send the boot loader to the wrong disk to pick up the OS and get Error 21---->Selected disk does not exist.
Your quickest way out of the hole is to put the Ubuntu disk back and boot it up to run as a Live CD. Click Accessories and then terminal and supply the output of the following inofrmation. You should be able to get into Internet and copy and paste the information into the post.
Xp is not going anywhere and will be fired up eventually. So let us have those information and we could advise the next step.
If you for whatever reason you can't supply the above information you can try another attempt. This time take a look at the Section A of the 2nd link in my signature. It is especially written for users able to run two hard disks.
-----------------------
Few tips here
(a) You can get XP boot again by restore its MBR with a Dos floppy or a XP/Win2k installation CD. Details in the last link of my signature. You should get an error free dual boot system by following the steps.
(b) The Ubuntu CD is all the tool you need to fix Grub, so learn to use it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.