|
|
(19 intermediate revisions by 6 users not shown) |
Line 1: |
Line 1: |
− | {{Out of date}}
| + | #REDIRECT [[Install from Existing Linux]] |
− | | |
− | [[Category:Getting and installing Arch (English)]] | |
− | [[Category:HOWTOs (English)]]
| |
− | | |
− | {{i18n_links_start}}
| |
− | {{i18n_entry|Deutsch|Schnellinstallation von einem bestehenden Linuxsystem (Deutsch)}}
| |
− | {{i18n_entry|English|Fast Arch Install from existing Linux System}}
| |
− | {{i18n_entry|繁體中文|F.在安裝了 Linux 的電腦上快速安裝 Arch}}
| |
− | {{i18n_entry|简体中文|在安装了 Linux 的电脑上快速安装 Arch}}
| |
− | {{i18n_entry|Русский|Быстрая установка Arch с жесткого диска}}
| |
− | {{i18n_links_end}}
| |
− | | |
− | If you are running Linux already and don't have a CD writer---or if you simply want a faster install process---here is how to install Arch from another running Linux installation.
| |
− | | |
− | Read the [[Official Arch Linux Install Guide]] first so that you know what to expect.
| |
− | | |
− | You need one '''more''' spare partition, bigger than the Arch CD iso. Here I'm logged in as '''root''' and am using "/dev/hda12" which happens to be 6GB.
| |
− | | |
− | Depending on your boot loader, follow the "LILO" or "GRUB" section. Then the "REBOOT AND INSTALL" section
| |
− | | |
− | ==Lilo==
| |
− | | |
− | 1) Copy the ISO to the spare partition:
| |
− | dd if=arch-0.7.iso of=/dev/hda12 bs=4k
| |
− | | |
− | 2) Making or using a suitable mount point, mount the partition somewhere (you can use option -tiso9660 but mount should work it out):
| |
− | mkdir /mnt/archCD
| |
− | mount /dev/hda12 /mnt/archCD
| |
− | | |
− | 3) Edit lilo.conf and add:
| |
− | image=/mnt/archCD/isolinux/vmlinuz
| |
− | label=archCD
| |
− | initrd=/mnt/archCD/isolinux/initrd.img
| |
− | append="root=/dev/hda12 BOOTMEDIA=cd"
| |
− | | |
− | then don't forget to run:
| |
− | lilo
| |
− | | |
− | ==Grub==
| |
− | | |
− | I've not been able to boot a hard disk partition containing the Arch iso with grub, instead the iso must first be unpacked to an ordinary partition. This is still quicker than burning a CD:
| |
− | | |
− | 1) Format the spare partition and (making or using a suitable mount point) mount it:
| |
− | | |
− | mkreiserfs /dev/hda12
| |
− | mkdir /mnt/archCD
| |
− | mount /dev/hda12 /mnt/archCD
| |
− | | |
− | | |
− | 2) Mount the Arch iso file (making or using a suitable mount point):
| |
− | mkdir /mnt/tmp
| |
− | mount -o loop arch-0.7.iso /mnt/tmp
| |
− | | |
− | 3) Copy from the iso to the spare partition:
| |
− | cd /mnt/tmp
| |
− | cp -a * /mnt/archCD
| |
− | | |
− | 4) then modify <code>/boot/grub/menu.lst</code>
| |
− | title ArchCD
| |
− | kernel (hd0,11)/isolinux/vmlinuz root=/dev/hda12 BOOTMEDIA=cd
| |
− | initrd (hd0,11)/isolinux/initrd.img
| |
− | | |
− | ==Reboot and Install Arch==
| |
− | | |
− | Reboot and select '''archCD''', when the installer asks if you're using CD or SRC, you can hop out to another shell and if you are using lilo:
| |
− | mount -t iso9660 /dev/hda12 /src
| |
− | if you are using grub:
| |
− | mount /dev/hda12 /src
| |
− | | |
− | * replace <code>/dev/hda12</code> with the spare partition you allocated
| |
− | * remember you can use "tab completion" to find that partition, rather than type the whole thing in
| |
− | * then hop back and install from hard drive by selecting SRC rather than CD.
| |
− | | |
− | ==And to reclaim the spare partition when Arch is up and running...==
| |
− | | |
− | 1) The spare partition can be reclaimed by making a file system with "mkreiserfs", "mke2fs" etc. Using hda12 as an example:
| |
− | mkreiserfs /dev/hda12
| |
− | | |
− | 2) Then edit /etc/fstab to check the partition has the correct file system and options listed against it:
| |
− | /dev/hda12 /mnt/spare reiserfs defaults,noatime,notail,noauto 0 0
| |
− | | |
− | 3) Lastly check that the mount point exists, if not:
| |
− | mkdir /mnt/spare
| |