You are not logged in.

#1 2012-12-24 15:35:23

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

cant rip CD with abcde

I cant seem to rip an audio CD with abcde, I have always been able to, I think the last time I tired was before the systemd switch, I know get:

cd-discid: /dev/cdrom: open: Permission denied
[ERROR] abcde: CD could not be read. Perhaps there's no CD in the drive?

as a normal user.

with sudo I get:

cd-discid: /dev/cdrom: CDROMREADTOCENTRY: Input/output error
cd-discid: /dev/cdrom: CDROMREADTOCENTRY: Input/output error
cd-discid: /dev/cdrom: CDROMREADTOCENTRY: Input/output error
cd-discid: /dev/cdrom: CDROMREADTOCENTRY: Input/output error
[WARNING] something went wrong while querying the CD... Maybe a DATA CD?
[INFO] The disc does not contain any tracks. Giving up...

I have not changed any abcde settings since it last worked, any ideas?

*EDIT

here is dmesg:

[   87.993415] sr0: CDROM (ioctl) error, command: cdb[0]=0x52 52 01 00 00 00 0c 00 00 20 00
[   87.993550] sr: Sense Key : 0x4 [current] 
[   87.993554] sr: ASC=0x8 ASCQ=0x2
[   87.998265] sr0: unsupported sector size 67585.

I have tried many different, official audio CD's, even one that I know worked before.

Last edited by jrussell (2012-12-24 15:36:47)


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#2 2012-12-25 21:26:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: cant rip CD with abcde

I fixed it by adding myself to 'optical' group

# usermod -a -G optical <your_login>

and rebooting. It didn't work after just relogging, even though the output of 'groups' showed I'm now a member of the 'optical' group.

Offline

#3 2012-12-26 00:24:23

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: cant rip CD with abcde

I thought that was supposed to be unnecessary with systemd? (And could even cause problems?)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2012-12-26 00:31:55

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: cant rip CD with abcde

@cfr, I think this:

# optical drives
SUBSYSTEM=="block", ENV{ID_CDROM}=="1", TAG+="uaccess"
SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", TAG+="uaccess"

is supposed to give you access... but I am unsure how the ENV{ID_CDROM} thing works.  I wonder if you simply made a rule like

SUBSYSTEM=="block", KERNEL=="sr*", TAG+="uaccess"

if that would also solve this issue.

Offline

#5 2012-12-26 14:13:48

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: cant rip CD with abcde

It works on a different PC sad with no udev rules, also arch 64 bit

*EDIT ok it just started working again with:

sudo abcde

on the computer it previously did not want to work on, but it wont run without 'sudo'.

So, on computer A, at first I was not able to rip at all,
Then I put the drive into computer B, and was able to rip as a not root user made like this:

useradd -m -g users -G wheel,storage,power -s /bin/zsh jason

I then put the drive back into compter A, and was not able to rip as a user, only as root.
How can this be? the groups are identical apart from my user on A being in an extra custom group.

#Computer B:
jason@jason-pc ~ % groups jason
wheel storage power users

#Computer A:
admin@russell-server ~ % groups admin
wheel storage power things users

admin@russell-server ~ % abcde
cd-discid: /dev/cdrom: open: Permission denied
[ERROR] abcde: CD could not be read. Perhaps there's no CD in the drive?
admin@russell-server ~ % 

Last edited by jrussell (2012-12-26 14:27:46)


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#6 2012-12-26 20:26:45

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: cant rip CD with abcde

Any differences in the sudoers file? Are the machines both running current Arch? Is there a config for abcde which might differ?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2012-12-27 05:07:23

felixculpa
Member
From: Alberta, Canada
Registered: 2012-06-12
Posts: 270

Re: cant rip CD with abcde

cfr wrote:

I thought that was supposed to be unnecessary with systemd? (And could even cause problems?)

This was my thought. If it was me I would remove and delete all groups except wheel and users (my current setup) as systemd should handle the rest, then try run 'abcde' again.

Offline

Board footer

Powered by FluxBB