LinuxSir.cn,穿越时空的Linuxsir!

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

根据LFS做出来的linux系统如何安装到其他电脑上?

[复制链接]
发表于 2010-10-4 21:53:28 | 显示全部楼层 |阅读模式
我已经根据LFS6.3做好了一个LFS系统,
在虚拟机里可以启动运行。
怎样把这个系统做成系统安装盘之类的?
我想把它安装到其他电脑上用这么办?
发表于 2010-10-5 16:56:45 | 显示全部楼层
1. livecd启动。su到根用户,cd 到 lfs所在的分区。tar (cpio)打包lfs系统。
#tar -cjpf /some_where/lfs.tar.bz2 .   #or(# find . -print |cpio -o -Hnewc | bzip2 >/some_where/lfs.cpio.bz2)
2. 挂载 目标分区,假设为/mnt/lfs_to  然后 #cd /mnt/lfs_to
tar -xjpf /some_where/lfs.tar.bz2  # or  ( # bzcat some_where/lfs.cpio.bz2|cpio -i )
3.mount 虚拟文文件系统,参见 lfs  mannual 6.2.
4. chroot  /mnt/lfs_to
5. 参见 手册 8.4 设置 grub.
6. 修改 /etc/fstab
7. 重启.
回复 支持 反对

使用道具 举报

发表于 2010-10-25 21:32:36 | 显示全部楼层
招數有很多,這是小弟舊作:

http://www.linuxsir.cn/bbs/thread343284.html
回复 支持 反对

使用道具 举报

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

本版积分规则

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