Thứ Tư, 10 tháng 6, 2009

[P05] How to dual-boot Windows XP and Linux

http://apcmag.com/how_to_dual_boot_windows_xp_and_linux_xp_installed_first.htm?page=1

How to dual-boot Windows XP and Linux, on a system where you have already installed XP. Easy step-by-step tutorial that doesn't assume prior knowledge of Linux.

Page 1 - Intro

Updated 5 June 2008 to use Ubuntu 8.04 and Windows XP SP3

Scenario: You want the simplest way to dual-boot XP and Linux. You've already installed Windows XP and now want to dual-boot it with Ubuntu 8.04

Summary of tutorial: This is an updated tutorial (we previously used Ubuntu 7.04 and GPartEd (GNOME Partition Editor), but in this tutorial, we'll use Ubuntu 8.04 to make space on the XP partition and then use the GRUB bootloader to dualboot XP and Ubuntu.

This tutorial has been tested on a VMWare Workstation 6.0.3 virtual machine.

Page 2 - Boot Ubuntu from the Live CD

As we're assuming that XP has already been installed (either via an OEM or self-installation) I won't run through the XP installation process. We'll further assume that XP has been installed to a single NTFS partition which takes up the whole disk.

One interesting thing to note though - Ubuntu is happy to read NTFS partitions, so one potential configuration option is to either create a 2nd NTFS partition which will house data for access by both operating systems, or simply a 2nd hard drive, again formatted with NTFS.

Install Ubuntu

You'll need the latest desktop ISO of Ubuntu (8.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 bootable Ubuntu CD.

Boot the XP machine from the CD and select "Install Ubuntu" from the boot menu.

Once the Live CD has loaded, on the Welcome screen choose your language and select Forward.

On the "Where are you" (timezone) page, select your location and then Forward.

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

Page 3 - Make room on the disk for Ubuntu

Ubuntu will then load the disk partitioner to determine where it's going to be installed. The default option is that Ubuntu will resize the Windows XP NTFS partition to make space for the Ubuntu install. You can drag the dividing line left or right to increase or decrease the amount of space to be freed up.

Once you're happy with the selection, click Forward.

Ubuntu then prompts you to commit the changes (despite what the warning, it won't take very long). Click Continue - the screen disappears and then click Forward again.

Page 4 - Set up Ubuntu

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

On the Migrate Documents and Settings screen, if Ubuntu finds any user accounts to migrateit will happily import user settings from XP to Ubuntu. If it doesn't find any, obviously this isn't an option. Select as much or as little as you wish and click Forward.

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 XP Professional" along with any user account details you selected in the previous step

This means that regardless of whether Ubuntu found any user account to migrate, it certainly knows that Windows XP is installed on the other partition Click 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.

After the Ubuntu boot options, there will be an entry "Other operating systems" and beneath that "Microsoft Windows XP Professional". By default Ubuntu will load itself after 10 seconds, but you can select the XP option and the OS will boot normally.

The GRUB bootloader is decidedly better than XP's and XP doesn't handle dualbooting non-Microsoft operating systems very well, so there's little point trying to restore the XP bootloader. Be happy with GRUB!

End,

[P04] How-to Dual Boot Windows XP and Fedora or Red Hat Linux

http://www.overclockersclub.com/guides/dual_boot_fedora_xp/


Introduction

I was sitting here today thinking about all the times I've been asked to help someone setup a dual boot system with Windows XP and surprisingly, Red Hat or Fedora Linux. I say surprisingly, because in my opinion Red Hat and Fedora has always been the easiest Linux distros to install on a dual boot setup. Apparently it's not, as there are still quite a few people who ask me for help.

I'm far from a Linux expert, but I have managed to learn enough about it to be dangerous, and maybe even helpful on occasion. So I thought I'd put together a little "how-to" on installing Red Hat/Fedora on a system that already has Windows XP on it.

My suggestion to anyone wanting to dual boot Windows and Linux is to use two separate hard drives; one drive for Linux, and one drive for Windows. This just makes things easier, though it's really not any harder on system with one drive and multiple partitions.

Like I said, this guide is going with the assumption that you already have Windows installed, and that it resides on a separate hard drive than what you will be using for Linux.

Pre-Install Notes
**Note #1: It is highly recommended that you read through this entire guide at least once prior to using it as a reference while installing Fedora.

**Note #2: You can click on any image in this document to get a larger image (600x450 in most cases).

**Note #3: Red Hat has their own guide on how to configure a dual boot system, it can be found here. Red Hat's guide is more technical and less graphical than this guide is intended to be.

**Note #4: It is highly recomended that you back up any and all data before attempting to install Red Hat or Fedora Core 1.

**Note #5: This guide uses Fedora Core 1 for examples and screenshots. There is little differance in the install of Fedora Core 1 and Red Hat Linux 9.0.

Obtaining Fedora/RedHat
The first thing we want to do is download the Red Hat or Fedora Linux Operating System, you can follow this guide using Red Hat 9 or the Fedora Core 1. You can download Red Hat 9 directly from Red Hat, or get it off of one of the mirrors, and likewise you can download Fedora Core 1 from the Fedora Project or via one of the many mirrors.

Getting Fedora Core 1
The CDs for Fedora should be located in /pub/fedora/linux/core/1/i386/iso/ on any of the FTPs you visit. You'll probably see several different files once in that directory, looks for these three files:

yarrow-i386-disc1.iso (md5sum: 76ef22495d186580e47efd8d7a65fe6b)
yarrow-i386-disc2.iso (md5sum: fd23fe32fafe7557f5d1fa1d31100580)
yarrow-i386-disc3.iso (md5sum: 6a26b34069639d0c31465d4079a8e1b2)

Yarrow is just the "code name" for Fedora Core 1, much the same way Microsoft has used "code names" for the Operating systems (i.e. Janus, Chicago, Memphis, Cairo, Odyssey, Whistler, Longhorn, etc.).

Getting Red Hat 9
The CDs for Red Hat 9 should be located in /pub/redhat/linux/9/en/iso/i386/ on any of the FTPs you visit. You'll probably see several different files once in that directory, looks for these three files:

shrike-i386-disc1.iso (md5sum: 34048ce4cd069b624f6e021ba63ecde5)
shrike-i386-disc2.iso (md5sum: 6b8ba42f56b397d536826c78c9679c0a)
shrike-i386-disc3.iso (md5sum: af38ac4316ba20df2dec5f990913396d)

Just as Yarrow was the "code name" for Fedora Core 1, Shrike is the code name for Red Hat 9. Each version will have a different code name, you'll get use to it in time. ;)

The other files found in the FTP directories are the SRPMS or source code. If you are just starting out, you won't need to mess with those for a while. ;) Once you have finished downloading the CDs, you'll obviously need to burn them to disk. The files are in an iso CD image, so you can burn them using Nero, EZ CD Creator, or whatever CD burning program you like.

Installing Fedora
Once the files are burnt to disk, it's time to put CD 1 back in the drive and reboot the computer.

Assuming you have a bootable CD-ROM, and have the drive enabled as a bootable drive, you should see a screen asking how to install Fedora.

At the boot: line, you can pass parameters here depending on your system and hardware. A list of available boot options can be found here.

I don't have to pass anything to installed Fedora on my system, so I'll just hit to install in graphical mode. Enter any of the parameters into the boot: line and then hit .

You'll then see some text fly by as Fedora probes (think plug-and-play here, not aliens) your system hardware. Hopefully some of the information looks familiar. Like your CD/DVD drives, Hard Disk, etc.

After that you should you should see a screen that appears that allows you to check the CD's for errors, or skip and proceed with the install. This is a nifty little feature that I wish Microsoft would incorporate with Windows installer. I can't count how many times, I've tried to install Windows only to find that the CD was unreadable during the last 5 min of the install. � That's enough of that, I'll try and stay away from the reasons I like Linux more than Windows during the rest of this article.

Either check your CD, or skip on to the install, and we'll see the Anaconda installer starts up, which is Red Hat's system installer.

If all went well, a nice graphical installer screen should have come up welcoming you to the Fedora Core. Click Next.

You're first choice is to select the language used during the install process. Chose English (or whatever other language you want) and click next.

Next we get to select the appropriate keyboard type for the system. If you don't know what keyboard type you have, select U.S. English and click next.


The next item to select is the mouse. If the system was able to probe your mouse, the correct option should be listed. If you connect to a KVM switch, the probe will probably be unsuccessful and you'll want to manually select what type of mouse you have. In my case, I have an unsupported mouse and have it connected to a KVM, so I'll select Wheel Mouse (PS/2) from the generic list. Select your mouse, and click next.

The third thing we get to configure is the monitor. Just like the mouse and keyboard if the system was able to probe your monitor successfully, it'll be selected. Otherwise you'll need to select your monitor from the long list of models. In my case, I'm using a Generic CRT display 1600x1200. Chose your monitor value and click next.

Now that the keyboard, mouse, and monitor have been configured, we are asked what type of install we want to do. The options are:
- Personal Desktop
- Workstation
- Server
- Custom

For those of you installing Fedora for the first time, I would suggest you just go with the Personal Desktop option. As you get more failure with Fedora/Linux you can go back and experiment with the other options. The custom option is exactly what you would expect. It allows you to select each and every component that gets installed. So, we are just going to select Personal Desktop and click next.

In order to install Fedora the Hard Disk is going to have to be formated with a Linux partition. We have the option of allowing the Fedora installer to partition or to do it manually. We'll let Fedora do it, so just click next. Don't worry, we're not going to erase Windows.

The next screen ask us what drives we are going to use for our installation. You should also see a box that list several drives that you can (un)select.

I'm sure some of you are probably asking what the heck hda and hdb are. These are your hard drives. hda is the primary master, and hdb is the primary slave. If we had more hard drives, they would be hdc, hde, and so on.

As I mentioned at the start of this guide, we are configuring a dual boot system with Windows installed on one hard disk (hda), and Fedora Linux to be installed on the 2nd disk (hdb). Since Windows was installed on the first disk (hda), we obviously don't want to over write it when we install Fedora (hard to dual boot with only one OS :p), we will uncheck hda. This tells Fedora to only use hdb for the install.

If the hard disk you are installing Fedora is unpartitioned/formated, don't worry about any of the top options. If you have the disk formated with NTFS, FAT32, FAT16, or anything else, select Remove all partitions on this system. Don't worry, it doesn't really mean ALL partitions, it's only talking about those on the hard disk we selected.

Also, we want to check the box below that says Review and Modify the partitions, so select that and click next.


Since we selected the review and modify box on the last screen, we get a nice little display of the hard drives layout. Even though we told Fedora not to use hda in the install, information about that drive, and all other drives is still displayed.

Post Configuration
On the first boot, you'll come across the Fedora post install configuration/setup. Just a few little things here to take care of.

First, we have to accept the License Agreement.

Next we'll select the system time and date, or tell Fedora to use Network Time Protocol.

Then we'll add a user, this will be who you will want to log in as when not doing admin functions. Logging in as root all the time is not recommended!

Next you'll get to play a test sound to make sure the sound card was set up correctly. If you use digital output, you'll probably not hear anything, and will need to install updated drivers, or do some configuration to the sound settings later.


If any additional CDs were needed, you have the option of installing software from it here.

That's it, post configuration is done. Click next to exit this section.

And you should now see a login box. Enter your user name, and hit enter, enter your password, and hit enter, and you'll be logged in (assuming the user name and password are correct).

Fedora will start up, well, actually the Gnome desktop will start up, and you'll see some icons in the progress bar as various components of the Operating system is started.

Congratulations, you should now be looking at the Gnome desktop.

Play around, and ask for help. You've just entered a whole new world.

End,


[P03] Linux và Windows XP trên cùng một PC

Khi bật máy, nếu muốn cả Linux và XP cùng khởi động để chọn lựa sử dụng, bạn có thể làm theo hướng dẫn sau đây.

Thử nghiệm được thực hiện với Ubuntu 7.04 (một phiên bản của Linux) và Windows XP Service Pack 2. Trong đó, Ubuntu được cài đặt trước, XP được cài sau trên ổ cứng Seagate 80 GB SATA.

Cài đặt Ubuntu

Bước đầu tiên là phải tạo đủ không gian trên đĩa để cài đặt Windows XP. Bản thân đĩa Ubuntu Live CD đã chứa trình biên tập GNOME Partition Editor để thay đổi dung lượng phân vùng (“khoảng đất” riêng biệt trên đĩa cứng) cho Linux nhưng đĩa cho Ubuntu 7.04 lại cài file hệ thống khi kiểm tra và gây ra lỗi. Thay vào đó, người dùng nên dùng GParted Live CD hoạt động độc lập. GParted LiveCD ISO có sẵn tại trang này và bạn có thể ghi nó vào đĩa CD để khởi động hệ thống từ đó (ví dụ có thể dùng bản 0.3.4-7).

Khởi động máy từ GParted LiveCD. Tùy vào hệ thống, bạn có thể chọn lựa chọn khởi động cấu hình tự động.

Trong khi khởi động, nhấn nút Enter 2 lần khi gặp dấu nhắc đợi lệnh để chọn sơ đồ bàn phím và cài đặt ngôn ngữ. Khi giao diện GUI chính hiện ra, nhấn chuột phải vào phân vùng chính (tùy vào cách cài đặt của bạn, có thể là /dev/sda1) và chọn Resize/Move.

Dùng thanh trượt này để tạo đủ không gian chứa cài đặt XP sau này và nhấn vào Resize/Move.

Khi đã xong, thoát GParted và khởi động lại máy từ đĩa Windows XP CD.

Cài đặt Windows XP

Khi đĩa CD tải xong, nhấn phím Enter để cài đặt Windows XP, sau đó nhấn F8 để chấp nhận thỏa thuận mua bản quyền.

Khi màn hình phân vùng hiện ra, bạn có thể thấy Windows Setup nhận ra hai phân vùng Ubuntu đã có và chỉ định tên ổ bằng chữ cái (mặc dù không thể đọc dữ liệu từ chúng).

Khoảng không gian đã tạo cho Windows XP xuất hiện ở đây, chọn nó và nhấn Enter.

Do phân vùng hoạt động chính (/dev/hda1) được đánh dấu là khởi động được, Windows không thể cài đặt được cho đến khi phân vùng này được đánh dấu là không hoạt động để phân vùng mới “chiếm quyền”. Hãy nhấn Enter để thay đổi và sau đó định dạng lại phân vùng mới.

Không may là XP phát hiện ra 2 phân vùng Ubuntu và đã chỉ định tên ổ cho chúng nên phân vùng mới định dùng để cài sẽ được chỉ định là ổ F. Đây không phải là chữ cái chuẩn dành cho ổ của Windows.

Tuy nhiên, vấn đề này chỉ gây khó khăn với những ứng dụng cũ cần mặc định nơi cài đặt là ổ C.

Khởi động lại máy khi Windows đã được cài đặt và bạn sẽ thấy máy khởi động ngay vào XP. Do thành phần nạp khởi động GRUB của Ubuntu trong Master Boot Record đã bị ghi đè nên Ubuntu lúc này chưa khởi động được.

Có khá nhiều cách làm cho phân vùng Ubuntu khởi động được nhưng khá cầu kỳ và phải dùng đến phân vùng FAT32 (FAT32 có thể dùng cho cả Ubuntu và Windows). Tuy nhiên, cách đơn giản hơn là cài đặt lại GRUB làm thành phần nạp hệ thống.

Cài đặt lại GRUB vào Master Boot Record

Khởi động máy bằng cách dùng Ubuntu Live CD.

Vào trình biên tập GNOME Partition Editor và bạn có thể thấy Windows XP Partition được coi là /dev/hda2 và được đánh dấu làm phân vùng khởi động.

Nhấn chuột phải vào phân vùng Windows và chọn Manage Flags.

Bỏ dấu ở “boot” và chọn Close.

Nhấn chuột phải vào phân vùng chính của Ubuntu (/dev/hda1), chọn Manage Flags và đánh dấu vào “boot”, nhấn Close.

Bây giờ cài đặt lại GRUB. Mở Terminal (Applications, Accessories, Terminal) và gõ vào dòng sudo grub

Ứng dụng GRUB sẽ hoạt động. Gõ tiếp find /boot/grub/stage1

Lệnh này sẽ tìm nơi GRUB được cài đặt và bạn sẽ nhận được kết quả là hd(0,0).

Đổi vị trí bằng cách gõ root (hd0,0)

Bây giờ bạn chuẩn bị cài đặt lại GRUB vào Master Boot Record chứ không phải vào phân vùng Ubuntu nữa.

Gõ setup (hd0)

Việc này sẽ giúp lưu GRUB vào Master Boot Record. Gõ vào dòng QUIT và EXIT để thoát khỏi GRUB và Terminal. Sau đó, khởi động lại hệ thống. Ubuntu sẽ xuất hiện khi khởi động.

Chỉnh sửa menu khởi động

Điều cần làm tiếp theo là chỉnh sửa menu khởi động GRUB để cho phép Windows XP nạp khi khởi động.

Khởi động hệ thống vào hệ điều Ubuntu và vào tiện ích Terminal. Gõ vào dòng sudo gedit /boot/grub/menu.lst

Việc này sẽ giúp nạp tập tin menu GRUB (về cơ bản là một tập tin văn bản) bên trong GEdit.

Xuống mục sau “## ## End Default Options ##". Ở đó có các thành phần của menu GRUB.

Để tạo một đầu mục mới, kéo xuống tới gần cuối danh sách và gõ các dòng sau:

title Windows XP

root (hd0,1)

makeactivechainloader +1

Việc này sẽ đặt một mục trong menu khởi động để nạp Windows XP từ phân vùng của nó (hd0,1).

Nếu muốn tùy chọn nhiều hơn, lên phía trên MENU.LST và tìm dòng TIMEOUT. Giá trị bằng số được chỉ định cho TIMEOUT xác định khoảng thời gian truy nhập vào menu khởi động (tính bằng giây) trước khi hệ điều hành mặc định tải xuống.

Để cấu hình cho hệ thống khởi động song song, tốt hơn nên nâng giá trị này lên.

Ngay trên TIMEOUT là DEFAULT. Tính năng này xác định hệ điều hành nào được khởi động mặc định.

Hệ thống đếm số bắt đầu từ 0 và đếm lên. Vì vậy DEFAULT = 0 nghĩa là Ubuntu luôn khởi động mặc định. Nếu muốn Windows XP luôn khởi động chính, hãy thay đổi giá trị của nó về 0.

Lưu MENU.LST và thoát khỏi GEdit rồi khởi động lại hệ thống. Gõ phím ESC khi được yêu cầu lấy menu khởi động. Đi xuống đề mục Windows XP vừa tạo và nhấn Enter. Windows XP sẽ được tải xuống.

Sưu Tầm