DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 13th August 2010
rtwingfield rtwingfield is offline
Real Name: Ron Wingfield
Port Guard
 
Join Date: Oct 2008
Location: Little Rock, AR USA
Posts: 36
Default mkisofs and cdrecord with tar

Note that the tar command componet is comm'ed-out;
-dummy is specified to turn off the laser (to avoid wasting a CD);
and -dd is specifed to provide more diagnostics.


I'm having problems with the device designation. Suggestions anyone?


The backup_whatever script:

#tar -c /www/vhosts/website.org | \
mkisofs -stream-media-size 333000 | \
cdrecord -dummy -dd dev=/dev/acd0 -dao tsize=333000s -


Execution failure:

# backup_whatever
dev: '/dev/acd0' speed: -1 fs: -1 driveropts '(NULL POINTER)'
Cdrecord-Clone 2.01 (i386-unknown-freebsd4.8) Copyright (C) 1995-2004 Jörg Schilling
TOC Type: 1 = CD-ROM
fs: 4194304 buflen: 4198400
cdrecord: shared memory segment attached at: 28156000 size 4198400
buf: 28156000 bufend: 28557000, buflen: 4198400
buf: 28156000 bufend: 28557000, buflen: 4198400 (align 0)
scsidev: '/dev/acd0'
devname: '/dev/acd0'
scsibus: -2 target: -2 lun: -2
scg__open(/dev/acd0) -2,-2,-2
cdrecord: Invalid argument. Open by 'devname' not supported on this OS. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
#

. . .so we run with -scanbus:

# cdrecord -scanbus
Cdrecord-Clone 2.01 (i386-unknown-freebsd4.8) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Device not configured. Open of /dev/xpt0 failed. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
#

. . .don't know where /dev/xpt0 came from !!!


Well . . .attempt with dev=scsibus,target,lun scenario (e.g., dev=0,1,0)


#tar -c /www/vhosts/website.org | \
mkisofs -stream-media-size 333000 | \
cdrecord -dummy -dd dev=0,1,0 -dao tsize=333000s -

# backup_whatever
dev: '0,1,0' speed: -1 fs: -1 driveropts '(NULL POINTER)'
Cdrecord-Clone 2.01 (i386-unknown-freebsd4.8) Copyright (C) 1995-2004 Jörg Schilling
TOC Type: 1 = CD-ROM
fs: 4194304 buflen: 4198400
cdrecord: shared memory segment attached at: 28156000 size 4198400
buf: 28156000 bufend: 28557000, buflen: 4198400
buf: 28156000 bufend: 28557000, buflen: 4198400 (align 0)
scsidev: '0,1,0'
scsibus: 0 target: 1 lun: 0
scg__open() 0,1,0
cdrecord: Device not configured. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
archaxis #

Last edited by rtwingfield; 13th August 2010 at 11:28 AM. Reason: . . .grammar & spelling corrections.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:52 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick