LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 01-07-2005, 10:34 PM   #1
CooManChu
Member
 
Registered: Dec 2004
Location: Chicago, IL
Distribution: Ubuntu 10
Posts: 46

Rep: Reputation: 15
Question CD-R Drive to CD-RW Drive Direct Copy


Hi - I've just added a CD-RW to my system and have copied data CD's by creating an image of the file system of the CD in the CD-R with mkisofs. Then I write the image to my CD-RW drive using cdrecord.

Since I have two CD drives (a CD-R and a CD-RW), I was wondering if there was a way to simply copy from the CD-R drive directly to the CD-RW drive without the intermediate step of copying the image down to disk first.

Thanks alot,

Scott
 
Old 01-07-2005, 10:58 PM   #2
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 46
xcdroast
gnome baker
 
Old 01-07-2005, 10:59 PM   #3
jgombos
Member
 
Registered: Jul 2003
Posts: 256

Rep: Reputation: 32
Although I have no experience with this, someone once told me that you can burn a CD in linux simply by sending the information to the device. So I would try something like:

dd if=/dev/<source cd device> of=/dev/<destination cd device> bs=1

It's worth a shot. Nothing needs to be mounted for that. Obviously you have to replace everything in angle brackets with the real device names. I'm not sure if the bs=1 is necessary. Please report back if it works-- I'm curious.
 
Old 01-07-2005, 10:59 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 53
Something like this where my cdwriter is dev=0,0,0 . You can get that info by typing the command:
cdrecord -scanbus

Burn from disk to disk: cdrecord -v speed=4 dev=0,0,0 -isosize /dev/cdrom
 
Old 01-07-2005, 11:10 PM   #5
CooManChu
Member
 
Registered: Dec 2004
Location: Chicago, IL
Distribution: Ubuntu 10
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for the replies.

I think the last one will work fine once I get the hang of it, but cdrecord wants exclusive control of the SCSI device with the source CD in it:

# cdrecord -v speed=2 -data -isosize /dev/cdrom
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '1,5,0'
scsibus: 1 target: 5 lun: 0
Linux sg driver version: 3.1.24
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.

Also, not a big deal, but I can't use the cdrecord command unless I'm root. Can this command be opened up to other users?

Thanks again,

Scott
 
Old 01-07-2005, 11:17 PM   #6
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 46
Just curious too. If using cdrecord command possible to write images on DVD?
Let's say I have DVD.ISO of 3.5GB and I with to write it on my DVD-RW Optorite
Code:
root@Slackware:/home/slackerlx# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
scsibus0:
        0,0,0     0) 'PHILIPS ' 'CDRW5224        ' 'P1.4' Removable CD-ROM
        0,1,0     1) 'OPTORITE' 'DVD RW DD0401   ' '150E' Removable CD-ROM
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
root@Slackware:/home/slackerlx#
 
Old 01-07-2005, 11:20 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 53
Did you put a scsi statement in the kernel line of the grub.conf something like this...
kernel /boot/vmlinuz root=/dev/hda2 hdc=ide-scsi

The user rights part would be controlled in the /etc/fstab I think.

Edit: that was to the original poster.

I don't have a dvd recorder to try it with but I think cdrecord works for dvd also. The new kernel and cdrecord doesn't use that scsi line in the grub.conf and the devices are called differently. Instead of dev=0,0,0 it would be something like dev=ATA:1,0,0

Last edited by homey; 01-07-2005 at 11:25 PM.
 
Old 01-07-2005, 11:25 PM   #8
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 46
To homey.
Absolutely! I use kernel 2.4 And I'm able to write regular CDs up to 90min. But on DVDs cdrecord issues error of "cannot change the speed" and fails
 
Old 01-07-2005, 11:31 PM   #9
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 46
Homey and before you ask I do practicly everything by the book


This is the section of "dmesg" configuring writers:

scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: PHILIPS Model: CDRW5224 Rev: P1.4
Type: CD-ROM ANSI SCSI revision: 02
Vendor: OPTORITE Model: DVD RW DD0401 Rev: 150E
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 52x/52x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray

And in my fstab the writers are set this way

/dev/sr0 /mnt/CD-RW iso9660 noauto,users,ro 0 0
/dev/sr1 /mnt/DVD-RW iso9660 noauto,users,ro, 0 0
 
Old 01-07-2005, 11:33 PM   #10
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 53
I just ran the command: whereis dvdrecord and it came back as
dvdrecord: /usr/bin/dvdrecord /usr/share/man/man1/dvdrecord.1.gz

I also looked in synaptic and there is an entry for dvd +rw-tools which I do have installed.
It could be you would have better luck with dvdrecord. It does respond to the command:
dvdrecord -scanbus so just maybe.....
 
Old 01-07-2005, 11:33 PM   #11
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 46
Wuold it be wise to change the type maybe from iso9660 to udf
 
Old 01-07-2005, 11:47 PM   #12
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 53
Quote:
Wuold it be wise to change the type maybe from iso9660 to udf
I don't know. My dvd thingy only reads and FC3 uses a different syntax altogether. My best guess is to try it as iso9660 and dvdrecord to see what happens.

Woo-hoo! I just hit 1000 and graduated to senior member.

Last edited by homey; 01-07-2005 at 11:48 PM.
 
Old 01-07-2005, 11:50 PM   #13
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 46
Strange! I'm absolutely convinced that I have dvd+rw tools installed, yet:
Code:
slackerlx@Slackware:~$ su
Password:
root@Slackware:/home/slackerlx# dvdrecord -scanbus
bash: dvdrecord: command not found
root@Slackware:/home/slackerlx#
 
Old 01-07-2005, 11:57 PM   #14
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 53
Try the su command with a dash su - as that sometimes gives better results.
 
Old 01-08-2005, 12:01 AM   #15
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 46
Negative, captain!
Code:
root@Slackware:~# dvdrecord -scanbus
-su: dvdrecord: command not found
root@Slackware:~#
And I checked the repository. My dvd+rw-tools is up to date
Code:
root@Slackware:/home/slackerlx# slapt-get -install dvd+rw-tools
Reading Package Lists... Done
dvd+rw-tools is up to date.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done
root@Slackware:/home/slackerlx#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drive to Drive Copy lunarcloud_88 Linux - General 28 11-16-2006 08:33 AM
Easiest way to copy a boot drive to a new hard drive lsgko Linux - Software 3 05-24-2005 09:38 PM
How to copy ext2fs from failed hard drive to good drive? DogWalker Linux - Hardware 2 08-30-2004 10:52 PM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 12:40 PM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 10:27 AM


All times are GMT -5. The time now is 06:45 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration