Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Should I now be root to burn CDs?????

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

Should I now be root to burn CDs?????

  • Quote

Post by VinzC » Thu Jul 21, 2005 7:18 pm

Until not so long ago I could burn CDs and CDRWs as a normal user - my user account was in group cdrw and everything was fine. There has been a recent update and I think UDEV rules have changed - this is the only thing I can figure out that could have caused my problem. Now I can't burn but with root. Moving from group cdrw to disk didn't fix anything. This is very - and I know I'm speaking for a whole bunch of users - frustrating.

Code: Select all

$ ls -l /dev/cdrw
lrwxrwxrwx  1 root root 3 Jul 21 13:16 /dev/cdrw -> sr0

Code: Select all

$ ls -l /dev/sr0
brw-rw----  1 root disk 11, 0 Jul 21 13:16 /dev/sr0

Code: Select all

$ cdrecord -scanbus dev=/dev/sg0
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.12-rc5-suspend2
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: '/dev/sg0'
devname: '/dev/sg0'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
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 have a Dell Inspiron 6000 with SATA controller. Hard disk is /dev/sda, CD-RW is /dev/sr0. I'm not a UDEV guru; thanks for any suggestion.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
bkunlimited
l33t
l33t
Posts: 672
Joined: Fri Jun 18, 2004 6:50 am

  • Quote

Post by bkunlimited » Fri Jul 22, 2005 7:43 am

you have to be in cdrom group to burn cds as normal user
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Fri Jul 22, 2005 9:15 am

bkunlimited wrote:you have to be in cdrom group to burn cds as normal user
Why (did they) change that group? Before that, it was quite logical: cdrw. It makes no sense to burn a CD with a CDROM but with a CD writer. But well, I'll try that.

EDIT: I was already part of the cdrom group...

Code: Select all

$ id
uid=... gid=100(users) groups=100(users),10(wheel),18(audio),19(cdrom),27(video),35(games),80(cdrw),250(portage),407(wine)
Last edited by VinzC on Fri Jul 22, 2005 3:17 pm, edited 1 time in total.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
dsd
Developer
Developer
Posts: 2162
Joined: Sun Mar 30, 2003 10:54 am
Location: nr London

  • Quote

Post by dsd » Fri Jul 22, 2005 10:01 am

$ cdrecord -scanbus dev=/dev/sg0
CD-RW is /dev/sr0
spotted the mistake? :)
http://dev.gentoo.org/~dsd
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Fri Jul 22, 2005 12:00 pm

dsd wrote:
$ cdrecord -scanbus dev=/dev/sg0
CD-RW is /dev/sr0
spotted the mistake? :)
Yes I did - this is just a typo for I do get the same error message wether using /dev/sg0 or /dev/sr0. Anyway I get an error from whatever CD burning application I use: nautilus-cd-burner or xcdroast.

Code: Select all

$ cdrecord -scanbus -dev=/dev/sr0
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.12-rc5-suspend2
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: '/dev/sr0'
devname: '/dev/sr0'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
cdrecord: Permission denied. Cannot open '/dev/sr0'. 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'.
The only way I found was to sgid cdrecord:

Code: Select all

# chmod g+s /usr/bin/cdrecord

Code: Select all

$ cdrecord -scanbus -dev=/dev/sr0
Password:
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.12-rc5-suspend2
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: '/dev/sr0'
devname: '/dev/sr0'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
scsibus1:
        1,0,0   100) 'HL-DT-ST' 'RW/DVD GCC-4243N' 'A102' Removable CD-ROM
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Fri Jul 22, 2005 3:22 pm

What I find pretty ... annoying is that once you have to be in the burning group, then in the cdrw group now in the cdrom group - but wait it's not enough. C'mon! can't "they" fix a group for good? If I had to vote, I'd love to stay in cdrw or even burning, which is more general.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
farceb
n00b
n00b
Posts: 4
Joined: Wed May 11, 2005 3:27 pm

It's about permissions

  • Quote

Post by farceb » Fri Jul 22, 2005 10:13 pm

Man, yesterday I couldn't burn my iso images to CD's.
Today I checked out that the problem was in /usr/bin/cdrecord permission, I changed that following the params in HOWTO_ATAPI_CD_Burning http://gentoo-wiki.com/HOWTO_ATAPI_CD_B ... ermissions and my isos where burned again
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

Re: It's about permissions

  • Quote

Post by VinzC » Fri Jul 22, 2005 11:46 pm

farceb wrote:Man, yesterday I couldn't burn my iso images to CD's.
Today I checked out that the problem was in /usr/bin/cdrecord permission, I changed that following the params in HOWTO_ATAPI_CD_Burning http://gentoo-wiki.com/HOWTO_ATAPI_CD_B ... ermissions and my isos where burned again

Code: Select all

$ id
... gid=100(users) groups=10(wheel),18(audio),19(cdrom),27(video),35(games),80(cdrw),100(users),250(portage),407(wine),410(burning)

Code: Select all

$ ls -l /usr/bin/cdr*
-rwxr-x---  1 root burning 702061 Jul 23 01:22 /usr/bin/cdrdao
-rwxr-x---  1 root burning 366116 Jul 21 19:15 /usr/bin/cdrecord

Code: Select all

$ cdrecord -scanbus dev=1,0,0
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.12-rc5-suspend2
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
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'.
When trying to burn a CD with Nautilus Cd Burner:

Code: Select all

cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
scsibus: 1 target: 0 lun: 0
scsidev: '1,0,0'
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: Warning: Running on Linux-2.6.12-rc5-suspend2
cdrecord: Continuing in 5 seconds...
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Asuming -tao mode.
cdrecord: No write mode specified.
EDIT: and yes, it's again /dev/sg0...

Code: Select all

$ sudo cdrecord -scanbus
Password:
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.12-rc5-suspend2
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.33
Using libscg version 'schily-0.8'.
scsibus0:
        0,0,0     0) 'ATA     ' 'HTS548060M9AT00 ' 'MGBO' Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) 'HL-DT-ST' 'RW/DVD GCC-4243N' 'A102' Removable CD-ROM
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *
So you see 1,0,0 should be my CD writer, NOT the hard disk!
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
dsd
Developer
Developer
Posts: 2162
Joined: Sun Mar 30, 2003 10:54 am
Location: nr London

  • Quote

Post by dsd » Sat Jul 23, 2005 12:02 am

you have to specify a dev=, and you have to use a device node rather than x,y,z or ATA or ATAPI notation. on recent 2.6 kernels, it simply wont work otherwise. and, your software (e.g. nautilus) has to also act in the correct way.

ignore the error about it trying to open /dev/sg0. it tries that sometimes (required for the other device transports), but will never do so if you specify dev=/a/device/node
http://dev.gentoo.org/~dsd
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Sat Jul 23, 2005 12:12 am

dsd wrote:you have to specify a dev=, and you have to use a device node rather than x,y,z or ATA or ATAPI notation. on recent 2.6 kernels, it simply wont work otherwise. and, your software (e.g. nautilus) has to also act in the correct way.

ignore the error about it trying to open /dev/sg0. it tries that sometimes (required for the other device transports), but will never do so if you specify dev=/a/device/node
I can believe you but
1. all these instructions work with root
2. I've also tried cdrecord -scanbus dev=/dev/sr0 (like above) and it doesn't work either.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Mon Jul 25, 2005 10:57 pm

Will I have to live with it? or is there a fix - other than chmod g+s /usr/bin/cdrecord?
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Wed Jul 27, 2005 10:04 am

VinzC wrote:Will I have to live with it?
Apparently... yes.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
Post Reply

12 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy