PDA

View Full Version : Command line woe for writing to DVD-RAM



jeremyphpdn
11th January 2007, 06:34 PM
I'm using Fedora release 3.8 and am fresh with Linux.

I want to copy a backup save set to my DVD-RAM drive (LG GSA-H10N). I am able to perform the copy manually using the Nautilus File Browser. However, I want to create a script which will copy the file to the device.

When I run cdrecord -scanbus I get the following results:

Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright 1997 J. Schilling').
scsibus1:
1,0,0 100) 'HL-DT-ST' 'CD-RW GCE-8527B ' '1.01' Removable CD-ROM
1,1,0 101) 'HL-DT-ST' 'DVDRAM GSA-H10N ' 'JL10' Removable CD-ROM
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *

This tells me I can identify the DVD-RAM drive with the trinity identifier 1,1,0.

However, I am unsuccessful with the following command
dvdrecord dev=1,1,0 -data /backup/backup.iso

The results are as follows:

INFO: dvdrecord's functionality is now replaced by cdrecord
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: '1,1,0'
scsibus: 1 target: 1 lun: 0
cdrecord: Success. Cannot open SCSI driver.cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

I then tried the following command with the below results.
cdrecord dev=help
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilli ng
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/ bugzilla
Note: The author of cdrecord should not be bothered with problems in this versio n.
Supported SCSI transports for this platform:

Transport name: sg
Transport descr.: Generic transport independent SCSI
Transp. layer ind.:
Target specifier: bus,target,lun
Target example: 1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported

Transport name: pg
Transport descr.: SCSI transport for ATAPI over Parallel Port
Transp. layer ind.:
Target specifier: bus,target,lun
Target example: 1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported

Transport name: ATA
Transport descr.: ATA Packet specific SCSI transport
Transp. layer ind.: ATAPI:
Target specifier: bus,target,lun
Target example: ATAPI:1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported

Transport name: ATA
Transport descr.: ATA Packet specific SCSI transport using sg interface
Transp. layer ind.: ATA:
Target specifier: bus,target,lun
Target example: 1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported

Transport name: RSCSI
Transport descr.: Remote SCSI
Transp. layer ind.: REMOTE:
Target specifier: rscsi@host:bus,target,lun
Target example: REMOTE:rscsi@host:1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported


My research has led me to a dead end. Are there any ideas I could pursue to resolve my issue? Thank you.

Brian1
11th January 2007, 10:16 PM
Are you writing to a dvd-ram disc or to a dvd-r or rw disc?
If dvd-ram disc post contents of /etc/fstab.

Brian

jeremyphpdn
11th January 2007, 11:32 PM
I'm writing to a DVD-RAM disc.

Here is the contents of fstab.

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-hda2 swap swap defaults 0 0
/dev/hdd /media/cdrecorder2 auto pamconsole,exec,noauto,managed 0 0
/dev/hdc /media/cdrecorder3 auto pamconsole,exec,noauto,managed 0 0

Brian1
13th January 2007, 08:49 PM
Looks like it should work but I don't use the managed options so I know where the drive is mounted all the time.
Here is mine

/dev/scd1 /mnt/dvd-ram auto noauto,owner,rw 0 0

Now in my /etc/filesystem I have added udf to the list. Mine is right before iso9660 one.

Brian