Instalacja Mandriva Linux

From Mandriva Poland

Skocz do: nawigacji, wyszukiwania
Strona w trakcie budowy!
Ta strona jest ciągle niedokończona i zawiera niekompletne informacje.
Instalacja Mandriva Linux

This article outlines the various ways in which Mandriva Linux can be installed.

Spis treści

[edytuj] Main supported installation methods

These are the most commonly used and tested installation methods. You can expect these methods to work without problems.

[edytuj] Installation from CD / DVD

The most common method for installing Mandriva Linux is from CD or DVD, either bought in a box set from the Mandriva Store, or created from images downloaded from a Mandriva mirror site. In most cases, starting an install from CD or DVD is as simple as putting the disc (the first disc, in the case of multi-disc sets) into the drive and rebooting.

[edytuj] Mandriva Linux installation does not start when system is booted with CD or DVD in the drive

If you place the disc in the drive, reboot, and the system simply boots up as normal into whatever operating system is already installed, the problem is that your system is not configured to try booting from the CD / DVD drive before booting from the hard drive. To fix this you must enter the system (BIOS) setup utility. This is usually achieved by pressing a special key at the very start of the boot process, while the system is checking the memory. The key is often a function key, or the Delete key. The key will be displayed on the initial boot up screen and / or listed in your system manual. The exact process to change the boot device order will vary depending on the BIOS used by your system; if you cannot find the setting, please refer to your system manual. For one commonly used BIOS - Phoenix / Award - you should go to the 'Advanced BIOS Features' page and set the first boot device to be CD-ROM. Make the hard disk the second boot device.

[edytuj] Installation from Mandriva Linux One

Mandriva Linux One is a combined Live / installation CD edition of Mandriva Linux. When you boot from a Mandriva Linux One CD (by placing it in the drive and rebooting the system), Mandriva Linux One will run in live mode: it will run directly from the CD without installing anything to the hard disk. There is an icon on the default desktop which can be used to install Mandriva Linux One to the hard disk.

[edytuj] Installation from a local mirror, hard disk, local network, or the Internet

To install by using any of these methods, you should create a boot CD or a boot USB storage device. You do this by downloading an image file from a Mandriva mirror site and writing it to the disc or USB storage device. These files are located in the /i586/install/images or /x86_64/install/images directory for the release you wish to install. The boot CD image is named boot.iso, and the USB storage device image is named all.img. So, for example, the CD image file for the i586 edition of Mandriva Linux 2008 Spring can be found as /MandrivaLinux/official/2008.1/i586/install/images/boot.iso on any Mandriva mirror site.

To boot from the CD image, write it as an image (not as a file) to a CD or DVD recordable / rewriteable disc using your preferred CD / DVD writing software, then reboot with the disc in the drive. If the installation process does not start, refer to #Mandriva Linux installation does not start when system is booted with CD or DVD in the drive above.

To boot from a USB storage device, use the dd command (in Linux) to write the image to a USB storage device. You need to know the correct device node for the USB storage device - usually /dev/sda1, but it may be a different letter if you have other USB storage, SCSI or SATA devices in your system. Be very careful, as copying the image to a SCSI or SATA hard disk will render it unbootable and destroy some data. The command to use is dd if=all.img of=/dev/sda1, adjusting the device node as appropriate. After writing the image, reboot the system with the USB storage device attached. To write the image file to a USB storage device in Windows, use WinImage. If the installation process does not start, refer to #Mandriva Linux installation does not start when system is booted with CD or DVD in the drive above, and set the first boot device to be USB storage. Please note that many systems are not capable of booting directly from USB storage devices, and the USB floppy boot device is not the same as the USB storage boot device. If your system is not capable of booting from a USB storage device, you must use another installation method.

In all cases, you will now enter the Mandriva Linux installation process and be given a choice of the installation method to use.

[edytuj] Installation from hard disk

There are two major ways of doing a hard disk installation: you can either install from a local mirror of the Mandriva Linux tree (which you have previously created by downloading the entire tree from a public mirror using, for e.g., rsync), or you can install directly from the .ISO format images of the Mandriva Linux CDs / DVDs without burning them to disc. To install from a local mirror, select the hard disk installation method. Then select the drive and partition where the local mirror is stored. Finally, enter the path to the correct directory for the version of Mandriva Linux you wish to install. The path to enter is the path to the correct architecture for the correct edition: for instance, if you wish to install the i586 version of Mandriva Linux 2008 Spring, enter the path to /MandrivaLinux/official/2008.1/i586.

