Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr3986 :: Optical media is not dead

Archer72 shows command line options for creating and writing iso files

<< First, < Previous, , Latest >>

Thumbnail of Archer72
Hosted by Archer72 on 2023-11-13 is flagged as Clean and is released under a CC-BY-SA license.
Command line, Create ISO, Burn ISO, Optical media, DVD, CD, Blu-ray. 1.
The show is available on the Internet Archive at: https://archive.org/details/hpr3986

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:07:15

general.

Brought up by Klaatu on GnuWorldOrder.info

Media size

4.7Gb DVD - Actual capacity: 4.377Gb

What is the actual storage capacity of a dvd disc

A disc with a 25GB capacity is the equivalent of 23.28 gigabytes Normally rated at 50GB, in practice they can record about 46.57GB of data

What is the maximum capacity of a blu ray disc

Generate ISO image from directory

genisoimage -U -R -allow-lowercase -allow-multidot -o mydvd.iso "$1"

Alternative is mkisofs

-U

Allows "untranslated" filenames, completely violating the ISO9660 standards described above. Enables the following flags: -d -l -N -allow-leading-dots -relaxed-filenames -allow-lowercase -allow-multidot -no-iso-translate. Allows more than one `.' character in the filename, as well as mixed-case filenames. This is useful on HP-UX, where the built-in cdfs filesystem does not recognize any extensions. Use with extreme caution.

-R

Generate SUSP and RR records using the Rock Ridge protocol to further describe the files on the ISO9660 filesystem.

[Wikipedia - ISO 9660](https://en.wikipedia.org/wiki/ISO_9660#SUSP "Wikipedia - ISO 9660")

Corrected command

genisoimage -R -o mydvd.iso "$1"

Burning data to a DVD or Blu-ray

Note:

Make sure that the medium is not mounted when you begin to write to it. Mounting may happen automatically if the medium contains a readable file system. In the best case, it will prevent the burn programs from using the burner device. In the worst case, there will be misburns because read operations disturbed the drive. So if in doubt, do:

umount /dev/sr0

growisofs has a small bug with blank BD-R media. It issues an error message after the burning is complete. Programs like k3b then believe the whole burn run failed. To prevent this, either format the blank BD-R by dvd+rw-format /dev/sr0 before submitting it to growisofs or use growisofs option

-use-the-force-luke=spare:none

Archwiki - Optical disk burning

Burning an ISO image to CD, DVD, or BD

To burn a readily prepared ISO image file isoimage.iso onto an optical medium, run for CD:

cdrecord -v -sao dev=/dev/sr0 isoimage.iso

and for DVD or BD:

growisofs -dvd-compat -Z /dev/sr0=isoimage.iso

for CD, DVD, BD:

xorriso -as cdrecord -v dev=/dev/sr0 -dao isoimage.iso

Other reading

Archwiki - Optical disk drive

Archwiki - Optical disk drive

Debian - Gensisoimage man page

Debian - Gensisoimage man page

Debian wiki - genisoimage and xorrisofs

Debian wiki

Archiving data on Blu-ray discs

Archiving data

Mount an ISO file and Burning it to CD-R/DVD-R/BluRay in Linux

Mount an ISO file and Burning

What is the size capacity of my DVD, Dual Layer DVD or Blu-ray disc?

What is the size capacity of my DVD

Wikipedia ISO9660

Wikipedia ISO9660


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2024-01-02 21:59:31 by frank

Capacity vs. actual capacity

Hi,

the difference between the two numbers comes from how the bytes are counted. The bigger number (e.g. 4.7) uses powers of 10, whereas the smaller number (4,37) uses powers of 2.

The former is called Gigabyte, the latter Gibibyte (for binary gigabyte). In essence, 4.7 GB (1000 * 1000 * 1000) equals 4,37 GiB (1024 * 1024 * 1024). Different number, but actually the same amount of bytes. A big cause for this confusion is that Windows shows amounts based on binary calculation, but writes out the ten-based unit names, i.e. it says "4,37 GB", but it should say "4.37 GiB".

There is also a difference between lowercase and uppercase b. Lowercase denotes bits, whereas uppercase stands for bytes (easy to remember: the small letter means the smaller unit).

It's always a joy to listen to your calm speech. Greetings.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?