我们可以通过将mkisofs导入cdrecord来创建ISO-9660 DVD。
对于UDF,这个过程似乎是卷曲和慢的。它创建一个临时空白的4GB文件,然后将数据写入其中,然后才烧掉它。
有一种快速的方法来刻录UDF格式的数据DVD-Rs吗?
发布于 2012-10-26 11:59:03
是的,有一种在CD/DVD中用UDF文件系统编写的更快的方法。它名为包写入,是与UDF版本1.50一起引入的。
简而言之,包写入是一种向CD/DVD或其他媒体写入的方式,其方式类似于从普通文件夹中读取、写入和删除。这种方法既支持CD/DVD写一次的媒体,也支持可重写的媒体.很明显,如果你从写一次的媒体中删除一些东西,比如CD-R,DVD+R,DVD-R等,你就不会得到自由空间。
应该在内核级别支持用UDF文件系统编写数据包,而且支持是默认的,因为内核2.6.10。有关debian系统中内核支持的更多信息,请参见看这一页。
格式化部分下的本页描述了详细的过程。,并使用under或CD编写数据包。不要将步骤3(创建空会话)与使用UDF文件系统创建大型文件混为一谈。这个过程是在这个过程之后列出的,而不是数据包写入。
更新:为了方便观众,我引用这里的过程部分。
Formatting and using a UDF DVD-RW or CD-RW for packet writing
-------------------------------------------------------------
The commands differ depending on whether you are using DVD or CD
media.
1) Edit /etc/default/udftools and add your drive for packet writing.
For example, if your CD/DVD writer is /dev/hdc and you want it
available as the default /dev/pktcdvd/0, then use the setting
"DEVICES=/dev/hdc". Execute "/etc/init.d/udftools start" afterwards to
register the device.
If the device name /dev/hdc differs on your system, adjust the
following commands as appropriate.
2) Prepare the medium in restricted overwrite mode:
DVD-RW: dvd+rw-format -force /dev/hdc
CD-RW: Do nothing, skip this step!
3) Write an empty session spanning the whole medium. It seems that
without this step, any attempt to create the UDF filesystem will fail.
DVD-RW: growisofs -Z /dev/hdc=/dev/zero
CD-RW: cdrwtool -d /dev/hdc -q
4) Format the packet device in UDF format.
DVD-RW: mkudffs --udfrev=0x0150 --spartable=2 --media-type=dvdrw /dev/pktcdvd/0
CD-RW: mkudffs --udfrev=0x0150 --spartable=2 --media-type=cdrw /dev/pktcdvd/0
The parameters require some more explanation: For --udfrev, use either
0x0150 for UDF version 1.50, or 0x0201 for UDF version 2.01. The
version decision has mostly to do with compatibility:
- Windows 98/ME can read up to v1.02
- Windows 2000, Mac OS 9, Linux 2.4 can read up to v1.50
- Windows 2003/XP can read up to v2.01
- Linux 2.6 can read up to v2.60
For normal data, UDF 1.50 is OK. UDF 2.00 and 2.01 introduce
additional functionality for streaming audio/video.
Possible values for --media-type are: hd dvdram dvdrw worm mo cdrw cdr.
Use the one appropriate for your medium/device.
5) Mount the disc. The "noatime" option is important: It will reduce
the amount of writes to the device and thus increase its lifetime. You
may first have to create the mount directory using "mkdir
/media/dvd0":
mount -t udf -o rw,noatime /dev/pktcdvd/0 /media/dvd0
The "sync" mount option might also be useful, but will typically cause
an increased number of write accesses to the medium. From now on, the
root user can access the filesystem under /media/dvd0 using read and
write operations.
6) If regular users should also have write access, modify the
permissions as follows _while the filesystem is mounted_:
chgrp plugdev /media/dvd0 # Set group ownership to "plugdev"
chmod g+rwx /media/dvd0 # Give full read/write access to group
Now all users who should have access to the disc need to be added to
the "plugdev" group using "adduser <username> plugdev".
To also allow these users to mount and unmount/eject the medium, you
can use either of these two routes:
- Install the "pmount" package and add the device to the list of
allowed devices using "echo /dev/pktcdvd/0 >>/etc/pmount.allow".
All members of the group "plugdev" will then be able to mount the
disc using "pmount /dev/pktcdvd/0 dvd0" and unmount it using
"pumount /media/dvd0".
- Add a line like the following to /etc/fstab:
/dev/pktcdvd/0 /media/dvd0 udf rw,noatime,users,noauto 0 0
This will enable _all_ users to mount the disc using
"mount /media/dvd0" and unmount it with
"umount /media/dvd0". However, with the permissions from step 5)
above, only the members of group "plugdev" ought to be able to
write to it. 发布于 2012-10-25 15:01:17
在命令行上没有生成UDF磁盘的快速和非常简单的方法;命令在您的链接文章中描述是常见的方法。您通常会安装udftools包和您需要的其他任何东西。
sudo apt-get install udftools libudf0 然后,正如注意到的这里所指出的那样,完成这个过程。目前没有比这更简单的方法了。(请注意,libudf0库对于处理UDF文件系统也是必要的。)
然而,gui程序k3b也有一些UDF支持(如屏幕截图所示),所以对于您的一些项目来说,这可能是最简单的方法。对于UDF来说,没有太多的选择,但我认为k3b可能是有用的,尽管它不是命令行程序。

https://askubuntu.com/questions/202223
复制相似问题