To install from .ISO images on a local hard disk, select the hard disk installation method. Then select the drive and partition where the ISO image(s) is / are stored. Then enter either the path to the ISO image (if you have just one) or the path to the directory where the ISO images are stored (if you have a multi-disc set).

[edytuj] Installation from a local network or the Internet

We do not recommend that you attempt to perform a network installation using a wireless connection. It is very unlikely to work. Wired connections should always be used for performing network installations. You should also note that, to install from a private server on your local network, the server must have a tree laid out in the same fashion as the Mandriva public mirrors, containing at least the installer files and the /main section for the release you wish to install. You cannot perform a network installation from a server which contains a Mandriva Linux disc or ISO image.

Installing from a local network or from the Internet are handled in similar ways. Select the appropriate method for the type of server you wish to install from: NFS, HTTP, FTP or KA. For all methods, you must now enter your network configuration information (for a typical home user, select DHCP and all default settings; other users should know their settings, or consult your network manager).

For the HTTP and FTP methods, you will now be asked to configure a proxy, if appropriate. If not, simply leave the boxes blank. For the HTTP and FTP methods, you will now be given a list of available editions of Mandriva: choose the appropriate one (usually officiali586 or officialx86_64), or if you are installing from a local network or from a public server not known by Mandriva, select the "Specify the mirror manually" option. At the next step, either pick the public mirror you wish to use, or enter the path to the mirror as appropriate. The path to enter is the path to the correct architecture for the correct edition: for instance, if you wish to install the i586 version of Mandriva Linux 2008 Spring, enter the path to /MandrivaLinux/official/2008.1/i586.

For the NFS method, after configuring networking, you will be asked to enter the hostname or IP address of the NFS server, and the path containing the Mandriva Linux installation files. The path to enter is the path to the correct architecture for the correct edition: for instance, if you wish to install the i586 version of Mandriva Linux 2008 Spring, enter the path to /MandrivaLinux/official/2008.1/i586.

[edytuj] Advanced installation methods

These are less commonly used installation methods which may require more user expertise or which may sometimes have problems. Only use them if you are sure they are the best method for your situation, or none of the regular installation methods work.

[edytuj] Hard disk install from a floppy disk boot

There is a way to install from hard disk on a machine with no CD / DVD drive and no USB storage boot option, by using a boot floppy. You must use a local mirror with this method, not an ISO image. To do this, download the hd_grub.img floppy image file from the /install/images directory on a Mandriva mirror (as described above). To boot from the floppy image, use the dd command (in Linux) to write the image to a floppy disk. You need to know the correct device node for your floppy disk drive: this will usually be /dev/fd0, but if you use a USB floppy drive, it will be /dev/sda or another letter if you have other USB storage, SCSI or SATA devices in your system. Be very careful, as copying the image to a SCSI or SATA hard disk will render it unbootable and destroy some data. The command to use is dd if=hd_grub.img of=/dev/fd0, adjusting the device node as appropriate. After writing the image, you must create an appropriate grub (bootloader) configuration file so the floppy can find the installation files. You can use this script to generate the configuration file: select the appropriate drive, partition and path, and then click Go. The file will be generated. Save it as menu.lst and copy it to the floppy disk you just created, overwriting the original. Now reboot the system with the floppy disk in the drive. To write the image file to a floppy disk in Windows, use WinImage. If the installation process does not start, refer to #Mandriva Linux installation does not start when system is booted with CD or DVD in the drive above, and set the first boot device to be the floppy disk drive (or USB floppy if you use a USB floppy disk drive).

[edytuj] Booting the installer direct from a hard disk - Linux method

If you already have a Linux distribution installed on your system, it is possible to copy the Mandriva Linux installer to the hard disk and then configure the bootloader - lilo or grub - to give you the choice to boot directly into the installer. To do this, you must first get a copy of the installer kernel and initrd images. You can either download these from a mirror, or copy them from a Mandriva ISO image by loopback mounting it. On the Mandriva mirrors, you will find the files in the /isolinux/alt0 subdirectory of the release you wish to install - for example, /MandrivaLinux/official/2008.1/i586/isolinux/alt0. The files are named all.rdz and vmlinuz. To retrieve the files from a Mandriva ISO image, first mount it:

mkdir /mnt/iso
mount -t iso9660 -o ro,loop CD1.iso /mnt/iso

Next, locate and copy the files. They will be in either /mnt/iso/i586/isolinux/alt0 or /mnt/iso/x86_64/isolinux/alt0, depending on whether you have an x86-32 or an x86-64 ISO. Again, the files are named all.rdz and vmlinuz.

Whichever way you located the files, copy them to /boot on the running Linux distribution. Rename the file vmlinuz to vmlinuz-all. Now, simply configure the bootloader - lilo or grub - to include this as an entry on the boot menu. Some distributions, including Mandriva Linux, include a graphical configuration utility that will allow you to do this. Alternatively, you can do it manually. For lilo, add an entry like this to /etc/lilo.conf:

image=/boot/vmlinuz-all
     label=all-install
     root=/dev/ram3
     initrd=/boot/all.rdz
     append="ramdisk_size=32000"
     vga=791
     read-only

Then run the command lilo as root.

For grub, add an entry like this to /boot/grub/menu.lst:

title all-install
kernel (hd0,0)/boot/vmlinuz-all root=/dev/ram3 ramdisk_size=32000 vga=791
initrd (hd0,0)/boot/all.rdz

The next time the system is booted, a new entry labelled all-install will be available from the boot menu. This will boot the Mandriva installer. You can then use any of the installation methods described earlier in this document to complete the installation.

[edytuj] Booting the installer direct from a hard disk - Windows method

If you already have Microsoft Windows (TM) installed on your system, it is possible to copy the Mandriva Linux installer to the hard disk and then use the Grub for DOS bootloader to give you the choice to boot directly into the installer. To do this, you must first get a copy of the installer kernel and initrd images. You can download these from a Mandriva mirror. On the Mandriva mirrors, you will find the files in the /isolinux/alt0 subdirectory of the release you wish to install - for example, /MandrivaLinux/official/2008.1/i586/isolinux/alt0. The files are named all.rdz and vmlinuz. Now create a file named C:\menu.lst with the following contents:

color black/cyan yellow/cyan
timeout 30
default /default

title Mandriva Install 
kernel (hd0,0)/boot/vmlinuz root=/dev/ram3 vga=791 
initrd (hd0,0)/boot/all.rdz

Now download Grub for DOS and place the file grldr (from the archive) in C:\. Edit the file C:\boot.ini - it is marked as a hidden and system file, by default, so you may have to edit some Windows settings to see and change it - and add the following line to the end of the file:

c:\grldr="Start GRUB"

Now ensure your Windows system is configured to show the boot menu on startup, and reboot. Choose 'Start GRUB' and then 'Mandriva Install', and the installer will load. You can then use any of the installation methods described earlier in this document to complete the installation.

[edytuj] Installation via PXE

Installing via PXE is a somewhat complicated process but is useful on machines with no CD or floppy drive, or in situations where you wish to install on many machines simultaneously. For instructions, see this page.

[edytuj] Installation does not work

If you have trouble with the installation process, the very first thing you should do is to check the integrity of your installation media. If you are installing from ISO files or from discs created from ISO files, test that the ISO files are correct. To do this you can use the md5sum utility in Linux. This analyzes a file and creates a checksum which can be compared against the checksum of the original copy of the file. In Mandriva Linux, install it with urpmi md5sum. To check your .iso file, download the original md5sum from the mirror where you downloaded the ISO. For instance, if you downloaded mandriva-linux-free-2008-spring-dvd-i586.iso, you will find the file mandriva-linux-free-2008-spring-dvd-i586.iso.md5.asc in the same directory. Download it and place it in the same directory as the ISO file. Then, from that directory, run the command md5sum -c mandriva-linux-free-2008-spring-dvd-i586.iso.md5.asc, and it will let you know whether the checksum matches. If it does not, you must correct the download. There are several ways of doing this. If you have access to a BitTorrent download for the files, try using that and pointing it at the existing files: it should check them, find out where they are corrupt, and correct the problems. You can also try correcting the download using Parchive2: see ISO Download recovery with Parchive2 for instructions. Otherwise, you can simply delete the files and re-download them.

If you are installing from burned CDs or DVDs, first check the ISO file from which you burned the discs. If it does not match, you must re-download the file and burn the discs again. If the ISO file matches but you still have installation problems, the disc(s) may have been incorrectly burned. In this case, try burning the disc(s) again at a slower speed. If you still experience problems, try with a different brand of blank discs, or a different drive, or use the hard disk installation method described above to install direct from the ISO files.

If you are confident that your installation media are not corrupt, but you still experience problems during installation, then you are most likely either experiencing hardware problems or an installer bug. These can sometimes be resolved by running the installer in a different way. If you are installing from CD / DVD, the very first installer screen gives you several choices for different installation methods. If you are using one of the other installation methods described above, the first installer screen describes how to choose other installation methods. If you are experiencing graphical problems, try the vgalo, vgahi, vga16 or text install methods. If you are experiencing other problems, try the Installation--ACPI Disabled install method. Problems not resolved in this way are outside the scope of this document, but may be handled by the Errata page for the release you are trying to install.

W innych językach