web-dev-qa-db-ja.com

DVD-R(UDF)をすばやく書き込む方法

mkisofscdrecordにパイプすることにより、ISO-9660 DVDを作成できます。

UDFの場合、手順は 畳み込み および 遅い のようです。一時的な空の4GBファイルを作成し、そこにデータを書き込み、その後のみ書き込みます。

UDF形式でデータDVD-Rをすばやく書き込む方法はありますか?

6
Oleg2718281828

はい、CD/DVDのUDFファイルシステムに書き込むより高速な方法があります。 パケット書き込みと呼ばれ、 DFバージョン1.5 で導入されました。

要するに、パケット書き込みこれは、通常の読み取り、書き込み、削除と同様の方法でCD/DVDまたは他のメディアに書き込む方法ですフォルダ。この方法は、CD/DVD追記型メディアと書き換え可能メディアの両方をサポートしています。明らかに、CD-R、DVD + R、DVD-Rなどの追記型メディアから何かを削除した場合、空き領域を取り戻すことはできません。

UDFファイルシステムを使用したpacket writingはカーネルレベルでサポートする必要があり、カーネル2.6.10以降のサポートはデフォルトです。 Debianシステムでのカーネルサポートの詳細については、 このページをご覧ください

詳細な手順はこのページで説明しました セクションの下でパケット書き込み用のUDF DVD-RWまたはCD-RWのフォーマットと使用。手順3(空のセッションを作成する)とUDFファイルシステムを使用した大きなファイルの作成と混同しないでください。このプロセスは、このプロセスの直後にリストされましたが、パケットの書き込みではありません

Update:視聴者の便宜のため、ここで手順のセクションを引用しています。

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. 
5
Anwar

コマンドラインでUDFディスクを生成するための迅速で簡単な方法はありません。コマンド リンクされた記事に記載 は通常の方法です。通常、udftoolsパッケージと必要な他のものをインストールします。

Sudo apt-get install udftools libudf0 

そして here と記されているプロセスを実行します。現在、それを行う簡単な方法はありません。 (libudf0ライブラリーもUDFファイルシステムを処理するために必要であることに注意することが重要です。)

ただし、GUIプログラムk3bも(スクリーンショットが示すように)UDFをサポートしているため、これはおそらくプロジェクトのいくつかで最も簡単な方法です。 UDFに関係する選択肢はあまり多くありませんが、k3bはおそらくコマンドラインプログラムではありませんが、役に立つと思います。

enter image description here

2
user76204