制作启动u盘的疑问

最大的社区版本,Ubuntu的发源地
回复
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

制作启动u盘的疑问

#1

帖子 yangdawei.hit » 2016-01-30 11:31

按照网上指导制作了启动u盘,不可思议地简单。请朋友们给我解释一下sync怎么将一个iso展开在u盘上的,sync是同步数据命令,为什么在制作启动u盘时用到了。或者请大家给我一些相关的链接吧。谢谢。

代码: 全选

cp debian.iso /dev/sdc
sync
头像
qy117121
论坛版主
帖子: 50538
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: 制作启动u盘的疑问

#2

帖子 qy117121 » 2016-01-30 11:52

sync - 强制将内存中的文件缓冲内容写到磁盘
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用

邮箱 chuan@ubuntu.org.cn
头像
百草谷居士
帖子: 3918
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

Re: 制作启动u盘的疑问

#3

帖子 百草谷居士 » 2016-02-01 12:25

关键点不是sync,而是cp。
其实,如果使用cp的话,还不如dd呢。
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 制作启动u盘的疑问

#4

帖子 vickycq » 2016-02-01 12:38

Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: 制作启动u盘的疑问

#5

帖子 yangdawei.hit » 2016-02-01 15:07

再次领教@vickycq的强大搜索能力。学习后写下心得,供大家参考和指正。

http://superuser.com/questions/683210/h ... s-a-hybrid
when you hear the term 'hybrid image' all it means is that you can simply write the data -including the filesystem- of the image to a USB drive. Because the ISO image is a hybrid which can either be burned to a disc or directly written to a USB drive, it does not include a standard partition table.
当你听到“混合型镜像”这个术语,意味着你可以直接将包括文件系统在内的数据直接写到USB驱动上。因为这个ISO镜像是混合型的,既可以烧录到光驱,也可以写入到USB上,它不只是包含一个标准的分区表。
it does not include a standard partition table" -- Actually the Hybrid ISO image does have an MBR and a partition table. That's precisely why it can be written to a USB flash drive and then be recognized. The ordinary ISO image has the first 512 bytes zeroed-out (instead of the MBR).
事实上,混合型ISO镜像确实含有MBR和分区表。这恰为它可以直接写到USB闪存上,并被识别出来的原因。普通的ISO镜像只是有一个512个空出来的字节,以代替MBR。

https://plus.google.com/105696767572828 ... wT51iMjayQ
Linux install ISO image files that support "Hybrid ISO"(a feature), in order to do Linux installation "from" USB
- 'Hybrid ISO' is a 'feature' not largely pronounced with Linux download sites, because it is simply a "capability" of the "boot code" that exists inside an ISO file.. So you'll never see the term 'Hybrid ISO' on a download page, but you will see the word 'Hybrid' or 'Hybrid <>' discussed on distro forum sites if the particular distro's ISO supports this feature.
Linux安装ISO镜像文件做成混合型ISO,旨在实现从USB上安装Linux。在Linux下载网页上不般不会特别强调混合型ISO为一个功能,因为它只是一种将“启动代码”写入到ISO文件中后所具有的一种能力。这样你永远不会在下载页看到混合型ISO字样,但你可以在发行论坛上看到“混合”或“混合...”的字样,以表明发行版的ISO支持该功能。
The CD/DVD is yesterday's media, and more people are interested about re-using USB drives more often as a source for installing Linux.
The method of cloning is called 'dump'.. And if you don't see your distro mentioned on here, it doesn't mean it doesn't support Hybrid iso.
To find out for sure, you can google "hybrid iso <your distro here" (plus minus keyword 'dump' or 'dd'),....
CD/DVD已是昨日媒介,更多的人愿意用USB盘安装Linux。这种克隆的方法称为“dump”。如果你没有看到这种类型的发行版,并不意味着该版本不支持混合型ISO。为了确定是否支持,你可以google:hybird iso <你要找的发行版名字> 再加上关键字 dump或dd。看看是否被支持。

我再次回顾了debian的镜像下载页:https://www.debian.org/CD/live/ 看到了如下字样:
"Hybrid" ISO image files suitable for ....
这回明白了,原来能够直接拷贝,就是因为我下载的是“混合型ISO”镜像。关于isohybrid更为全面的介绍,参见vickycq推荐的介绍:http://www.syslinux.org/wiki/index.php/Isohybrid
回复