LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-08-2008, 02:04 PM   #1
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
Burning CD's as a user


Hello,

I am trying to figure out how to burn a CD as a regular user. I am a member of the cdrom group (I needed to put myself in that group to listen to audio CD's) - I can listen to audio CD's and mount data CD's.

When I go to burn and I search for the drive:

Code:
% cdrecord -scanbus
I get:

Code:
Cdrecord-ProDVD-Clone 2.01.01a23 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.21.5-smp
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
Linux sg driver version: 3.5.27
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

I need to su into root to be able to read the drive(s) and burn a CD.

Code:
# cdrecord -scanbus

Cdrecord-ProDVD-Clone 2.01.01a23 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.21.5-smp
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.9'.
scsibus2:
        2,0,0   200) 'ATA     ' 'WDC WD1600JS-60N' '10.0' Disk
        2,1,0   201) *
        2,2,0   202) *
        2,3,0   203) *
        2,4,0   204) *
        2,5,0   205) *
        2,6,0   206) *
        2,7,0   207) *
scsibus6:
        6,0,0   600) 'Generic ' 'USB SD Reader   ' '1.00' Removable Disk
        6,1,0   601) *
        6,2,0   602) *
        6,3,0   603) *
        6,4,0   604) *
        6,5,0   605) *
        6,6,0   606) *
        6,7,0   607) *
scsibus7:
        7,0,0   700) 'HP      ' 'Photosmart C6180' '1.00' Removable Disk
        7,1,0   701) *
        7,2,0   702) *
        7,3,0   703) *
        7,4,0   704) *
        7,5,0   705) *
        7,6,0   706) *
        7,7,0   707) *
scsibus1001:
        1001,0,0 100100) 'TSSTcorp' 'CD/DVDW TS-H652M' '0414' Removable CD-ROM
        1001,1,0 100101) *
        1001,2,0 100102) *
        1001,3,0 100103) *
        1001,4,0 100104) *
        1001,5,0 100105) *
        1001,6,0 100106) *
        1001,7,0 100107) *

Is there a way I can do this as user.

Oh, and here is my fstab entry for cdrom:

Code:
/dev/cdrom   /mnt/cdrom   auto   noauto,user,ro   0 0
 
Old 03-08-2008, 03:36 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
/dev/cdrom /mnt/cdrom auto noauto,user,ro 0 0
According to this, you can only read cds, not write them. Change ro to rw, then try again.
ro means read only.
rw means read/write.
 
Old 03-08-2008, 04:57 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That actually won't help him, he needs to modify the perms on
the SCSI raw-device. Best done from the udev-rules. (/etc/udev/rules.d)

Or maybe, with a little luck (I think he's lucky) he can just add
himself to the GROUP that owns the raw device, log out and back in
and live happily ever after.... :}



Cheers,
Tink
 
Old 03-08-2008, 06:15 PM   #4
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

Quote:
Originally Posted by Tinkster View Post
That actually won't help him, he needs to modify the perms on
the SCSI raw-device. Best done from the udev-rules. (/etc/udev/rules.d)

Or maybe, with a little luck (I think he's lucky) he can just add
himself to the GROUP that owns the raw device, log out and back in
and live happily ever after.... :}



Cheers,
Tink
Which GROUP is that? I am a member of GROUP CDROM - I didn't know there was another GROUP for the device.
 
Old 03-08-2008, 06:20 PM   #5
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

Also, when thinking of solutions we need to keep this in mind - I only burn CD's/DVD's once in a while - when a new version of the OS comes out or like today when I needed to create an MP3 CD to hold an hour and forty minutes of music without using two discs.

Almost all the other time, I transfer data via other methods - primarily USB jumb drives and ftp.


So a solution for me may be different than a solution for someone who burns 10 CD's a day. If a solution for my rare usage is just do it as root, then so be it - but if there is another avenue, let's explore it.
 
Old 03-08-2008, 06:21 PM   #6
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

Quote:
Originally Posted by bigrigdriver View Post
According to this, you can only read cds, not write them. Change ro to rw, then try again.
ro means read only.
rw means read/write.
If that were the cause, wouldn't it impede root from burning discs, too?

I did wonder about that, that is why I posted it, but thinking about it, it should impede root if that is the root cause (pun unintended).
 
Old 03-08-2008, 06:24 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Which GROUP is that? I am a member of GROUP CDROM - I didn't know there was another GROUP for the device.
I don't know what group owns the sg* on your machine, my
friend. Try an ls -l /dev/sg*


Cheers,
Tink
 
Old 03-08-2008, 07:11 PM   #8
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

Quote:
Originally Posted by Tinkster View Post
I don't know what group owns the sg* on your machine, my
friend. Try an ls -l /dev/sg*


Cheers,
Tink
It says that root is the owner and the group.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Burning cd's? riwaJR Debian 3 04-04-2006 09:02 AM
burning cd's mortal *BSD 2 11-17-2004 07:29 PM
burning cd's one Slackware 8 07-22-2003 10:53 AM
burning RH cd's. Are they encrypted? zLinuxz Linux - General 18 10-08-2002 11:30 PM
Burning RH 7.3 CD's matsprt Linux - Distributions 7 05-26-2002 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:57 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration