Come installare Linux con Windows Vista a bordo

6 01 2008


Scenario: You want the simplest way to dual-boot Vista and Linux. You’ve already installed Windows Vista and now want to dual-boot it with Ubuntu 7.04

Summary of tutorial: This is an updated tutorial – we previously used Ubuntu 6.10 and then modified the GRUB bootloader to force Ubuntu to recognise the Vista partition. In this tutorial, we’ll use Ubuntu 7.04 which does a much better job in interacting with Vista. We’ll use the Vista management tools to resize the main partition and install Ubuntu into the freed space.

This tutorial has been tested on a VMWare Workstation 6 machine and an ASUS P5AD2-based Intel system with 2GB RAM and an 80GB Seagate SATA drive.

Get started

Boot into Windows Vista and go into Disk Management – right-click My Computer, Manage, Disk Management.

Vista Disk ManagementVista Disk Management

Right-click on the main Vista partition and select Shrink Volume

Vista Disk Management - Shrink VolumeVista Disk Management – Shrink Volume

The Shrink tool will assess how much space can be freed up.

Vista Disk Management - Shrink Volume 2Vista Disk Management – Shrink Volume 2

As a rule of thumb Shrink will reduce the main system partition by about 50%. As long as the partition is big enough to begin with (at least 10GB) it should accommodate both operating systems.

Select Shrink and the tool will reduce the volume of the primary partition, leaving the rest of the disk free as unpartitioned space.

Vista Disk Management - Shrink Volume 3Vista Disk Management – Shrink Volume 3

Once that’s done, shut down the Vista machine.

Install Ubuntu

You’ll need the latest desktop ISO of Ubuntu (7.04). You can choose a list of download mirrors from the Ubuntu website, or use this link from Planetmirror. Download the ISO and burn it to CD to create an Ubuntu Live CD.

Boot the Vista machine from the Live CD and select “Start or install Ubuntu”.

Vista & Ubuntu - Install UbuntuVista & Ubuntu – Install Ubuntu

Once the Live CD has loaded, double-click the Install icon on the desktop to start the installation process.
On the Welcome screen, choose your language and select Forward.
Vista & Ubuntu - Install Ubuntu - LanguageVista & Ubuntu – Install Ubuntu – Language
On the “Where are you” (timezone) page, select your location and then Forward.
Vista & Ubuntu - Install Ubuntu - TimezoneVista & Ubuntu – Install Ubuntu – Timezone

On the next screen, choose the appropriate keyboard layout and then Forward.

Vista & Ubuntu - Install Ubuntu - KeyboardVista & Ubuntu – Install Ubuntu – Keyboard

Ubuntu will then load the disk partitioner to determine where it’s going to be installed. Choose “Manual – use the largest continuous free space”. This will automatically select the unpartitioned space we created earlier using the Shrink tool. Click Forward.

Vista & Ubuntu - Install Ubuntu - Disk PartitionerVista & Ubuntu – Install Ubuntu – Disk Partitioner

On the Migrate Documents and Settings screen, if Ubuntu finds any user accounts to migrate, feel free to import it from Vista to Ubuntu. If it doesn’t find any, obviously this isn’t an option. Click Forward.

Vista & Ubuntu - Install Ubuntu - MigrateVista & Ubuntu – Install Ubuntu – Migrate

On the “Who are you?” screen, enter your username and password details, then click Forward.

Vista & Ubuntu - Install Ubuntu - User DetailsVista & Ubuntu – Install Ubuntu – User Details

On the “Ready to install” screen, you’ll see that Ubuntu now has enough information to commence the installation. In the summary under Migrate Assistant, it should say “Windows Vista/Longhorn (loader)”. This means that regardless of whether Ubuntu found any user account to migrate, it certainly knows that Windows Vista is installed on the other partition and is aware of it. Click Install.

Vista & Ubuntu - Install Ubuntu - InstallVista & Ubuntu – Install Ubuntu – Install

See the install through and then let it boot into Ubuntu.

When the install is complete the system will reboot. When the GRUB boot menu is displayed, have a look at the last entry in the list.

Vista & Ubuntu - GRUB BootloaderVista & Ubuntu – GRUB Bootloader

After the Ubuntu boot options, there will be an entry “Other operating systems” and beneath that “Windows Vista/Longhorn loader”. By default Ubuntu will load itself after 10 seconds, but you can select the Vista option and Vista will boot normally.

Configure GRUB

If you want to modify how GRUB handles the new dualbooting environment, you need to edit the boot menu. Boot into Ubuntu and open up a Terminal window (Applications, Accessories, Terminal), and type in:

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_bak

and enter your root password when asked – this makes a backup of the GRUB menu file just in case things go wrong.

Next, type in:

sudo gedit /boot/grub/menu.lst

Dualboot - Configure Boot MenuDualboot – Configure Boot Menu

This opens up the boot menu as a text file in gedit.

Dualboot - Boot OptionsDualboot – Boot Options

There are loads of options you can change, but only a couple that you’re likely to be interested in. The default boot entry is defined by the “default” value.

The default value is 0, which means that the first entry in the list (which is Ubuntu) always gets loaded.

If you want to make it so that Windows Vista loads by default, change the value to 4, as Vista is the fifth item in the list (the numbering system starts at 0 and “Other operating systems” counts as a line).

The other way to load Windows Vista by default is to change the value for “default” from a numerical value to “saved”. Then, GRUB will load whichever boot entry has been marked with “savedefault”.

If you scroll down the list and have a look at the entries, you’ll notice that both the main Ubuntu entry and Windows Vista have been marked with “savedefault”. Remove the value for Ubuntu and Windows Vista will launch by default.

It’s also worthwhile changing the description of the Vista entry from “Windows Vista/Longhorn (loader” to just “Windows Vista”.

You can also increase the boot menu timeout – just change the value for “timeout”. You can also hide the GRUB boot menu by removing the hash in front of “hiddenmenu”. Save and exit gedit to keep any changes.

If instead of GRUB you want Vista’s bootloader to be in charge, load up the Vista installation and install EasyBCD. Go to “Manage Bootloader”, then “Reinstall the Vista Bootloader”, an GRUB is overwritten. You can then configure the Vista bootloader to add Linux to the boot menu.

fonte: apcmag.com 




Come installare Windows Vista con Linux a bordo

6 01 2008


Scenario: You have Linux already installed but want to dual boot it with Vista on the same hard drive.Summary of tutorial: We’ll dual-boot Ubuntu 7.04 with Vista. With Ubuntu already installed and owning the entire drive, we’ll use the latest version of GParted to shrink the Linux partition to create space for a Vista install. Then, as Vista’s MBR will then overwrite GRUB, we’ll reinstall GRUB to the Linux partition and use EasyBCD to modify the Vista bootloader so that it will boot Ubuntu.This tutorial is an updated version of our previous Ubuntu/Vista dual-booting workshop. The main differences with this version are the newer versions of Ubuntu, GParted and EasyBCD, and we bypass using the DISKPART utility during the Vista install.

This tutorial has been tested on a VMWare Workstation 6 machine and an ASUS P5AD2-based Intel system with 2GB RAM and an 80GB Seagate SATA drive.

Get started

Preparing a Linux system to dual boot with Vista is very much like preparing an XP system. You first have to shrink the existing OS partition (in this tutorial, Ubuntu) to make way for Vista.

We’ll use a third-party application called GParted – the GNOME Partition Editor. GParted is available as a system application on the Ubuntu Live CD (System > Administration > GNOME Partition Editor), but we’ll use the GParted LiveCD in this workshop.

The GParted Live CD ISO is available here – burn it to CD and boot the system from the disc. The version we used was 0.3.4-7.

Boot the Linux machine from the GParted LiveCD. Depending on your system, you should just need to select the auto-configuration boot option.

Ubuntu & Vista - GPartedUbuntu & Vista – GParted


During boot, press Enter twice when prompted to select the keymap and language settings. When the main GUI loads, right-click on the main partition (depending on your setup, probably /dev/sda1) and select Resize/Move.

Ubuntu & Vista - GParted ResizeUbuntu & Vista – GParted Resize

Use the slider to create sufficient space to house the Vista installation (about 10GB) then click Resize/Move.

Ubuntu & Vista - GParted Resize 2Ubuntu & Vista – GParted Resize 2

The resize becomes a pending operation – click Apply to commit the change. Once that’s done, right-click on the /dev/sda1 partition (or the equivalent – the partition you just resized) and select Manage Flags. This partition is marked as a boot partition, and this means that the Vista installation won’t work properly while there’s a bootable non-Windows partition on the system. Remove the boot flag and click Close.

Ubuntu & Vista - GParted FlagsUbuntu & Vista – GParted Flags

And that’s it – GParted really is one of the best partitioning tools out there. Quit GParted and double-click the Shutdown icon, then shut down the system. Then, fire up the machine with the Vista install DVD.

Step through the installation process until you get to the partition selection screen. Select the newly-created space (should be Disk 0 Unallocated Space), and click Next to continue the installation.
Ubuntu & Vista - Install VistaUbuntu & Vista – Install Vista
Go and grab a coffee – Vista will install and reboot the system

Reinstall GRUB

During the installation, Vista will overwrite the MBR and GRUB will be lost. When you the machine reboots, Linux is nowhere to be seen.

Once Vista is installed the GRUB bootloader is gone and you have no way of booting Linux. However, if you simply reinstall GRUB to the MBR it will overwrite the Vista bootloader and you’ll have to manually configure GRUB to boot Vista. This can be done by the way – check out our workshop on dual-booting Vista and Ubuntu where Vista is installed first.

However, in this tutorial we’re going to keep the Vista bootloader and modify it to boot Ubuntu. But, we can’t do this without GRUB, so we’ll install it to the partition which was the Ubuntu boot partition, rather than to the MBR.

To do this, we need to boot the system using the Ubuntu Live CD.

When the CD loads, launch a terminal window (Applications > Accessories > Terminal).

Ubuntu & Vista - TerminalUbuntu & Vista – Terminal

In the terminal, type:

sudo grub

This will put you in superuser mode and launch the GRUB application.

To find the partition with the GRUB boot files, type in:

find /boot/grub/stage1

Ubuntu & Vista - sudo grubUbuntu & Vista – sudo grub

The response should be “(hd0,0)” or something similar – this is where you need to reinstall GRUB.

Set this location as root for the current session:

root (hd0,0)

Ubuntu & Vista - set rootUbuntu & Vista – set root

Then type in:

setup (hd0,0)

This will reinstall the GRUB bootloader to disk 0, partition 0. If you type in “setup (hd0)” then GRUB will be reinstalled to the MBR and will overwrite Vista’s bootloader.

Ubuntu & Vista - setup grubUbuntu & Vista – setup grub

Type in “quit”, exit the terminal window, and you’re done. Reboot the system and boot into Vista (at this point, you still won’t see any option to boot into Linux).

Ceate the Linux boot option in Vista

Boot back into Vista. Download EasyBCD 1.60 and install it. EasyBCD is third-party GUI front end to the BCEDIT bootloader editor in Vista.

Then launch the EasyBCD program. Go to Add/Remove Entries in the left menu, and then the “Linux/BSD” tab.

Ubuntu & Vista - EasyBCDUbuntu & Vista – EasyBCD

In the Linux/BSD tab, under the “Type” dropdown menu, select Grub. The default name is “NeoSmart Linux” but you can change it to “Ubuntu” or whatever. Click the Drive drop-down menu and choose the correct partition – if you installed GRUB to (hd0,0), then select Drive 0, Partition 0.

Ubuntu & Vista - EasyBCD LinuxUbuntu & Vista – EasyBCD Linux


Select “Add Entry” and then “Save”. Exit EasyBCD and restart the machine.

Ubuntu & Vista - EasyBCD UpdatedUbuntu & Vista – EasyBCD Updated

Now you should be presented with a boot menu with two boot options – Vista and Ubuntu. Select the Ubuntu boot option and it will load GRUB and boot from the Ubuntu partition.
Ubuntu & Vista - Boot MenuUbuntu & Vista – Boot Menu
And that’s pretty much it. Dual-booting any operating system with Vista can be a bit messy due to Vista’s annoying habit of ignoring all other bootloaders on the system, but you can always get around it.
fonte: apcmag.com




Come installare Linux con XP a bordo

6 01 2008



Scenario: You want to install Linux on your system which is already running Windows XP.

Tutorial Summary: We’re assuming that Windows XP is already up and running on your system. We’ll install Ubuntu 7.04 over the top to dualboot both operating system.

This tutorial has been tested on a VMWare Workstation 6 machine and an ASUS P5AD2-based Intel system with 2GB RAM and an 80GB Seagate SATA drive.

Download Ubuntu

The first thing is to make sure you have the Ubuntu Live CD. You can certainly use Ubuntu 7.04 for this tutorial instead and it should work pretty much the same. However, the screenshots won’t be the same and there may be some steps which don’t match.

You can grab a copy of Ubuntu 7.04 from here:

http://public.planetmirror.com/pub/ubuntu/releases/7.04/ubuntu-7.04-desktop-i386.iso

Burn the ISO to a CD and you’re ready to go.

Prepare the XP System

Fortunately there’s almost no preparation needed from the perspective of the XP partition. Of course it needs sufficient space to install Ubuntu, and you can certainly create this space manually using either the latest version of the GNOME Partition Editor (available here), or use the application from the Ubuntu Live CD.

However, Ubuntu will use the same partition managing tools during installation, so we can leave it until that stage of the install.

Install Ubuntu

Boot the XP machine from the Live CD and select “Start or install Ubuntu”.

Install UbuntuXP & Ubuntu – Install Ubuntu

Once the Live CD has loaded, double-click the Install icon on the desktop to start the installation process.
On the Welcome screen, choose your language and select Forward.
Install Ubuntu - LanguageXP & Ubuntu – Install Ubuntu – Language
On the “Where are you” (timezone) page, select your location and then Forward.
Install Ubuntu - TimezoneXP & Ubuntu – Install Ubuntu – Timezone

On the next screen, choose the appropriate keyboard layout and then Forward.

Install Ubuntu - KeyboardXP & Ubuntu – Install Ubuntu – Keyboard

Now Ubuntu loads the disk partitioner. The first option, to resize the main partition and use the freed space, is pretty much the best one to go with.

Dualboot - Partition DisksDualboot – Partition Disks

The default recommendation for the new partition size is optimal, but you can move the slider up and down to change it as you see fit. If you’re feeling brave, you can also manually edit the partition table, but unless you’re really confident about what you’re doing, this isn’t recommended.

Click Forward to continue.

Ubuntu now has enough information to install, so click Install and go make a coffee.

When the install is complete the system will reboot. When the GRUB boot menu is displayed, have a look at the last entry in the list.

After the Ubuntu boot options, there will be an entry “Other operating systems” and beneath that “Microsoft Windows XP Professional” (or Home, whichever version you’re using). By default Ubuntu will load itself after 10 seconds.

Dualboot - GRUB Boot MenuDualboot – GRUB Boot Menu

If you choose to boot Windows XP at this point, it will probably launch a check on its partition. This is because the partition has been resized since last boot, and it will want to run a consistency check to make sure there are no problems.

When XP loads, it will also probably detect new hardware (again, the resized partition) and will prompt to reboot.

Dualboot - Reboot XPDualboot – Reboot XP

On reboot it will probably run through another, longer consistency check and then reboot. This is the last time you’ll need to do this.

Configure GRUB

If you want to modify how GRUB handles the new dualbooting environment, you need to edit the boot menu. Boot into Ubuntu and open up a Terminal window (Applications, Accessories, Terminal), and type in:

sudo gedit /boot/grub/menu.lst

Dualboot - Configure Boot MenuDualboot – Configure Boot Menu

This opens up the boot menu as a text file in gedit.

Dualboot - Boot OptionsDualboot – Boot Options

There are loads of options you can change, but only a couple that you’re likely to be interested in. The default boot entry is defined by the “default” value.

The default value is 0, which means that the first entry in the list (which is Ubuntu) always gets loaded.

If you want to make it so that Windows XP loads by default, change the value to 4, as XP is the fifth item in the list (the numbering system starts at 0).

The other way to load Windows XP by default is to change the value for “default” from a numerical value to “saved”. Then, GRUB will load whichever boot entry has been marked with “savedefault”.

If you scroll down the list and have a look at the entries, you’ll notice that both the main Ubuntu entry and Windows XP have been marked with “savedefault”. Remove the value for Ubuntu and Windows XP will launch by default.

You can also increase the boot menu timeout – just change the value for “timeout”. You can also hide the GRUB boot menu by removing the hash in front of “hiddenmenu”. Save and exit gedit to keep any changes.

And that’s about it. Dualbooting Windows XP and Linux when Windows is installed first is by far the easiest method of dualbooting, because most up-to-date Linux distros are very aware and accommodating of other operating systems, and GRUB is an excellent and highly flexible bootloader.

fonte: apcmag.com 







Iscriviti

Ricevi al tuo indirizzo email tutti i nuovi post del sito.

%d bloggers like this: