Difference between revisions of "Fast Arch Install from existing Linux System"

From ArchWiki
Jump to: navigation, search
(rewrite)
(Out date. Redirect to "Install from Existing Linux")
(18 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:Getting and installing Arch (English)]]
+
#REDIRECT [[Install from Existing Linux]]
[[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, at least as large as the Arch ISO image. Here I'm logged in as '''root''' and am using "/dev/sda12" which happens to be 6GB.
 
 
 
==Preparation==
 
 
 
1) Write the ISO image onto the spare partition:
 
dd if=archlinux-2010.05-netinstall-x86_64.iso of=/dev/sda12 bs=4k
 
 
 
2) Making or using a suitable mount point, mount the partition somewhere (you can specify -t iso9660, but mount should auto-detect the filesystem type):
 
mkdir /mnt/archCD
 
mount /dev/sda12 /mnt/archCD
 
 
 
3) Read the kernel options in isolinux.cfg:
 
grep -e APPEND /mnt/archCD/boot/isolinux/isolinux.cfg
 
Remember the value of the initrd= and archisolabel= options; the other options are less important on most systems.
 
 
 
==Booting the ISO with GRUB==
 
 
 
{{Note|It is possible to boot the ISO image using LILO; see [[#Booting the ISO with LILO]] below.}}
 
 
 
1) Reboot the computer.  When the GRUB menu appears, press 'c' for a command line.
 
 
 
2) Type:
 
root (hd#,#)
 
If you are using [[GRUB-Legacy]], /dev/sda12 corresponds to (hd0,11); if you are using [[GRUB2]], /dev/sda12 corresponds to (hd0,12).
 
 
 
3) Load the kernel:
 
kernel /boot/vmlinuz26 archisolabel=''FOO''
 
where ''FOO'' is the value of archisolabel you memorized or wrote down above.
 
 
 
If you are using GRUB2, use '''linux''' instead of '''kernel''' in the above command.
 
 
 
4) Load the initial ramdisk:
 
initrd ''/boot/archiso.img''
 
where ''/boot/archiso.img'' is the value of initrd you memorized or wrote down above.
 
 
 
5) Boot:
 
boot
 
 
 
==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 sda12 as an example:
 
mkreiserfs /dev/sda12
 
 
 
2) Then edit /etc/fstab to check the partition has the correct file system and options listed against it:
 
/dev/sda12 /mnt/spare reiserfs defaults,noatime,notail,noauto 0 0
 
 
 
3) Lastly check that the mount point exists, if not:
 
mkdir /mnt/spare
 
 
 
==Booting the ISO with LILO==
 
 
 
{{Out of date}}
 
 
 
'''''FIXME FIXME FIXME'''''
 
 
 
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
 

Revision as of 05:19, 11 January 2012