直接用ISO文件在linux上安装新系统

Use Case-When you don’t have CD / DVD drive on your system.-You have Fedora DVD but your system has only a CD Drive.-You don’t want to waste time and resources in burning iso on optical media.Pre-requisites-You have a Fedora DVD iso or rescue cd iso.-You have a Linux installation on your system.-You have a partition (FAT32, ext2, ext3) which you will not format while installing the new OS.How to proceedLet us assume you want to install Fedora 9 on your system and you have a Linux distro already installed on your system. You have downloaded the Fedora DVD iso (Fedora-9-DVD-i686.iso). And you have a FAT32/ext2/ext3 partition /stuff/ which you will not format during installation.

Step 1 : Move the Fedora DVD iso to /stuff/ directory.

[root@sainisaini]#mvFedora-9-DVD-i686.iso/stuff/[Enter]

Step 2 : Mount Fedora DVD iso on /mnt/

[root@sainisaini]#mount/stuff/Fedora-9-DVD-i686.iso/mnt/-roloop[Enter](doasroot)

Step 3 : Copy the initrd.img and vmlinuz to /boot/ partition

[root@sainisaini]#cd/mnt/isolinux/[Enter][root@sainiisolinux]#cpinitrd.imgvmlinuz/boot/[Enter](doasroot)

Step 4 : Create grub entry for booting into Fedora 9Add these lines at the end of your /boot/grub/grub.conf file.

titleFedora9(Newinstallation)kernel/vmlinuzinitrd/initrd.img

Step 5 : Note the device having Fedora DVD iso

[root@sainisaini]#df-h[Enter]FilesystemSizeUsedAvailUse%Mountedon/dev/sda315G9.5G4.1G70%//dev/sda8135G116G13G91%/stuff/dev/sda54.8G1.2G3.4G26%/home/dev/sda199M12M82M13%/boot

In this case /dev/sda8 contains Fedora DVD iso. Note this down as you need it later.

Step 6 : Reboot

Reboot your system and boot into the Fedora 9 (New installation) grub entry.

Step 7 : Install from hard disk

While in installation wizard, select “Hard drive” as installation method and choose /dev/sda8 as it contains the Fedora DVD iso. And rest is damn easy.

谁也不跟谁一辈子,有些事情没必要记在心上。

直接用ISO文件在linux上安装新系统

相关文章:

你感兴趣的文章:

标签云: