Hi,

[email protected] wrote:
> A new-out-of-the-box drive is connected to the system

A CD/DVD/BD burner, a USB stick, a hard disk ?
How much storage capacity does it offer ?


> xorriso : FAILURE : Image size 2258784s exceeds free space on media 951368s

The emerging ISO would occupy 2258784 "CD data sectors" of 2048 bytes
each (4412 MiB)) whereas the medium offers only 951368 * 2048 bytes
of remaining capacity (1868 MiB).


> # xorriso -dev stdio:/dev/sdd -toc
> ...
> libisoburn: WARNING : No ISO 9660 image at LBA 0.
> ...
> Media status : is written , is closed
> Media summary: 1 session, 244193292 data blocks,  466g data,     0 free
> ...
> Nothing has been written yet but xorriso finds the drive full?

This is quite surely not the drive which only offers 1868 MiB of free
space.
That drive was "blank" or "appendable", or else xorriso should not
have reached the point where it complains about the lack of space.

/dev/sdd is probably a USB stick or a hard disk. This kind of drive
is considered by xorriso as holding an overwritable medium.
So this statement from man xorriso applies:

  Closed is the state of DVD-ROM media and of multi-session media which
  were written with command -close on. [...]
  Overwritable media assume this state [...] if they contain
  unrecognizable data in the first 32 data blocks.

Obviously your /dev/sdd contains non-zero data in these 64 KiB, but
these data do not indicate the presence of an ISO 9660 filesystem.
Considering such a "medium" as closed is a safety precaution against
destroying data without knowing what they might mean.


> The drive needs initializing with an empty session?

Yes. After being very very sure (*) that /dev/sdd is the right drive
address, do

  xorriso -outdev stdio:/dev/sdd -blank as_needed

xorriso will then write 64 KiB of zeros to the beginning of the drive,
which invalidates a possible partition table and might invalidate
a possible other filesystem which is currently on /dev/sdd.

This run reports on a small USB stick of mine:

  Media status : is written , is closed
  Media summary: 1 session, 978944 data blocks, 1912m data,     0 free
  Beginning to blank medium in mode 'fast'.
  Blanking done
  ...
  Media status : is blank
  Media summary: 0 sessions, 0 data blocks, 0 data, 1912m free


-----------------------------------------------------------------------
(*)
Excluding any other drive from being overwritten is of course crucial.

With USB sticks i use such opportunities to test xorriso-dd-target
with its plug-in identification of USB drives:

  xorriso-dd-target -with_sudo -plug_test

This run will ask you to first have the drive unplugged, press Enter,
then plug in the drive, and press Enter again.
The result will be something like
  sdd : YES : usb+ has_vfat+ : INTENSO USB
or
  sdd : NO  : usb+ ... has_ext2- : INTENSO USB

The evaluation "YES" or "NO" is not decisive in this case, because you
want to overwrite the device in any case.
Decisive is the device address "sdd", which belongs to the drive that
was plugged in during the xorriso-dd-target run.


Have a nice day :)

Thomas

Reply via email to