Re: Linux M-Disc support

2022-06-29 Thread Paul von Behren
Sorry for all the typos. I try to run directly on the system console to
avoid creating a coaster if SSH decides to hang up. As a result, I couldn't
copy-n-paste exactly what happened. I did take pictures on my phone, but
apparently didn't copy to the email very well :-(  But many thanks for your
help.

On Wed, Jun 29, 2022 at 4:44 AM Thomas Schmitt  wrote:

> Hi,
>
> First of all: Congrats to the success and thanks for the report.
>
> I have some comments and corrections for the list archive, though:
>
> Paul von Behren wrote:
> > using xorrisofs, copied the ISO using scp to a Ubuntu system
> > with the SATA burner, where I used xorisso-as cdrecord.--for_backup
>
> --for_backup has to be used with xorrisofs (the -as mkisofs emulation),
> not with xorrecord (the -as cdrecord emulation).
> Its purpose is to put an array of MD5 sums to the end of the ISO 9660
> filesystem and to add an attribute to each data file which points to
> their respective MD5 entry in the array.
>
> Actually xorrecord would refuse on this option:
>   xorriso : FAILURE : -as cdrskin: Unknown option '--for_backup'
> so i assume that you did it right.
>
> If MD5s were recorded then the -for_backup -check_media run should report
> MD5 related messages, like:
>
>   xorriso : UPDATE : Found matching MD5 superblock tag: start=32 size=18
>   ...
>   xorriso : UPDATE : Found matching MD5 tree tag: start=32 size=9022
>   ...
>   xorriso : UPDATE : Found matching MD5 session tag: start=32 size=1969789
>
> and at the end of the run
>
>   MD5 checks   :lba ,   size , result
>   MD5 tag range: 32 ,1969789 , + md5_match
>
> (With multi-session media there are such lines for each session.)
>
>
> > I then used xoriso check_media_r ... to verify the md5s - all were
> > good RC=0.
>
> The proposed xorriso commands are -check_media and -check_md5_r.
>
> There is no -check_media_r. xorriso would refuse:
>   xorriso : FAILURE : Not a known command:  '-check_media_r'
>
>
> > I read a paper that studied failures of burns at various speeds. Even if
> the
> > drive vendor said the drive supported 4x (or faster), the study found
> much
> > fewer failures at slower speed (1x).
>
> My own experience is that healthy drives on healthy media can reliably
> write at the maximum speed which they promise. But a BD drive at 10x speed
> is a frightening experience.
>
> I have a Pioneer BDR-S09 which rotates so fast when reading BD-RE that
> newer Verbatim BD-RE physically break by getting cracks at the rim of
> their inner hole. When the crack reaches the dye, the medium becomes
> unreadable.
> he drive does not react on read speed settings. So the only way to slow
> it down is to curb the willingness of xorriso to take data as fast as
> the drive delivers them. Therefore i use this xorriso speed setting
> command when checkreading BD media by the Pioneer BDR-S09:
>   -read_speed soft_force:6xBD
> "soft_force:" is quite new. Only the recent version 1.5.4 supports it.
>
>
> Have a nice day :)
>
> Thomas
>
>


Re: Linux M-Disc support

2022-06-29 Thread Thomas Schmitt
Hi,

First of all: Congrats to the success and thanks for the report.

I have some comments and corrections for the list archive, though:

Paul von Behren wrote:
> using xorrisofs, copied the ISO using scp to a Ubuntu system
> with the SATA burner, where I used xorisso-as cdrecord.--for_backup

--for_backup has to be used with xorrisofs (the -as mkisofs emulation),
not with xorrecord (the -as cdrecord emulation).
Its purpose is to put an array of MD5 sums to the end of the ISO 9660
filesystem and to add an attribute to each data file which points to
their respective MD5 entry in the array.

Actually xorrecord would refuse on this option:
  xorriso : FAILURE : -as cdrskin: Unknown option '--for_backup'
so i assume that you did it right.

If MD5s were recorded then the -for_backup -check_media run should report
MD5 related messages, like:

  xorriso : UPDATE : Found matching MD5 superblock tag: start=32 size=18
  ...
  xorriso : UPDATE : Found matching MD5 tree tag: start=32 size=9022
  ...
  xorriso : UPDATE : Found matching MD5 session tag: start=32 size=1969789

and at the end of the run

  MD5 checks   :lba ,   size , result
  MD5 tag range: 32 ,1969789 , + md5_match

(With multi-session media there are such lines for each session.)


> I then used xoriso check_media_r ... to verify the md5s - all were
> good RC=0.

The proposed xorriso commands are -check_media and -check_md5_r.

