|
|
原帖地址:http://zhtlancer.com/2010/06/ste ... nux_from_iso_on_hd/
因为archlinux的iso安装完只是基本系统,于是乎在distrowatch找了个衍生版本:archbang
其实是openbox+tint2+conky,但是我的U盘因为长期量产和短接,flash的脚被我弄断了,还是看看硬盘能启动不?
试验半天也不能启动,于是google了以下,找到一个archlinux的硬盘安装方法,仿照这个终于启动安装成功!
1、解压iso的中的/arch/boot目录到硬盘分区。例如:/dev/sda1,iso也放到这个分区;
3、用grub4dos启动:
title Arch Linux
kernel /arch/boot/i686/vmlinuz26 rw_branch_size=75% archisobasedir=arch archisolabel=ARCH_201102 locale=en_US.UTF-8 quiet swapon usbdelay=8
initrd /arch/boot/i686/archbang.img
启动后会停止在那个30秒的什么提示处,等待一会儿,出现提示符:
mkdir /tmp_mnt // 建立一个目录
mount –r –t vfat /dev/sda1 /tmp_mnt //挂载这个分区到新建目录中
modprobe loop //加载loop模块,不知道上面的分区是ntfs,是不是还要modprobe ntfs?
losetup /dev/loop6 /tmp_mnt/ArchBang-2011.02.04-i686.iso //这个命令我不知道,有兴趣的google一下!
ln –s /dev/loop6 /dev/disk/by-label/ARCH_201102 //做个符号链接
exit //这个不用解释吧!@
等待一会进入桌面,右键桌面,安装,过程同archlinux相似,简单明了,配置系统主要是修改/etc/rc.conf和/etc/locale.gen,
rc.conf可以不用修改locale那项,否则文本模式会有方块,进中文桌面修改用户目录的./xinitrc中添加:
export LANG=zh_CN.UTF-8
由于右手食指受伤,打字很困难,过两天在上图! |
|