LFS 用家喜讯:boot LiveCD from hard disk - now possible!
时间:2007-07-14
来源:互联网
Hello, starting from r1950, it is possible to store the LiveCD image on a partition (maybe even on a flash drive - but it is untested) as a file, and boot this file as a real CD. To do so, just extract the following files from the CD: boot/isolinux/linux (or linux64) boot/isolinux/initramfs_data.cpio.gz Copy them to your hard disk into the /boot/lfs directory. Copy the LiveCD image anywhere else. Let's assume it is /root/lfslivecd-x86-6.3-pre2-r1950.iso, and the root partition is /dev/hda2. Then, add the following to the GRUB configuration: title LFS LiveCD kernel /boot/lfs/linux root=iso:/dev/hda2:/root/lfslivecd-x86-6.3-pre2-r1950.iso rw initrd /boot/lfs/initramfs_data.cpio.gz That's all! The r1950 CD is currently being built on ums.usu.ru, I will post a download link when it is ready. Feel free to race with me if you have a faster CPU. -- Alexander E. Patrakov
I wrote: > kernel /boot/lfs/linux > root=iso:/dev/hda2:/root/lfslivecd-x86-6.3-pre2-r1950.iso rw Sorry for line wrapping. Also I forgot to say that it should be possible to boot the LiveCD even from NTFS, even if you have only Windows XP (sorry, Vista is too new). The trick is to install grub4dos from http://sourceforge.net/project/showfiles.php?group_id=104188&package_id=111982 If you also add the "toram" boot option, you can resize the NTFS partition and install LFS in the remaining space - using nothing but network as the installation media. -- Alexander E. Patrakov
补充:
1. 其实 CDROM 本来就是 read-only 的,在 ntfs 分区下能用 grub4dos 并不稀奇
2. r1950 是指 LFS LiveCD 的测试版,会随时更新的,下载地址:
http://ums.usu.ru/~patrakov/test/
2007年8月18日更新:
这是 Jeremy Huntwork 协同开发 LFS LiveCD 後提供的另一个 master server
http://kerrek.linuxfromscratch.org/pub/lfs-livecd/
作者: d00m3d 发布时间: 2007-07-14
作者: csfrank 发布时间: 2007-07-14
谢谢楼主,辛苦了
作者: xcrdjn 发布时间: 2007-07-14
大伙都来顶一下,我们来个人工置顶。
作者: huohuliaisili 发布时间: 2007-07-14
作者: csfrank 发布时间: 2007-07-14
http://www.linuxfromscratch.org/livecd/download.html
特别注意: 这里改 rw 为 ro ,防止出故障 。如果不用 ro 只读挂载 lfslivecd 所在的硬盘分区,在找不到或者无法挂载同名 iso 文件时可能会发生灾难。后果真的很严重!!
新版已出:
lfslivecd-x86-6.3-r2145.iso(已测,感觉不错)
lfslivecd-x86-6.3-r2145-nosrc.iso ( 准备自己下载更新的源码包的可以用这个)
x86_64 需要64位LiveCD的也可以试试这个:
lfslivecd-x86_64-6.3-r2145-nosrc.iso (不含源码包)
lfslivecd-x86_64-6.3-r2145.iso (含源码包)
x86和x86_64的LiveCD都可以做64位系统。光盘引导后按 F1 键,看下说明(可以先在虚拟机系统中试验下)。
已成功:
iso文件在IDE硬盘 /dev/hda4 这个分区的 LFS 目录下。
拷贝livecd中的 boot/isolinux/ 目录下的 linux linux64 initramfs_data.cpio.gz 这三个文件 到 livecd 同一硬盘分区某目录下。
先确定系统中有 GRUB 引导装载程序。windows用户可以用GRLDR以及grub for dos代替。
# 编辑添加到 /boot/grub/menu.lst文件时需去掉下一行首的 ” # “
#title LFS LiveCD ( 32bit )
root (hd0,3)
kernel /LFS/linux root=iso:/dev/hda4:/LFS/lfslivecd-x86-6.3-r2014.iso ro
initrd /LFS/initramfs_data.cpio.gz
64位的是这样:
# 编辑添加到 /boot/grub/menu.lst文件时需去掉下一行首的 ” # “
#title LFS LiveCD ( 64bit )
root (hd0,3)
kernel /LFS/linux64 root=iso:/dev/hda4:/LFS/lfslivecd-x86-6.3-r2014.iso ro
initrd /LFS/initramfs_data.cpio.gz
另外,还可以加上这些,当然,也可以加 vga=xxx 这样的参数。
linux UTC=0 TZ=Asia/Shanghai LANG=zh_CN.UTF-8
新版多一个参数 nodhcp ,不要dhcp自动分配ip。在系统启动后可以用 net-setup 配置网络,包括ADSL拔号上网,无线没试过。
作者: huohuliaisili 发布时间: 2007-07-14
作者: srlmm 发布时间: 2007-07-15
有个问题
网上的
lfslivecd-x86-6.3-pre2-r1950-nosrc.iso和lfslivecd-x86-6.3-pre2-r1950.iso有什么区别,差1-2百M呢
作者: lwc1123 发布时间: 2007-07-18
作者: lwc1123 发布时间: 2007-07-18
作者: lwc1123
太好了,
有个问题 网上的 lfslivecd-x86-6.3-pre2-r1950-nosrc.iso和lfslivecd-x86-6.3-pre2-r1950.iso有什么区别,差1-2百M呢 |
nosrc 就是 没有 sources (源码包) 。只有一个系统和手册/文档。这样,你可以选择在线手册,因为在线的手册更新比较快,可以用更新的软件,当然可能会有一些这样那样的问题。
作者: huohuliaisili 发布时间: 2007-07-18
作者: d00m3d 发布时间: 2007-07-19
作者: dfasdf34fsdf 发布时间: 2007-07-22
http://www.linuxfromscratch.org/livecd/download.html
lfslivecd-x86-6.3-r1952.iso (含原码包的)
lfslivecd-x86-6.3-r1952-nosrc.iso(不含原码包)
作者: huohuliaisili 发布时间: 2007-07-24
下载的那个600多M的livcd iso.
从ISO里面拷贝出来的linux(kernel),initramfs_data_cpio.gz(initrd)类型是data
(正常的应该是Linux kernel x86 boot executable RO-rootFS, root_dev 0x703, swap_dev 0x2, Normal VGA ... 等等),
导致无法通过grub(grub 0.97)启动引导(提示:不被支持的执行格式)。
请问如何解决呢?
有人碰到同样的问题吗?
作者: imonyse 发布时间: 2007-07-26
下了哪个 iso?
作者: d00m3d 发布时间: 2007-07-26
开放的就是好.可以充分利用劳动人民的想像力,顶一个先.
作者: 和尚娶媳妇 发布时间: 2007-07-27
作者: imonyse
碰到了问题
下载的那个600多M的livcd iso. 从ISO里面拷贝出来的linux(kernel),initramfs_data_cpio.gz(initrd)类型是data (正常的应该是Linux kernel x86 boot executable RO-rootFS, root_dev 0x703, swap_dev 0x2, Normal VGA ... 等等), 导致无法通过grub(grub 0.97)启动引导(提示:不被支持的执行格式)。 请问如何解决呢? 有人碰到同样的问题吗? |
作者: 和尚娶媳妇 发布时间: 2007-07-27
作者: imonyse 发布时间: 2007-07-27
消息来源
http://linuxfromscratch.org/pipermai...st/004834.html
HTTP: http://kerrek.linuxfromscratch.org/pub/
Anonymous FTP: ftp://kerrek.linuxfromscratch.org
RSYNC: rsync -av --delete kerrek.linuxfromscratch.org::livecd
作者: d00m3d 发布时间: 2007-08-18
作者: sumargin 发布时间: 2007-08-18
方法是将 rw 改成 ro 。以只读方式挂载分区,然后再引导分区上的 ISO 。
详见此文:
http://www.linuxsir.org/bbs/showthre...93#post1755893
如果你没有遇到类似情况,那只能说明你很幸运。这里提出这个问题,是为了避免再次发生相同的问题。这可是血淋淋的教训啊 !
作者: tfkdmwmqtr 发布时间: 2007-09-18
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28