LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1148|回复: 3

另一种arch安装方法----从已有的linux上安装

[复制链接]
发表于 2005-3-21 01:29:54 | 显示全部楼层 |阅读模式
想翻译,无奈水平有限,但内容不多,看命令,大概都懂。
原文:http://wiki2.archlinux.org/index ... ng%20Linux%20System
-------------------------------------------
-------------------------------------------
If you are running Linux already and don't have a CD writer or simply want a faster install process, here is how to install from hard drive.


Read the 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.


1) Copy the iso to the spare partition (you can use a plain recursive copy, cp -R instead of dd, dd may sometimes screw the partition):


dd if=arch-0.7-beta2-base.iso of=/dev/hda12



2) Mount the partition somewhere (you can use option -tiso9660 but mount should work it out):


mkdir /mnt/archCD
mount /dev/hda12 /mnt/archCD



3) I don't use grub but this works for lilo. Edit lilo.conf and add:


image=/mnt/archCD/isolinux/vmlinuz
        label=archCD
        initrd=/mnt/archCD/isolinux/initrd.img
        append="root=/dev/rd/0 BOOTMEDIA=cd"



then don't forget to run:


lilo



4) Reboot and select archCD, when the installer asks if you're using CD or SRC, you can hop out to another shell and:


mount -tiso9660 /dev/discs/disc0/part12 /src



replace "/dev/discs/disc0/part12" 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

--------------------------------------------------------------------------------

Last edited on Sunday, March 13, 2005 9:19:49 pm.

希望对大家有所帮助!
发表于 2005-3-21 09:59:44 | 显示全部楼层
使用现存Linux系统安装Arch
如果你已经使用Linux系统而且没有刻录机,或者仅仅是想要快速安装的过程,下面是一 种从硬盘安装的方法。
首先阅读<http://www.archlinux.org/docs/en/guide/install/arch-install-guide.html>了解你可能遇到的情况。
你需要一个或多个空闲分区,要大于Arch CD映像。现在我用root登录,使用一个6G的空 闲分区/dev/hda12
⒈ 复制iso映像到空闲分区(你可以使用简单的递规复制,cp -R来替代dd命令;dd有时可能会搞乱分区。
  1. dd if=arch-0.7-beta2-base.iso of=/dev/hda12
复制代码

⒉ 挂载分区(你可以使用-tiso9660,但是mount应该能分辨得出):
  1. mkdir /mnt/archCD
复制代码
  1. mount /dev/hda12 /mnt/archCD
复制代码

⒊ 我用的不是grub,下面的方法对Lilo有效。编辑lilo.conf添加:
  1. image=/mnt/archCD/iso/linux/vmlinuz
  2.                       label=archCD
  3.                       initrd=/mnt/archCD/isolinux/initrd.img
  4.                       append="root=/dev/rd/0 BOOTMEDIA=cd"
复制代码

然后不要忘记运行:
  1. lilo
复制代码

⒋ 重新启动选择archCD,当安装程序询问你是使用CD还是SRC时,你可以跳转到另一个shell,执行:
  1. mount -tiso9660 /dev/discs/disc0/part12 /src
复制代码

● 用你分配的空闲分区替换/dev/discs/disc0/part12
● 记得可以用制表符补齐来找到分区而不必完整输入
然后返回选择SRC从硬盘安装
在Arch启动运行时改造空闲分区
⑴ 可以用mkreiserfs、mke2fs来改变空闲分区类型。以hda12为例:
  1. mkreiserfs /dev/hda12
复制代码

⑵ 然后编辑/etc/fstab,检查对应分区的文件系统和选项是否正确:
  1. /dev/hda12 /mnt/spare reiserfs defaults,noatime,notail,noauto 0 0
复制代码

⑶ 最后挂载点是否存在,如果没有:
  1. mkdir /mnt/spare
复制代码

最后编辑于2005年3月13日,星期日 9:19:49pm
回复 支持 反对

使用道具 举报

发表于 2005-3-21 10:04:36 | 显示全部楼层
内容和“无软驱、无光盘,直接使用ISO文件硬盘安装 Arch 0.5”有类似
http://arch.linuxsir.cn/main/?q=node/10
回复 支持 反对

使用道具 举报

发表于 2005-3-21 10:48:42 | 显示全部楼层
嗯,差不多!我就是这么装的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表