Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
blu-ray backup just keeps failing...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
pking
n00b
n00b


Joined: 11 Sep 2009
Posts: 61

PostPosted: Wed Oct 02, 2013 1:45 am    Post subject: blu-ray backup just keeps failing... Reply with quote

I can't figure out how to get started with backing up to BD-RE.

After several failures, I finally succeeded in preparing a disk for use:

Code:

$ dvd+rw-format -format=full -ssa=1GB /dev/sr0
* BD/DVD±RW/-RAM format utility by <appro@fy.chalmers.se>, version 7.1.
* 24.2GB BD media detected.
* formatting 100.0/


The -ssa=1GB is terribly wasteful, but -ssa=default kept quitting at about 12% of the disc.

Well, okay. There are reports on the web that creating a UDF filesystem will allow one to mount/unmount
the BD-RE and write to it ordinarily, without any special tools. Sounds good, but every time I try to create
a UDF filesystem the command fails:

Code:

$ mkudffs /dev/sr0
trying to change type of multiple extents


Googling for the error message gets me the information that mkudffs failed, and advises re-formatting the
disc. I've done that three times and I cannot, no matter what I try, create a filesystem on the disc.

I tried installing libburn and using cdrskin to reformat the disc:

Code:

$ cdrskin -v dev=/dev/sr0 blank=as_needed
cdrskin 1.3.2 : limited cdrecord compatibility wrapper for libburn
cdrskin: verbosity level : 1
cdrskin: NOTE : greying out all drives besides given dev='/dev/sr0'
cdrskin: scanning for devices ...
cdrskin: ... scanning for devices done
cdrskin: status 1 burn_disc_blank "The drive holds a blank disc"
Current: BD-RE


Which seems to have worked, but mkudffs still fails.


What is going wrong? The information on the web is spotty, and everyone else seems to treat these steps
are (more or less) unproblematic. But all I have are problems.

After all this I tried to get information:

Code:

 dvd+rw-mediainfo /dev/sr0
INQUIRY:                [HL-DT-ST][BD-RE  BH14NS40 ][1.00]
GET [CURRENT] CONFIGURATION:
 Mounted Media:         43h, BD-RE
 Media ID:               RITEK/BW1
 Current Write Speed:   2.0x4495=8992KB/s
 Write Speed #0:        2.0x4495=8992KB/s
 Speed Descriptor#0:    00/11711487 R@6.0x4495=26976KB/s W@2.0x4495=8992KB/s
BD SPARE AREA INFORMATION:
 Spare Area:            507904/507904=100.0% free
READ DISC INFORMATION:
 Disc status:           complete
 Number of Sessions:    1
 State of Last Session: complete
 Number of Tracks:      1
READ FORMAT CAPACITIES:
 formatted:      11711488*2048=23985127424
 00h(3000):      11826176*2048=24220008448
 30h(3000):      11826176*2048=24220008448
 30h(5000):      11564032*2048=23683137536
 30h(1000):      12088320*2048=24756879360
 31h(800):      12219392*2048=25025314816
READ TRACK INFORMATION[#1]:
 Track State:           complete
 Track Start Address:   0*2KB
 Free Blocks:           0*2KB
 Track Size:            11711488*2KB
FABRICATED TOC:
 Track#1  :             14@0
 Track#AA :             14@11711488
 Multi-session Info:    #1@0
READ CAPACITY:          11711488*2048=23985127424


Seems like it should work. Well, I can't make it work, the gentoo wiki has "[TO DO]" in the
discussion of BD-R(E) formatting/burning, and I can't find an answer with my limited skills at
Google.

Several people create a disk image and then burn it to the BD-R(E), which I haven't yet tried,
since apparently some people manage to use UDF straightforwardly.

Any ideas?
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Oct 02, 2013 10:06 pm    Post subject: Reply with quote

Looks like you need:
Code:
dvd+rw-format /dev/dvd
taken from:
How to format a DVD with UDF
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
pking
n00b
n00b


Joined: 11 Sep 2009
Posts: 61

PostPosted: Wed Oct 02, 2013 10:34 pm    Post subject: Reply with quote

Did that (see the first line above). No joy.

Have now succeeded with BD-RE media, though. For those the process is straightforward:

Code:

    $ dvd+rw-format -ssa=none /dev/sr0
    $ mkudffs /dev/sr0
    $ sudo mount /dev/sr0 /mnt/bluray/


then read/write to it like any regular filesystem! I suspect my troubles are related to BD-R,
perhaps because "formatting" them effectively renders them as having been written -- in which
case, it's no wonder I can't then write to them. But I'll have to get some more BD-R discs to
find out if that's the case.

The roundabout way also works, at least on BD-RE:

[0] Format the BD-RE as needed:
Code:

    $ dvd+rw-format -ssa=none /dev/sr0

Use -ssa=none to turn off defect management.

[1] Get the available size of the BD-R(E):
Code:

    $ dvd+rw-mediainfo /dev/sr0 (with the disc in the drive)


[2] Create a disc-image of that size:
Code:

    $ dd if=/dev/zero of=/bdimage.udf bs=2048 count={SIZE}

Put the multiplier in as the blocksize (bs), and the multiplicand as
the size, and everything should work perfectly.

[3] Format the disc-image:
Code:

    $ mkudffs bdimage.udf

[4] Mount the formatted disc-image:
Code:

    # sudo mount -t udf -o loop bdimage.udf /mnt/disc


[5] Copy files to it:
Code:

    # sudo cp -av /path/to/some/files /mnt/disc


[6] Unmount the disc-image:
Code:

    # sudo umount /mnt/disc


[7] Write the disc-image to the BD-RE:
Code:

    $ growisofs -Z /dev/sr0=bdimage.udf (this takes a long time)


For future use of BD-RE, just mount the disc:
Code:

    # sudo mount /dev/sr0 /mnt/bluray

and read/write to it as you would to any ordinary filesystem; it will then burn
upon unmounting -- with no indication that it's doing so; just be patient (the
progress can be checked with iostat). It seems like it only takes the length of
time to burn the added files, not the whole disc again.

I suspect leaving off Step [0] would work for BD-R, but I haven't tried it yet.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Oct 02, 2013 10:39 pm    Post subject: Reply with quote

Leaving the flag off is equivalent to ssa=none, which is why I linked to that site.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum