LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help required on loading Ubunto onto a 2nd drive (https://www.linuxquestions.org/questions/linux-newbie-8/help-required-on-loading-ubunto-onto-a-2nd-drive-807230/)

Darksider 05-11-2010 04:52 PM

Help required on loading Ubunto onto a 2nd drive
 
:newbie:

:confused:

Hi!

as mentioned in the header I have 2 HD's

The C drive runs on Win7

I would like to load the latest Ubuntu on the D drive but cannot find any info on how to do this on the ISO disk.

Could someone please advise on how I should proceed or point me in the right direction to find this info.

Thanks in advance for your kind assistance

PEACE:doh::):scratch:

bigrigdriver 05-11-2010 05:54 PM

First thing to do is to start thinking in GNU/Linux terminology. There are no C or D drive; they are devices listed in /dev. The first drive is /dev/sda, the second is /dev/sdb, and so on.

So, you have Windows installed on /dev/sda. If /dev/sda is all one partition, then windows is installed in /dev/sda1 (the 1 means the first partition on drive /dev/sda).

You want to install Ubuntu on /dev/sdb. When the installation is complete you will have two partion on /dev/sdb: /dev/sdb1 (the root of the filesystem) and /dev/sdb2 (swap).

During the installation process, you will have the opportunity to select the drive for installation. Be VERY CAREFUL to select /dev/sdb for installation of Ubuntu. You should also have the opportunity to select a volume of space on /dev/sdb for the swap partition.

If you want Ubuntu's bootloader (grub) to boot either windows or Ubuntu, the installation will write the first stage of grub into the MBR of /dev/sda, and it will write a configuration file which will show you a menu on boot that allows you to select which OS to boot.

Note: Make a copy of your MBR on /dev/sda (before installing Ubuntu or any other GNU/Linux distro) and save it somewhere (in your windows Documents should suffice). In future, if you want to get rid of Linux on /dev/sdb, you will have to either restore that copy of the MBR, or use a windows install disk to run fixmbr. Just a word of advice.

Search these boards for info on how to use the dd command from a liveCD to make that copy of your MBR.

PS: most if not all problems you encounter have already been answered. Use www.google.com/linux to search for answers to questions you might have. If you can't find the answer, then post your question here. Linux is a learning process as much as it is an operation system. The link above will help you in your learning experience.

fbsduser 05-11-2010 06:25 PM

To back the Windoze mbr up type this:
Code:

sudo dd if=/dev/sda of=~/win7.mbr bs=1 count=512
in the terminal window. You'll need to use the sudo command (which elevates to superuser, just like Win7 UAC tool does) otherwise dd will complain that the block device can't be opened and won't create the backup copy of the mbr.
After running the command copy the win7.mbr file to your windoze partition.
If you ever need to uninstall Linux, just type:
Code:

sudo dd if=/media/<windoze partition>/win7.mbr of=/dev/sda
As with the other one you need root access to open and operate in the HD block device.

Darksider 05-11-2010 11:22 PM

Maybe I'm dum But:
 
Thanks for your kind reply.

From what I can gather from your reply you're answer seems to me as if I had 2 partions on the same drive.

What I have is a 2nd HD and this is where I would like to put Ubuntu.

Thanks for any clarification

Regards :scratch::scratch: :confused::confused:


All times are GMT -5. The time now is 07:33 PM.