There is no -check_media_r. xorriso would refuse:
  xorriso : FAILURE : Not a known command:  '-check_media_r'


> I read a paper that studiedĀ failures of burns at various speeds. Even if the
> drive vendor said the drive supportedĀ 4x (or faster), the study found much
> fewer failures at slower speed (1x).

My own experience is that healthy drives on healthy media can reliably
write at the maximum speed which they promise. But a BD drive at 10x speed
is a frightening experience.

I have a Pioneer BDR-S09 which rotates so fast when reading BD-RE that
newer Verbatim BD-RE physically break by getting cracks at the rim of
their inner hole. When the crack reaches the dye, the medium becomes
unreadable.
he drive does not react on read speed settings. So the only way to slow
it down is to curb the willingness of xorriso to take data as fast as
the drive delivers them. Therefore i use this xorriso speed setting
command when checkreading BD media by the Pioneer BDR-S09:
  -read_speed soft_force:6xBD
"soft_force:" is quite new. Only the recent version 1.5.4 supports it.


Have a nice day :)

Thomas



Re: Linux M-Disc support

2022-06-28 Thread Thomas Schmitt
Hi,

Paul von Behren wrote:
> Media current: BD-R sequential recording
> Media product: MILLEN/MR1/0 , Millenniata Inc.
> Media status : is blank
> Media blocks : 0 readable , 12219392 writable , 12219392 overall

This one should work with xorriso.


> Media current: BD-R sequential recording, Pseudo Overwrite formatted
> Media product: VERBAT/IMk/0 , Mitsubishi Kagaku Media Co.
> Media status : is unsuitable , is POW formatted
> Media blocks : 35185280 readable , 12906880 unused , 48092160 overall
> Media summary: unsuitable Pseudo Overwrite formatted BD-R

A "100 GB" medium. Must have cost nearly as much as the drive. :))

This one might still be writable by growisofs for an add-on session
with option -M.
Inquire its state by

  dvd+rw-mediainfo /dev/sr0

(The tray with the BD must already be loaded, because dvd+rw-mediainfo
won't pull it in.)

Specs for BD media offer a mode called Pseudo Overwrite where the Defect
Management is (mis-)used to replace written blocks by spare blocks if a
write operation happens again to such a written block.
growisofs uses it to update the superblock at offset 0, whereas libburn
programs rely on the convention that the operating systems mount the
superblock of the first track of the most recent session.


> I will try to burn an m-disk next with xorriso and let you know how it
> goes.

If you use the blank BD-R unformatted, then it will be written with full
nominal speed. That might become loud. Inquire the speeds by

  xorriso -outdev /dev/sr0 -list_speeds

and consider to reduce speed and noise by xorriso command -speed.


If you want Defect Management (of which i'm not overly convinced), then
let xorriso format the medium. You can do this in a separate run before
the actual write run

  xorriso -outdev /dev/sr0 -format "as_needed"

or use the -format command in the course of the first xorriso write run
which uses this medium.

"as_needed" applies the default formatting size (normally 23098 MiB).
You may get proposals for the loaded medium by:

  xorriso -outdev /dev/sr0 -list_formats

like

  Format status: unformatted, up to 23866.0 MiB
  Format idx 0 : 00h , 11826176s , 23098.0 MiB
  Format idx 1 : 32h , 11826176s , 23098.0 MiB
  Format idx 2 : 32h , 5796864s , 11322.0 MiB
  Format idx 3 : 32h , 12088320s , 23610.0 MiB

and choose other division between payload and spare blocks, by e.g.

  xorriso -outdev /dev/sr0 -format by_index_3

  xorriso -outdev /dev/sr0 -format by_size=22586m

(More than 23866m will not be achievable, of course.)


Have a nice day :)

Thomas



Re: Linux M-Disc support

2022-06-28 Thread Paul von Behren
-I bought a Samsung USB drive when m-disks were new and got some media to
backup my Windows laptop. I was using Acronis and the boot and restore from
USB was a pain; so I have left over unused disks I should use. The disks I
did create are still readable on Linux. FWIW, here's output from xorriso
-to from two mdisks. One is a Verbatim and the other is Millentia; one was
written. These reports are from an LG SATA BD drive.

Drive current: -dev '/dev/sr0'
Drive access : exclusive:unrestricted
Drive type   : vendor 'HL-DT-ST' product 'BD-RE WH16NS40' revision '1.02'
Drive id : 'K9AE5EA4251 '
Media current: BD-R sequential recording
Media product: MILLEN/MR1/0 , Millenniata Inc.
Media status : is blank
Media blocks : 0 readable , 12219392 writable , 12219392 overall
Media summary: 0 sessions, 0 data blocks, 0 data, 23.3g free

Drive current: -dev '/dev/sr0'
Drive access : exclusive:unrestricted
Drive type   : vendor 'HL-DT-ST' product 'BD-RE WH16NS40' revision '1.02'
Drive id : 'K9AE5EA4251 '
Media current: BD-R sequential recording, Pseudo Overwrite formatted
Media product: VERBAT/IMk/0 , Mitsubishi Kagaku Media Co.
Media status : is unsuitable , is POW formatted
Media blocks : 35185280 readable , 12906880 unused , 48092160 overall
Media summary: unsuitable Pseudo Overwrite formatted BD-R

I will try to burn an m-disk next with xorriso and let you know how it
goes.

Paul

On Tue, Jun 28, 2022 at 6:50 AM Thomas Schmitt  wrote:

> Hi,
>
> Paul von Behren wrote:
> > Can xorriso burn/engrave an M-Disc? Can any other Linux SW?
>
> Yes to both, although rarely tested.
> In my mailbox i find libburn user reports only for BD-R M-Discs.
>
> M-Disc is entirely a matter of drive and medium. The burn programs get
> the media info from the drive which presents M-Disc as DVD+R or BD-R.
> (Verbatim seems to sell M-Disc DVD as "DVD R" omitting the significant
> difference between DVD-R and DVD+R. But i remember that DVD+R was
> mentioned when the M-Disc technology was announced.)
>
> So if you really want to pay the price difference between M-Disc and
> other write-once media, then give it a try with your favorite burn
> program for DVD or BD.
> I would of course be glad if you choose xorriso or cdrskin.
>
> Please report the outcome.
> As said: Reports are rare.
>
> --
>
> If the burn run looks successful, consider to run
>
>   xorriso -for_backup -indev /dev/sr0 -check_media --
>
> to get an impression of readability.
>
> If you use xorriso to create an ISO 9660 filesystem, then consider to
> use -for_backup to equip the data files and the overall filesystem with
> MD5 checksums. (With xorriso's mkisofs emulation the option begins by
> two dashes: --for_backup.)
>
> A xorriso run with -for_backup ... -check_media will then verify the
> overall checksums.
> But even without recorded MD5s it will check the readability of all data
> blocks of the written area.
>
>
> If you recorded MD5 and want to check the single file checksums:
>
>   xorriso -for_backup -indev /dev/sr0 -check_md5_r sorry / --
>
> This will report on stdout each file which fails to match its recorded
> MD5. Informational messages and pacifiers appear on stderr.
> The exit status of xorriso will indicate whether all was fine (0) or
> whether files failed the test (not 0, actually 32).
> This check works only if indeed MD5s were recorded by xorriso.
>
> Consider to repeat this checking regularly to get an impression how your
> recorded files are doing.
>
>
> Have a nice day :)
>
> Thomas
>
>


Re: Linux M-Disc support

2022-06-28 Thread Thomas Schmitt
Hi,

Paul von Behren wrote:
> Can xorriso burn/engrave an M-Disc? Can any other Linux SW?

Yes to both, although rarely tested.
In my mailbox i find libburn user reports only for BD-R M-Discs.

M-Disc is entirely a matter of drive and medium. The burn programs get
the media info from the drive which presents M-Disc as DVD+R or BD-R.
(Verbatim seems to sell M-Disc DVD as "DVD R" omitting the significant
difference between DVD-R and DVD+R. But i remember that DVD+R was
mentioned when the M-Disc technology was announced.)

So if you really want to pay the price difference between M-Disc and
other write-once media, then give it a try with your favorite burn
program for DVD or BD.
I would of course be glad if you choose xorriso or cdrskin.

Please report the outcome.
As said: Reports are rare.

--

If the burn run looks successful, consider to run

  xorriso -for_backup -indev /dev/sr0 -check_media --

to get an impression of readability.

If you use xorriso to create an ISO 9660 filesystem, then consider to
use -for_backup to equip the data files and the overall filesystem with
MD5 checksums. (With xorriso's mkisofs emulation the option begins by
two dashes: --for_backup.)

A xorriso run with -for_backup ... -check_media will then verify the
overall checksums.
But even without recorded MD5s it will check the readability of all data
blocks of the written area.


If you recorded MD5 and want to check the single file checksums:

  xorriso -for_backup -indev /dev/sr0 -check_md5_r sorry / --

This will report on stdout each file which fails to match its recorded
MD5. Informational messages and pacifiers appear on stderr.
The exit status of xorriso will indicate whether all was fine (0) or
whether files failed the test (not 0, actually 32).
This check works only if indeed MD5s were recorded by xorriso.

Consider to repeat this checking regularly to get an impression how your
recorded files are doing.


Have a nice day :)

Thomas