LINUX GETTING MORE VIABLE ON THE DESKTOP
![](https://seccdn.libravatar.org/avatar/a6a36419e40c1b6e6372a22ab28a325c.jpg?s=120&d=mm&r=g)
LINUX GETTING MORE VIABLE ON THE DESKTOP (Source: InfoWorld.com) Features such as virtual desktops and solid e-mail clients help to make Linux desktops viable for business. http://www.linuxworld.com/go.cgi?id=742196 -- Fred A. Miller Systems Administrator Cornell Univ. Press Services fm@cupserv.org, www.cupserv.org
![](https://seccdn.libravatar.org/avatar/1c33768964f41d8a39c5cdff32c6ba7d.jpg?s=120&d=mm&r=g)
Hi For some time now I've been backing up my own data to CDs with a CD-Recorder. To do this I've got a cron job which runs a script which creates an ISO image and drops it onto a recordable CD..... rsync -a /home/mydocuments/ /home/mybackup/ > /dev/null 2>&1 mkdir -p /tmp/backup export FILE=backup-`date +%Y%m%d`.tgz tar -cz /home/mybackup > /tmp/backup/$FILE mkisofs -r -J -o /tmp/backup.iso /tmp/backup # cdrecord -v speed=2 dev=0,1,0 blank=fast cdrecord -v speed=2 dev=0,1,0 -data /tmp/backup.iso rm -rf /tmp/backup /tmp/backup.iso This is just great. Works fine. Does everything I want it to do. However, I now find after an upgrade to SuSE 8.2 that the backup system has failed me. Further investigation reveals that there is something in the SCSI emulation part of the software that has failed meaning the cdrecord and mkisofs can't follow on and create a final ISO image. The first part of the log file that is different is the following as the ISO image is produced with 'tar -cz'.... "Using libscg version 'schily-0.7' cdrecord: Warning: using inofficial libscg transport code version (okir@suse.de-scsi-linux-sg.c-1.75-resmgr-patch '@(#)scsi-linux-sg.c 1.75 02/10/21 Copyright 1997 J. Schilling'). atapi: 1 Device type : Removable CD-ROM" Later on other things show up..... "Performing OPC... Starting new track at sector: 0 Track 01: 146 of 614 MB written (fifo 98%) [buf 1%] 15.0x.cdrecord: Input/output error. write_g1: scsi sendcmd: no error CDB: 2A 00 00 01 24 ED 00 00 1F 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 70 00 03 00 00 00 00 0A 00 00 00 00 0C 09 00 00 Sense Key: 0x3 Medium Error, Segment 0 Sense Code: 0x0C Qual 0x09 (write error - loss of streaming) Fru 0x0 Sense flags: Blk 0 (not valid) cmd finished after 0.044s timeout 40s" and finally the whole thing collapses....... "Linux sg driver version: 3.1.24 cdrecord: Warning: using inofficial libscg transport code version (okir@suse.de-scsi-linux-sg.c-1.75-resmgr-patch '@(#)scsi-linux-sg.c 1.75 02/10/21 Copyright 1997 J. Schilling'). cdrecord: Input/output error. write_g1: scsi sendcmd: no error CDB: 2A 00 00 01 03 A0 00 00 1F 00 status: 0x2 (CHECK CONDITION)" the whole of the log file with errors is attached. Can anyone give an explanation of how to sort this out ? Thanks Richard www.sheflug.co.uk
![](https://seccdn.libravatar.org/avatar/4bfbbf7d8881ddc5e1d9dccdc2945c36.jpg?s=120&d=mm&r=g)
On Wednesday 11 June 2003 15:41, Richard Ibbotson wrote:
Hi
For some time now I've been backing up my own data to CDs with a CD-Recorder. To do this I've got a cron job which runs a script which creates an ISO image and drops it onto a recordable CD.....
rsync -a /home/mydocuments/ /home/mybackup/ > /dev/null 2>&1 mkdir -p /tmp/backup export FILE=backup-`date +%Y%m%d`.tgz tar -cz /home/mybackup > /tmp/backup/$FILE mkisofs -r -J -o /tmp/backup.iso /tmp/backup # cdrecord -v speed=2 dev=0,1,0 blank=fast cdrecord -v speed=2 dev=0,1,0 -data /tmp/backup.iso rm -rf /tmp/backup /tmp/backup.iso (snip other useful info)
Richard www.sheflug.co.uk ===============
Richard, It might be explained by the fact that the new cdrecord program included with your 8.2 does not need "scsi" emulation now with an IDE cdrw drive. I suspect that is the reason it might be failing you. You could probably use cdrdao to do the burn instead if you want to remain under scsi emulation of your drive. The older cdrecord (1.xx) needed the emulation but the new version (2.xx) does not. Patrick -- --- KMail v1.5.2 --- SuSE Linux Pro v8.2 --- Registered Linux User #225206 On any other day, that might seem strange...
![](https://seccdn.libravatar.org/avatar/27baa448681c4a5c26d14d8f44fbe635.jpg?s=120&d=mm&r=g)
On Wed, 11 Jun 2003 20:41:41 +0100 (BST) Richard Ibbotson <richard@sheflug.co.uk> wrote:
For some time now I've been backing up my own data to CDs with a CD-Recorder. To do this I've got a cron job which runs a script which creates an ISO image and drops it onto a recordable CD.....
rsync -a /home/mydocuments/ /home/mybackup/ > /dev/null 2>&1 mkdir -p /tmp/backup export FILE=backup-`date +%Y%m%d`.tgz tar -cz /home/mybackup > /tmp/backup/$FILE mkisofs -r -J -o /tmp/backup.iso /tmp/backup # cdrecord -v speed=2 dev=0,1,0 blank=fast cdrecord -v speed=2 dev=0,1,0 -data /tmp/backup.iso rm -rf /tmp/backup /tmp/backup.iso
From your error log: Cdrecord 2.0 (i686-suse-linux) Copyright (C) 1995-2002 Jörg Schilling TOC Type: 1 = CD-ROM scsidev: '0,0,0' scsibus: 0 target: 0 lun: 0
But in your script, you are assigning dev=0,1,0 I don't know if that would cause that problem, but it isn't right. Also, have you tried to use ide-scsi? Are you declaring /dev/hdc=ide-scsi (or whatever) in your grub or lilo conf? -- use Perl; #powerful programmable prestidigitation
![](https://seccdn.libravatar.org/avatar/1c33768964f41d8a39c5cdff32c6ba7d.jpg?s=120&d=mm&r=g)
Hi
But in your script, you are assigning dev=0,1,0 I don't know if that would cause that problem, but it isn't right.
No. Not an issue. This works fine.
Also, have you tried to use ide-scsi? Are you declaring /dev/hdc=ide-scsi (or whatever) in your grub or lilo conf?
Yes. Done that as well :) Richard www.sheflug.co.uk
participants (4)
-
BandiPat
-
Fred A. Miller
-
Richard Ibbotson
-
zentara