Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How To Install windows after Ubuntu and vice versa ?

some times you can't install virtual Box because your processor may not contain visualization technology , or because of Low RAM ( e.g.1 G ) so what to do then ?

user-image
Question added by Deleted user
Date Posted: 2014/02/25
Davide Raro
by Davide Raro , Project Manager , COROBOR Systèmes, a Campbell Scientific Company

just partitioning the disk and create a dual boot system. When you'll strart your pc you'll choose which OS must be booted.

Ahmed Radwan
by Ahmed Radwan , IT Service Desk Engineer , IDEMIA

Just follow this instruction http://www.dedoimedo.com/computers/dual-boot-windows-7-ubuntu.html

Hezbullah Shah
by Hezbullah Shah , IT Administrator , Tasheel Khorfakkan - Al Shamalyah Businessmen Services

you can change operating systems any time. install ubuntu, when you want windows, and want to remove ubuntu, do a format and install a fresh windows.

 

OR

 

you can install windows, and leave a blank space for Ubuntu, and then install Ubuntu on the blank space, this way you will be able to dual boot . i.e. start windows, restart and select Ubuntu to boot from. again restart and select windows to boot into. (as you wish.) and this way no struggle of formatting and installing OS again.

bsm allah alrahman alrahim

 

To install windows after Ubuntu Do the following

 

1 – make a Partition for windows with NTFS format as follow

 

[ use Gparted for easypartitioning ]

 

or use the following commands

 

__$ sudo fdisk /dev/sdb [ sdb is the characters used for yor hard drive , if you dont Know your hard drive characters use command  sudo fdisk -l ]

 

then use the following options

 

m for help

 

p for print partition table

 

n make a new partion ( p = primary e= extended + then partition number + then first sector + then last sector)

 

t to make NTFS ( partition number + l to list codes or ID of filesystems ,use7 for NTFS id )

 

w to write and save partition table to MBR

 

2 – make a backup from your partitions and MBR using any tool to make image or backup or clone ( e.g dd , Acronis , etc)

 

I use dd command as follow

 

__$ sudo mkdir /mnt/partition2 [ that partition must be trusted ]

 

__$ sudo mount   /dev/sdb2    /mnt/partion2 [ you use mount to /mnt if its not mounted on media automaticaly ]

 

__$ sudo dd if=/dev/sdb of=/mnt/partition2/mbr.img bs=512count=1 (for MBR )

 

__$ sudo mkdir /mnt/partion3bkup

 

__$ sudo mount /dev/sdb3 /mnt/partion3bkup [ you use mount to /mnt if its not mounted on media automaticaly ]

 

__$ sudo dd if=/dev/sdb1 of=/mnt/partition3bkup bs=512 (for backup)

 

If you have more partitions add them like last3 steps

 

 

 

3 – start windows from CD/DVD or USB Flash Or From HDD

 

4 – after installation for windows start any Linux Live CD (e.g rescueCD ) or any restore program for MBR , then restore old MBR from your saved mbr.img

 

I use dd command from rescueCD as follow

 

__$ sudo mkdir /mnt/partition2

 

__$ sudo mount /dev/sdb2 /mnt/partion2 [if its not mounted on media]

 

__$ sudo dd if=/mnt/partition2/mbr.img of=/dev/sdb bs=512 count=1 (for MBR)

 

5 – Reboot your computer and if you found Ubuntu start fine , start Terminal and update grub as follow

 

__$ sudo update-grub

 

6 – restart your computer , and press Shift key at start up to enter to grub menu if every thing go right and grub menu appear use down arrow to use windows

 ************************************************************************************************************

To install Ubuntu after windows Do the following

 

1 – you must have unpartitioned part on the hard not less than20 G

 

2 – start Ubuntu from a CD/DVD or USB flash or HDD

 

3 – when you enter to Installation Type window choose something else

 

4 – make a partition for Ubuntu with EXT4 file system format ( dont forget it must be primary and use / as a Mount point)

 

5 – make another small partition for swap if you want [ it must be twice your RAM size ]

 

Note

Swap used Like Virtual memory at windows to help bigger programs to work fine

 

6 – after that start to install but don't forget there is a list box at the end of that window

you must choose the Hard drive right , and that is /dev/X ( where X is characterswithout any numbers e.g sdb )

 

watch this video

 

 

 

Mian Muhammad Naeem Jan
by Mian Muhammad Naeem Jan , Chief Finance Officer , Management Company

A Dule boot can provide the way to install2 diffrent operating system in a single hardware

Gul Zaman
by Gul Zaman , Network Administration , vision technologies

Dule boot provide the functionaly to install two diffrent operating system in a single hardware. but only one Operating system loads at the same time.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.