thomasvs / morituri

For those about to RIP - a Unix CD ripper preferring accuracy over speed
GNU General Public License v3.0
301 stars 42 forks source link

/dev/sr0 vs. /dev/bsg:0:0:0:0 #51

Closed lutzbickhardt closed 10 years ago

lutzbickhardt commented 10 years ago

this is driving me crazy! on all older kernels I have here my USB-CD-drive is /dev/srX. on a newer kernel 3.8 (Ubuntu and Debian) it evaluates as /dev/bsg/0:0:0:0

I cannot make morituri run with: rip offset find -d /dev/bsg/0:0:0:0

some output:

$ dmesg [ 45.901224] usb usb1: usb wakeup-resume [ 45.901284] usb usb1: usb auto-resume [ 45.901313] hub 1-0:1.0: hub_resume [ 45.901371] hub 1-0:1.0: port 1: status 0101 change 0001 [ 46.004052] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000 [ 46.004116] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s [ 46.109486] usb 1-1: new high-speed USB device number 2 using musb-hdrc [ 46.229131] usb 1-1: default language 0x0409 [ 46.229587] usb 1-1: udev 2, busnum 1, minor = 1 [ 46.229607] usb 1-1: New USB device found, idVendor=14cd, idProduct=6600 [ 46.229623] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=2 [ 46.229638] usb 1-1: Product: USB 2.0 IDE DEVICE
[ 46.229651] usb 1-1: Manufacturer: Super Top [ 46.229665] usb 1-1: SerialNumber: \xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0 [ 46.230354] usb 1-1: usb_probe_device [ 46.230381] usb 1-1: configuration #1 chosen from 1 choice [ 46.234147] usb 1-1: adding 1-1:1.0 (config #1, interface 0) [ 46.234652] usb-storage 1-1:1.0: usb_probe_interface [ 46.234689] usb-storage 1-1:1.0: usb_probe_interface - got id [ 46.238627] usb-storage 1-1:1.0: Quirks match for vid 14cd pid 6600: 20 [ 46.240131] scsi0 : usb-storage 1-1:1.0 [ 46.241224] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002 [ 46.241293] hub 1-0:1.0: port 1 enable change, status 00000503 [ 47.246064] scsi 0:0:0:0: CD-ROM TEAC CD-224E H.9A PQ: 0 ANSI: 0

ubuntu@ubuntu-armhf:~$ lsusb Bus 001 Device 002: ID 14cd:6600 Super Top USB 2.0 IDE DEVICE Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ubuntu@ubuntu-armhf:~$ sudo lshw -short

H/W path Device Class Description

              system     TI AM335x BeagleBone

/0 bus Motherboard /0/0 processor cpu /0/1 memory 242MiB System memory /1 scsi0 storage
/2 eth0 network Ethernet interface ubuntu@ubuntu-armhf:~$ ls /dev/bsg/ 0:0:0:0

ubuntu@ubuntu-armhf:~$ sudo rip offset find -d /dev/bsg/0:0:0:0 Checking device /dev/bsg/0:0:0:0 eject: CD-ROM tray close command failed: Inappropriate ioctl for device rip: error: cannot read CD from drive. cdrdao says: /dev/bsg/0:0:0:0: SCSI command Inquiry (0x12) failed: Invalid argument. Inquiry command failed on "/dev/bsg/0:0:0:0" Inquiry failed and no driver id is specified. Please use option --driver to specify a driver id. Cannot setup device /dev/bsg/0:0:0:0.

ubuntu@ubuntu-armhf:~$ sudo sg_start --stop --eject /dev/bsg/0:0:0:0 start stop unit: Fixed format, current; Sense key: Unit Attention Additional sense: Not ready to ready change, medium may have changed unit attention START STOP UNIT command failed

ubuntu@ubuntu-armhf:~$ ls /dev/sr ls: cannot access /dev/sr: No such file or directory

Do I use wrong syntax, or is /dev/bsg/* not supported yet? Pls. help!

thomasvs commented 10 years ago

None of your output is from morituri.

1) what is actually failing when you run morituri ? 2) which command is it running when it is failing ? Check with RIP_DEBUG=5 3) can you make that particular command work outside of morituri with your drive ?

lutzbickhardt commented 10 years ago

Hi

It is probably more of a Unix problem than a Morituri problem; anyway:

ubuntu@ubuntu-armhf:~$ ls /dev/bsg/ 0:0:0:0

ubuntu@ubuntu-armhf:~$ dmesg ... [ 3234.800584] usb 1-1: Product: USB 2.0 IDE DEVICE [ 3234.800619] usb 1-1: Manufacturer: Super Top [ 3234.800654] usb 1-1: SerialNumber: \xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0 [ 3234.805055] usb 1-1: usb_probe_device [ 3234.805121] usb 1-1: configuration #1 chosen from 1 choice [ 3234.805353] usb 1-1: adding 1-1:1.0 (config #1, interface 0) [ 3234.805974] usb-storage 1-1:1.0: usb_probe_interface [ 3234.806049] usb-storage 1-1:1.0: usb_probe_interface - got id [ 3234.812901] usb-storage 1-1:1.0: Quirks match for vid 14cd pid 6600: 20 [ 3234.814779] scsi0 : usb-storage 1-1:1.0 [ 3234.817048] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002 [ 3234.817168] hub 1-0:1.0: port 1 enable change, status 00000503 [ 3235.821156] scsi 0:0:0:0: CD-ROM TEAC CD-224E 1.9A PQ: 0 ANSI: 0

ubuntu@ubuntu-armhf:~$ eject /dev/bsg/0:0:0:0 eject: unable to open `/dev/bsg/0:0:0:0'

ubuntu@ubuntu-armhf:~$ sudo mount /dev/bsg/0:0:0:0 mount: /dev/bsg/0:0:0:0 is not a block device

ubuntu@ubuntu-armhf:~$ RIP_DEBUG=5 rip cd offset -d /dev/bsg/0:0:0:0 DEBUG [ 951] morituri Nov 17 22:13:17 This is morituri version 0.2.2.1 (v0.2.2-46-g1c47a42) (morituri/rip/main.py:103) DEBUG [ 951] morituri Nov 17 22:13:17 rip cd offset -d /dev/bsg/0:0:0:0 (morituri/rip/main.py:122) DEBUG [ 951] "rip" rip Nov 17 22:13:17 calling <morituri.rip.main.Rip object at 0x522a90>.parse_args(['cd', 'offset', '-d', '/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 951] "rip" rip Nov 17 22:13:17 called <morituri.rip.main.Rip object at 0x522a90>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 951] "rip" rip Nov 17 22:13:17 calling <morituri.rip.main.Rip object at 0x522a90>.handleOptions(<Values at 0x555b70: {'record': None, 'version': None}>) (morituri/extern/command/command.py:324) INFO [ 951] default Nov 17 22:13:17 Not using XDG, configuration file is /home/ubuntu/.moriturirc (morituri/common/directory.py:38) INFO [ 951] default Nov 17 22:13:17 Loaded 0 sections from config file (morituri/common/config.py:55) DEBUG [ 951] "rip" rip Nov 17 22:13:17 called <morituri.rip.main.Rip object at 0x522a90>.handleOptions, returned None (morituri/extern/command/command.py:326) DEBUG [ 951] "cd" cd Nov 17 22:13:17 calling <morituri.rip.cd.CD object at 0x522fd0>.parse_args(['offset', '-d', '/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 951] "cd" cd Nov 17 22:13:17 called <morituri.rip.cd.CD object at 0x522fd0>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 951] "cd" cd Nov 17 22:13:17 calling <morituri.rip.cd.CD object at 0x522fd0>.handleOptions(<Values at 0x555c60: {'device': None}>) (morituri/extern/command/command.py:324) ERROR [ 951] "cd" cd Nov 17 22:13:17 No CD-DA drives found! (morituri/rip/cd.py:538) No CD-DA drives found!

I got no idea what is wrong! Maybe you do...?

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. L?opold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe ? Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)


De : thomasvs notifications@github.com Envoy? : dimanche 17 novembre 2013 04:48 ? : thomasvs/morituri Cc : Bickhardt, Lutz Objet : Re: [morituri] /dev/sr0 vs. /dev/bsg:0:0:0:0 (#51)

None of your output is from morituri.

1) what is actually failing when you run morituri ? 2) which command is it running when it is failing ? Check with RIP_DEBUG=5 3) can you make that particular command work outside of morituri with your drive ?

Reply to this email directly or view it on GitHubhttps://github.com/thomasvs/morituri/issues/51#issuecomment-28641923.

lutzbickhardt commented 10 years ago

Sorry, forget my last mail: I got the command wrong! Here it is:

RIP_DEBUG=5 rip offset find --device=/dev/bsg/0:0:0:0 DEBUG [ 665] morituri Nov 17 22:50:34 This is morituri version 0.2.2.1 (v0.2.2-46-g1c47a42) (morituri/rip/main.py:103) DEBUG [ 665] morituri Nov 17 22:50:34 rip offset find --device=/dev/bsg/0:0:0:0 (morituri/rip/main.py:122) DEBUG [ 665] "rip" rip Nov 17 22:50:34 calling <morituri.rip.main.Rip object at 0x462ab0>.parse_args(['offset', 'find', '--device=/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 665] "rip" rip Nov 17 22:50:34 called <morituri.rip.main.Rip object at 0x462ab0>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 665] "rip" rip Nov 17 22:50:34 calling <morituri.rip.main.Rip object at 0x462ab0>.handleOptions(<Values at 0x494b20: {'record': None, 'version': None}>) (morituri/extern/command/command.py:324) INFO [ 665] default Nov 17 22:50:34 Not using XDG, configuration file is /home/ubuntu/.moriturirc (morituri/common/directory.py:38) INFO [ 665] default Nov 17 22:50:34 Loaded 0 sections from config file (morituri/common/config.py:55) DEBUG [ 665] "rip" rip Nov 17 22:50:34 called <morituri.rip.main.Rip object at 0x462ab0>.handleOptions, returned None (morituri/extern/command/command.py:326) DEBUG [ 665] "offset" offset Nov 17 22:50:34 calling <morituri.rip.offset.Offset object at 0x476bf0>.parse_args(['find', '--device=/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 665] "offset" offset Nov 17 22:50:34 called <morituri.rip.offset.Offset object at 0x476bf0>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 665] "offset" offset Nov 17 22:50:34 calling <morituri.rip.offset.Offset object at 0x476bf0>.handleOptions(<Values at 0x494c10: {}>) (morituri/extern/command/command.py:324) DEBUG [ 665] "offset" offset Nov 17 22:50:34 called <morituri.rip.offset.Offset object at 0x476bf0>.handleOptions, returned None (morituri/extern/command/command.py:326) DEBUG [ 665] "find" find Nov 17 22:50:34 calling <morituri.rip.offset.Find object at 0x476cb0>.parse_args(['--device=/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 665] "find" find Nov 17 22:50:35 called <morituri.rip.offset.Find object at 0x476cb0>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 665] "find" find Nov 17 22:50:35 calling <morituri.rip.offset.Find object at 0x476cb0>.handleOptions(<Values at 0x494d50: {'device': '/dev/bsg/0:0:0:0', 'offsets': '+6, +48, +102, +667, +12, +30, +618, +594, +738, -472, +98, +116, +96, +733, +120, +691, +685, +97, +600, +690, +1292, +99, +676, +686, +1182, -24, +704, +572, +688, +91, +696, +103, -491, +689, +145, +708, +697, +564, +86, +679, +355, -496, -1164, +1160, +694, 0, -436, +79, +94, +684, +681, +106, +692, +943, +1194, +92, +117, +680, +682, +1268, +678, -582, +1473, +1279, -54, +1508, +740, +1272, +534, +976, +687, +675, +1303, +674, +1263, +108, +974, +122, +111, -489, +772, +732, -495, -494, +975, +935, +87, +668, +1776, +1364, +1336, +1127'}>) (morituri/extern/command/command.py:324) DEBUG [ 665] "find" find Nov 17 22:50:35 Trying with offsets 6, 48, 102, 667, 12, 30, 618, 594, 738, -472, 98, 116, 96, 733, 120, 691, 685, 97, 600, 690, 1292, 99, 676, 686, 1182, -24, 704, 572, 688, 91, 696, 103, -491, 689, 145, 708, 697, 564, 86, 679, 355, -496, -1164, 1160, 694, 0, -436, 79, 94, 684, 681, 106, 692, 943, 1194, 92, 117, 680, 682, 1268, 678, -582, 1473, 1279, -54, 1508, 740, 1272, 534, 976, 687, 675, 1303, 674, 1263, 108, 974, 122, 111, -489, 772, 732, -495, -494, 975, 935, 87, 668, 1776, 1364, 1336, 1127 DEBUG [ 665] "find" find Nov 17 22:50:35 called <morituri.rip.offset.Find object at 0x476cb0>.handleOptions, returned None (morituri/extern/command/command.py:326) DEBUG [ 665] "find" find Nov 17 22:50:35 no args or no subcommands, calling <morituri.rip.offset.Find object at 0x476cb0>.do([]) (morituri/extern/command/command.py:361) Checking device /dev/bsg/0:0:0:0 eject: unable to find or open device for: `/dev/bsg/0:0:0:0' DEBUG [ 665] default Nov 17 22:50:35 possibly unmount real path '/dev/bsg/0:0:0:0' (morituri/common/program.py:111) DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 creating DiscInfoTask for device '/dev/bsg/0:0:0:0' (morituri/program/cdrdao.py:293) DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 creating CDRDAOTask (morituri/program/cdrdao.py:256) DEBUG [ 665] default Nov 17 22:50:35 run task <morituri.program.cdrdao.ReadTOCTask object at 0x476eb0> (morituri/extern/task/task.py:466) DEBUG [ 665] default Nov 17 22:50:35 run loop (morituri/extern/task/task.py:478) DEBUG [ 665] default Nov 17 22:50:35 start task <morituri.program.cdrdao.ReadTOCTask object at 0x476eb0> (morituri/extern/task/task.py:496) DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 Adding listener <morituri.program.cdrdao.ReadTOCTask object at 0x476eb0> (morituri/extern/task/task.py:227) DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 Starting cdrdao with options 'disk-info', '--device', '/dev/bsg/0:0:0:0' DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 starting (morituri/extern/task/task.py:132) LOG [ 665] DiscInfoTask Nov 17 22:50:35 notifying progress: 0.0 on 'Scanning disc...' (morituri/extern/task/task.py:168) DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 Started ['cdrdao', 'disk-info', '--device', '/dev/bsg/0:0:0:0'] with pid 668 (morituri/common/task.py:55) LOG [ 665] default Nov 17 22:50:35 schedule: scheduling <bound method DiscInfoTask._read of <morituri.program.cdrdao.DiscInfoTask object at 0x476f10>>(_args=(<morituri.common.task.SyncRunner object at 0x476df0>,), _kwargs={}) (morituri/extern/task/task.py:520) LOG [ 665] default Nov 17 22:50:36 schedule: calling <bound method DiscInfoTask._read of <morituri.program.cdrdao.DiscInfoTask object at 0x476f10>>(_args=(<morituri.common.task.SyncRunner object at 0x476df0>,), _kwargs={}) (morituri/extern/task/task.py:510) LOG [ 665] DiscInfoTask Nov 17 22:50:36 read from stderr: Cdrdao version 1.2.3 - (C) Andreas Mueller andreas@daneb.de ERROR: Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory. ERROR: Please use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom ERROR: Cannot setup device /dev/bsg/0:0:0:0. (morituri/common/task.py:73) LOG [ 665] default Nov 17 22:50:36 received 314 bytes (morituri/program/cdrdao.py:89) LOG [ 665] default Nov 17 22:50:36 buffer has newline, splitting (morituri/program/cdrdao.py:94) LOG [ 665] default Nov 17 22:50:36 last line still in progress (morituri/program/cdrdao.py:98) LOG [ 665] default Nov 17 22:50:36 Parsing Cdrdao version 1.2.3 - (C) Andreas Mueller andreas@daneb.de (morituri/program/cdrdao.py:106) LOG [ 665] default Nov 17 22:50:36 Parsing ERROR: Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory. (morituri/program/cdrdao.py:106) LOG [ 665] default Nov 17 22:50:36 Parsing ERROR: Please use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom (morituri/program/cdrdao.py:106) LOG [ 665] default Nov 17 22:50:36 Parsing ERROR: Cannot setup device /dev/bsg/0:0:0:0. (morituri/program/cdrdao.py:106) LOG [ 665] default Nov 17 22:50:36 schedule: scheduling <bound method DiscInfoTask._read of <morituri.program.cdrdao.DiscInfoTask object at 0x476f10>>(_args=(<morituri.common.task.SyncRunner object at 0x476df0>,), _kwargs={}) (morituri/extern/task/task.py:520) LOG [ 665] default Nov 17 22:50:36 schedule: calling <bound method DiscInfoTask._read of <morituri.program.cdrdao.DiscInfoTask object at 0x476f10>>(_args=(<morituri.common.task.SyncRunner object at 0x476df0>,), _kwargs={}) (morituri/extern/task/task.py:510) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 Return code was 1 (morituri/common/task.py:101) LOG [ 665] DiscInfoTask Nov 17 22:50:36 notifying progress: 1.0 on 'Scanning disc...' (morituri/extern/task/task.py:168) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 exception during _read() (morituri/common/task.py:92) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 exception DeviceOpenException at morituri/program/cdrdao.py:270: failed(): Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory. Please use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom Cannot setup device /dev/bsg/0:0:0:0. (morituri/common/task.py:93) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 set exception, DeviceOpenException("Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory.\nPlease use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom\nCannot setup device /dev/bsg/0:0:0:0.",), "exception DeviceOpenException at /usr/local/lib/python2.7/site-packages/morituri/program/cdrdao.py:270: failed(): Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory.\nPlease use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom\nCannot setup device /dev/bsg/0:0:0:0." (morituri/extern/task/task.py:211) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 stopping (morituri/extern/task/task.py:150) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 reset runner to None (morituri/extern/task/task.py:156) DEBUG [ 665] default Nov 17 22:50:36 stopped task <morituri.program.cdrdao.ReadTOCTask object at 0x476eb0> (morituri/extern/task/task.py:556) DEBUG [ 665] default Nov 17 22:50:36 done running task <morituri.program.cdrdao.ReadTOCTask object at 0x476eb0> (morituri/extern/task/task.py:481) DEBUG [ 665] default Nov 17 22:50:36 raising TaskException for "exception DeviceOpenException at /usr/local/lib/python2.7/site-packages/morituri/program/cdrdao.py:270: failed(): Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory.\nPlease use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom\nCannot setup device /dev/bsg/0:0:0:0.", None (morituri/extern/task/task.py:486) rip: error: cannot read CD from drive. cdrdao says: Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory. Please use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom Cannot setup device /dev/bsg/0:0:0:0.

On a different Ubuntu system (with /dev/Sr0 and the same drive!) everything is fine: $ rip offset find -d /dev/sr0 Checking device /dev/sr0 eject: CD-ROM tray close command failed: Input/output error Reading TOC of session 1... (2 of 2) ... 50 % ....

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. Léopold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe à Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)


De : Bickhardt, Lutz Envoyé : dimanche 17 novembre 2013 23:20 À : thomasvs/morituri Objet : RE: [morituri] /dev/sr0 vs. /dev/bsg:0:0:0:0 (#51)

Hi

It is probably more of a Unix problem than a Morituri problem; anyway:

ubuntu@ubuntu-armhf:~$ ls /dev/bsg/ 0:0:0:0

ubuntu@ubuntu-armhf:~$ dmesg ... [ 3234.800584] usb 1-1: Product: USB 2.0 IDE DEVICE [ 3234.800619] usb 1-1: Manufacturer: Super Top [ 3234.800654] usb 1-1: SerialNumber: \xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0 [ 3234.805055] usb 1-1: usb_probe_device [ 3234.805121] usb 1-1: configuration #1 chosen from 1 choice [ 3234.805353] usb 1-1: adding 1-1:1.0 (config #1, interface 0) [ 3234.805974] usb-storage 1-1:1.0: usb_probe_interface [ 3234.806049] usb-storage 1-1:1.0: usb_probe_interface - got id [ 3234.812901] usb-storage 1-1:1.0: Quirks match for vid 14cd pid 6600: 20 [ 3234.814779] scsi0 : usb-storage 1-1:1.0 [ 3234.817048] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002 [ 3234.817168] hub 1-0:1.0: port 1 enable change, status 00000503 [ 3235.821156] scsi 0:0:0:0: CD-ROM TEAC CD-224E 1.9A PQ: 0 ANSI: 0

ubuntu@ubuntu-armhf:~$ eject /dev/bsg/0:0:0:0 eject: unable to open `/dev/bsg/0:0:0:0'

ubuntu@ubuntu-armhf:~$ sudo mount /dev/bsg/0:0:0:0 mount: /dev/bsg/0:0:0:0 is not a block device

ubuntu@ubuntu-armhf:~$ RIP_DEBUG=5 rip cd offset -d /dev/bsg/0:0:0:0 DEBUG [ 951] morituri Nov 17 22:13:17 This is morituri version 0.2.2.1 (v0.2.2-46-g1c47a42) (morituri/rip/main.py:103) DEBUG [ 951] morituri Nov 17 22:13:17 rip cd offset -d /dev/bsg/0:0:0:0 (morituri/rip/main.py:122) DEBUG [ 951] "rip" rip Nov 17 22:13:17 calling <morituri.rip.main.Rip object at 0x522a90>.parse_args(['cd', 'offset', '-d', '/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 951] "rip" rip Nov 17 22:13:17 called <morituri.rip.main.Rip object at 0x522a90>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 951] "rip" rip Nov 17 22:13:17 calling <morituri.rip.main.Rip object at 0x522a90>.handleOptions(<Values at 0x555b70: {'record': None, 'version': None}>) (morituri/extern/command/command.py:324) INFO [ 951] default Nov 17 22:13:17 Not using XDG, configuration file is /home/ubuntu/.moriturirc (morituri/common/directory.py:38) INFO [ 951] default Nov 17 22:13:17 Loaded 0 sections from config file (morituri/common/config.py:55) DEBUG [ 951] "rip" rip Nov 17 22:13:17 called <morituri.rip.main.Rip object at 0x522a90>.handleOptions, returned None (morituri/extern/command/command.py:326) DEBUG [ 951] "cd" cd Nov 17 22:13:17 calling <morituri.rip.cd.CD object at 0x522fd0>.parse_args(['offset', '-d', '/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 951] "cd" cd Nov 17 22:13:17 called <morituri.rip.cd.CD object at 0x522fd0>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 951] "cd" cd Nov 17 22:13:17 calling <morituri.rip.cd.CD object at 0x522fd0>.handleOptions(<Values at 0x555c60: {'device': None}>) (morituri/extern/command/command.py:324) ERROR [ 951] "cd" cd Nov 17 22:13:17 No CD-DA drives found! (morituri/rip/cd.py:538) No CD-DA drives found!

I got no idea what is wrong! Maybe you do...?

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. Léopold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe à Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)


De : thomasvs notifications@github.com Envoyé : dimanche 17 novembre 2013 04:48 À : thomasvs/morituri Cc : Bickhardt, Lutz Objet : Re: [morituri] /dev/sr0 vs. /dev/bsg:0:0:0:0 (#51)

None of your output is from morituri.

1) what is actually failing when you run morituri ? 2) which command is it running when it is failing ? Check with RIP_DEBUG=5 3) can you make that particular command work outside of morituri with your drive ?

Reply to this email directly or view it on GitHubhttps://github.com/thomasvs/morituri/issues/51#issuecomment-28641923.

thomasvs commented 10 years ago

Ok, so now we know it's cdrdao that doesn't know how to handle your drive.

it is failing when executing this command:

cdrdao disk-info --device /dev/bsg/0:0:0:0

so you need to figure out why that is happening, and possibly report a bug for it.

Thomas

On 11/17/2013 05:55 PM, lutzbickhardt wrote:

Sorry, forget my last mail: I got the command wrong! Here it is:

RIP_DEBUG=5 rip offset find --device=/dev/bsg/0:0:0:0 DEBUG [ 665] morituri Nov 17 22:50:34 This is morituri version 0.2.2.1 (v0.2.2-46-g1c47a42) (morituri/rip/main.py:103) DEBUG [ 665] morituri Nov 17 22:50:34 rip offset find --device=/dev/bsg/0:0:0:0 (morituri/rip/main.py:122) DEBUG [ 665] "rip" rip Nov 17 22:50:34 calling <morituri.rip.main.Rip object at 0x462ab0>.parse_args(['offset', 'find', '--device=/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 665] "rip" rip Nov 17 22:50:34 called <morituri.rip.main.Rip object at 0x462ab0>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 665] "rip" rip Nov 17 22:50:34 calling <morituri.rip.main.Rip object at 0x462ab0>.handleOptions(<Values at 0x494b20: {'record': None, 'version': None}>) (morituri/extern/command/command.py:324) INFO [ 665] default Nov 17 22:50:34 Not using XDG, configuration file is /home/ubuntu/.moriturirc (morituri/common/directory.py:38) INFO [ 665] default Nov 17 22:50:34 Loaded 0 sections from config file (morituri/common/config.py:55) DEBUG [ 665] "rip" rip Nov 17 22:50:34 called <morituri.rip.main.Rip object at 0x462ab0>.handleOptions, returned None (morituri/extern/command/command.py:326) DEBUG [ 665] "offset" offset Nov 17 22:50:34 calling <morituri.rip.offset.Offset object at 0x476bf0>.parse_args(['find', '--device=/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 665] "offset" offset Nov 17 22:50:34 called <morituri.rip.offset.Offset object at 0x476bf0>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 665] "offset" offset Nov 17 22:50:34 calling <morituri.rip.offset.Offset object at 0x476bf0>.handleOptions(<Values at 0x494c10: {}>) (morituri/extern/command/command.py:324) DEBUG [ 665] "offset" offset Nov 17 22:50:34 called <morituri.rip.offset.Offset object at 0x476bf0>.handleOptions, returned None (morituri/extern/command/command.py:326) DEBUG [ 665] "find" find Nov 17 22:50:34 calling <morituri.rip.offset.Find object at 0x476cb0>.parse_args(['--device=/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 665] "find" find Nov 17 22:50:35 called <morituri.rip.offset.Find object at 0x476cb0>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 665] "find" find Nov 17 22:50:35 calling <morituri.rip.offset.Find object at 0x476cb0>.handleOptions(<Values at 0x494d50: {'device': '/dev/bsg/0:0:0:0', 'offsets': '+6, +48, +102, +667, +12, +30, +618, +594, +738, -472, +98, +116, +96, +733, +120, +691, +685, +97, +600, +690, +1292, +99, +676, +686, +1182, -24, +704, +572, +688, +91, +696, +103, -491, +689, +145, +708, +697, +564, +86, +679, +355, -496, -1164, +1160, +694, 0, -436, +79, +94, +684, +681, +106, +692, +943, +1194, +92, +117, +680, +682, +1268, +678, -582, +1473, +1279, -54, +1508, +740, +1272, +534, +976, +687, +675, +1303, +674, +1263, +108, +974, +122, +111, -489, +772, +732, -495, -494, +975, +935, +87, +668, +1776, +1364, +1336, +1127'}>) (morituri/extern/command/command.py:324) DEBUG [ 665] "find" find Nov 17 22:50:35 Trying with offsets 6, 48, 102, 667, 12, 30, 618, 594, 738, -472, 98, 116, 96, 733, 120, 691, 685, 97, 600, 690, 1292, 99, 676, 686, 1182, -24, 704, 572, 688, 91, 696, 103, -491, 689, 145, 708, 697, 564, 86, 679, 355, -496, -1164, 1160, 694, 0, -436, 79, 94, 684, 681, 106, 692, 943, 1194, 92, 117, 680, 682, 1268, 678, -582, 1473, 1279, -54, 1508, 740, 1272, 534, 976, 687, 675, 1303, 674, 1263, 108, 974, 122, 111, -489, 772, 732, -495, -494, 975, 935, 87, 668, 1776, 1364, 1336, 1127 DEBUG [ 665] "find" find Nov 17 22:50:35 called <morituri.rip.offset.Find object at 0x476cb0>.handleOptions, returned None (morituri/extern/command/command.py:326) DEBUG [ 665] "find" find Nov 17 22:50:35 no args or no subcommands, calling <morituri.rip.offset.Find object at 0x476cb0>.do([]) (morituri/extern/command/command.py:361) Checking device /dev/bsg/0:0:0:0 eject: unable to find or open device for: `/dev/bsg/0:0:0:0' DEBUG [ 665] default Nov 17 22:50:35 possibly unmount real path '/dev/bsg/0:0:0:0' (morituri/common/program.py:111) DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 creating DiscInfoTask for device '/dev/bsg/0:0:0:0' (morituri/program/cdrdao.py:293) DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 creating CDRDAOTask (morituri/program/cdrdao.py:256) DEBUG [ 665] default Nov 17 22:50:35 run task <morituri.program.cdrdao.ReadTOCTask object at 0x476eb0> (morituri/extern/task/task.py:466) DEBUG [ 665] default Nov 17 22:50:35 run loop (morituri/extern/task/task.py:478) DEBUG [ 665] default Nov 17 22:50:35 start task <morituri.program.cdrdao.ReadTOCTask object at 0x476eb0> (morituri/extern/task/task.py:496) DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 Adding listener <morituri.program.cdrdao.ReadTOCTask object at 0x476eb0> (morituri/extern/task/task.py:227) DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 Starting cdrdao with options 'disk-info', '--device', '/dev/bsg/0:0:0:0' DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 starting (morituri/extern/task/task.py:132) LOG [ 665] DiscInfoTask Nov 17 22:50:35 notifying progress: 0.0 on 'Scanning disc...' (morituri/extern/task/task.py:168) DEBUG [ 665] DiscInfoTask Nov 17 22:50:35 Started ['cdrdao', 'disk-info', '--device', '/dev/bsg/0:0:0:0'] with pid 668 (morituri/common/task.py:55) LOG [ 665] default Nov 17 22:50:35 schedule: scheduling <bound method DiscInfoTask._read of <morituri.program.cdrdao.DiscInfoTask object at 0x476f10>>(_args=(<morituri.common.task.SyncRunner object at 0x476df0>,), _kwargs={}) (morituri/extern/task/task.py:520) LOG [ 665] default Nov 17 22:50:36 schedule: calling <bound method DiscInfoTask._read of <morituri.program.cdrdao.DiscInfoTask object at 0x476f10>>(_args=(<morituri.common.task.SyncRunner object at 0x476df0>,), _kwargs={}) (morituri/extern/task/task.py:510) LOG [ 665] DiscInfoTask Nov 17 22:50:36 read from stderr: Cdrdao version 1.2.3 - (C) Andreas Mueller andreas@daneb.de ERROR: Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory. ERROR: Please use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom ERROR: Cannot setup device /dev/bsg/0:0:0:0. (morituri/common/task.py:73) LOG [ 665] default Nov 17 22:50:36 received 314 bytes (morituri/program/cdrdao.py:89) LOG [ 665] default Nov 17 22:50:36 buffer has newline, splitting (morituri/program/cdrdao.py:94) LOG [ 665] default Nov 17 22:50:36 last line still in progress (morituri/program/cdrdao.py:98) LOG [ 665] default Nov 17 22:50:36 Parsing Cdrdao version 1.2.3 - (C) Andreas Mueller andreas@daneb.de (morituri/program/cdrdao.py:106) LOG [ 665] default Nov 17 22:50:36 Parsing ERROR: Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory. (morituri/program/cdrdao.py:106) LOG [ 665] default Nov 17 22:50:36 Parsing ERROR: Please use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom (morituri/program/cdrdao.py:106) LOG [ 665] default Nov 17 22:50:36 Parsing ERROR: Cannot setup device /dev/bsg/0:0:0:0. (morituri/program/cdrdao.py:106) LOG [ 665] default Nov 17 22:50:36 schedule: scheduling <bound method DiscInfoTask._read of <morituri.program.cdrdao.DiscInfoTask object at 0x476f10>>(_args=(<morituri.common.task.SyncRunner object at 0x476df0>,), _kwargs={}) (morituri/extern/task/task.py:520) LOG [ 665] default Nov 17 22:50:36 schedule: calling <bound method DiscInfoTask._read of <morituri.program.cdrdao.DiscInfoTask object at 0x476f10>>(_args=(<morituri.common.task.SyncRunner object at 0x476df0>,), _kwargs={}) (morituri/extern/task/task.py:510) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 Return code was 1 (morituri/common/task.py:101) LOG [ 665] DiscInfoTask Nov 17 22:50:36 notifying progress: 1.0 on 'Scanning disc...' (morituri/extern/task/task.py:168) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 exception during _read() (morituri/common/task.py:92) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 exception DeviceOpenException at morituri/program/cdrdao.py:270: failed(): Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory. Please use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom Cannot setup device /dev/bsg/0:0:0:0. (morituri/common/task.py:93) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 set exception, DeviceOpenException("Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory.\nPlease use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom\nCannot setup device /dev/bsg/0:0:0:0.",), "exception DeviceOpenException at /usr/local/lib/python2.7/site-packages/morituri/program/cdrdao.py:270: failed(): Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory.\nPlease use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom\nCannot setup device /dev/bsg/0:0:0:0." (morituri/extern/task/task.py:211) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 stopping (morituri/extern/task/task.py:150) DEBUG [ 665] DiscInfoTask Nov 17 22:50:36 reset runner to None (morituri/extern/task/task.py:156) DEBUG [ 665] default Nov 17 22:50:36 stopped task <morituri.program.cdrdao.ReadTOCTask object at 0x476eb0> (morituri/extern/task/task.py:556) DEBUG [ 665] default Nov 17 22:50:36 done running task <morituri.program.cdrdao.ReadTOCTask object at 0x476eb0> (morituri/extern/task/task.py:481) DEBUG [ 665] default Nov 17 22:50:36 raising TaskException for "exception DeviceOpenException at /usr/local/lib/python2.7/site-packages/morituri/program/cdrdao.py:270: failed(): Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory.\nPlease use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom\nCannot setup device /dev/bsg/0:0:0:0.", None (morituri/extern/task/task.py:486) rip: error: cannot read CD from drive. cdrdao says: Unable to open SCSI device /dev/bsg/0:0:0:0: No such file or directory. Please use option '--device {[proto:]bus,id,lun}|device', e.g. --device 0,6,0, --device ATA:0,0,0 or --device /dev/cdrom Cannot setup device /dev/bsg/0:0:0:0.

On a different Ubuntu system (with /dev/Sr0 and the same drive!) everything is fine: $ rip offset find -d /dev/sr0 Checking device /dev/sr0 eject: CD-ROM tray close command failed: Input/output error Reading TOC of session 1... (2 of 2) ... 50 % ....

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. Léopold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe à Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)


De : Bickhardt, Lutz Envoyé : dimanche 17 novembre 2013 23:20 À : thomasvs/morituri Objet : RE: [morituri] /dev/sr0 vs. /dev/bsg:0:0:0:0 (#51)

Hi

It is probably more of a Unix problem than a Morituri problem; anyway:

ubuntu@ubuntu-armhf:~$ ls /dev/bsg/ 0:0:0:0

ubuntu@ubuntu-armhf:~$ dmesg ... [ 3234.800584] usb 1-1: Product: USB 2.0 IDE DEVICE [ 3234.800619] usb 1-1: Manufacturer: Super Top [ 3234.800654] usb 1-1: SerialNumber: \xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0\xffffffe2\xffffff80\xffffffa0 [ 3234.805055] usb 1-1: usb_probe_device [ 3234.805121] usb 1-1: configuration #1 chosen from 1 choice [ 3234.805353] usb 1-1: adding 1-1:1.0 (config #1, interface 0) [ 3234.805974] usb-storage 1-1:1.0: usb_probe_interface [ 3234.806049] usb-storage 1-1:1.0: usb_probe_interface - got id [ 3234.812901] usb-storage 1-1:1.0: Quirks match for vid 14cd pid 6600: 20 [ 3234.814779] scsi0 : usb-storage 1-1:1.0 [ 3234.817048] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002 [ 3234.817168] hub 1-0:1.0: port 1 enable change, status 00000503 [ 3235.821156] scsi 0:0:0:0: CD-ROM TEAC CD-224E 1.9A PQ: 0 ANSI: 0

ubuntu@ubuntu-armhf:~$ eject /dev/bsg/0:0:0:0 eject: unable to open `/dev/bsg/0:0:0:0'

ubuntu@ubuntu-armhf:~$ sudo mount /dev/bsg/0:0:0:0 mount: /dev/bsg/0:0:0:0 is not a block device

ubuntu@ubuntu-armhf:~$ RIP_DEBUG=5 rip cd offset -d /dev/bsg/0:0:0:0 DEBUG [ 951] morituri Nov 17 22:13:17 This is morituri version 0.2.2.1 (v0.2.2-46-g1c47a42) (morituri/rip/main.py:103) DEBUG [ 951] morituri Nov 17 22:13:17 rip cd offset -d /dev/bsg/0:0:0:0 (morituri/rip/main.py:122) DEBUG [ 951] "rip" rip Nov 17 22:13:17 calling <morituri.rip.main.Rip object at 0x522a90>.parse_args(['cd', 'offset', '-d', '/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 951] "rip" rip Nov 17 22:13:17 called <morituri.rip.main.Rip object at 0x522a90>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 951] "rip" rip Nov 17 22:13:17 calling <morituri.rip.main.Rip object at 0x522a90>.handleOptions(<Values at 0x555b70: {'record': None, 'version': None}>) (morituri/extern/command/command.py:324) INFO [ 951] default Nov 17 22:13:17 Not using XDG, configuration file is /home/ubuntu/.moriturirc (morituri/common/directory.py:38) INFO [ 951] default Nov 17 22:13:17 Loaded 0 sections from config file (morituri/common/config.py:55) DEBUG [ 951] "rip" rip Nov 17 22:13:17 called <morituri.rip.main.Rip object at 0x522a90>.handleOptions, returned None (morituri/extern/command/command.py:326) DEBUG [ 951] "cd" cd Nov 17 22:13:17 calling <morituri.rip.cd.CD object at 0x522fd0>.parse_args(['offset', '-d', '/dev/bsg/0:0:0:0']) (morituri/extern/command/command.py:314) DEBUG [ 951] "cd" cd Nov 17 22:13:17 called <morituri.rip.cd.CD object at 0x522fd0>.parse_args (morituri/extern/command/command.py:316) DEBUG [ 951] "cd" cd Nov 17 22:13:17 calling <morituri.rip.cd.CD object at 0x522fd0>.handleOptions(<Values at 0x555c60: {'device': None}>) (morituri/extern/command/command.py:324) ERROR [ 951] "cd" cd Nov 17 22:13:17 No CD-DA drives found! (morituri/rip/cd.py:538) No CD-DA drives found!

I got no idea what is wrong! Maybe you do...?

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. Léopold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe à Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)


De : thomasvs notifications@github.com Envoyé : dimanche 17 novembre 2013 04:48 À : thomasvs/morituri Cc : Bickhardt, Lutz Objet : Re: [morituri] /dev/sr0 vs. /dev/bsg:0:0:0:0 (#51)

None of your output is from morituri.

1) what is actually failing when you run morituri ? 2) which command is it running when it is failing ? Check with RIP_DEBUG=5 3) can you make that particular command work outside of morituri with your drive ?

Reply to this email directly or view it on GitHubhttps://github.com/thomasvs/morituri/issues/51#issuecomment-28641923.

— Reply to this email directly or view it on GitHub https://github.com/thomasvs/morituri/issues/51#issuecomment-28666764.

lutzbickhardt commented 10 years ago

Hi Thomas!

Another thing! on the machine where everything works, the very last track of all albums I ripped so far (3) never finishes; all other tracks rip just fine, example:

Ripping track 11 of 12: 11. Habib Koit? & Bamada - Komine.flac Checksums match for track 11 Peak level: 99.57 % Rip quality: 100.00 % Ripping track 12 of 12: 12. Habib Koit? & Bamada - Manssa Cise.flac Ripping track 12 of 12 (try 2): 12. Habib Koit? & Bamada - Manssa Cise.flac Reading track 12 of 12 (try 2) (1 of 6) ... 99 % .... finally (after > 4 hours) there is a message like "giving up on ..."

Any ideas by what that may be caused?

Thanks in advance!

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. L?opold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe ? Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)

thomasvs commented 10 years ago

On 11/18/2013 07:33 AM, lutzbickhardt wrote:

Hi Thomas!

Another thing! on the machine where everything works, the very last track of all albums I ripped so far (3) never finishes; all other tracks rip just fine, example:

Ripping track 11 of 12: 11. Habib Koit? & Bamada - Komine.flac Checksums match for track 11 Peak level: 99.57 % Rip quality: 100.00 % Ripping track 12 of 12: 12. Habib Koit? & Bamada - Manssa Cise.flac Ripping track 12 of 12 (try 2): 12. Habib Koit? & Bamada - Manssa Cise.flac Reading track 12 of 12 (try 2) (1 of 6) ... 99 % .... finally (after > 4 hours) there is a message like "giving up on ..."

Any ideas by what that may be caused?

Thanks in advance!

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. L?opold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe ? Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)

— Reply to this email directly or view it on GitHub https://github.com/thomasvs/morituri/issues/51#issuecomment-28694501.

It means your drive cannot reliably rip the last track, giving different results every time.

You should use a different/better drive.

Thomas

lutzbickhardt commented 10 years ago

Hi Thomas!

I understand, the drive was very cheap, but why is it only but always on the last track? Seems like something systematic, like no end-of-cd-mark or so.

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. L?opold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe ? Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)


De : thomasvs notifications@github.com Envoy? : lundi 18 novembre 2013 22:39 ? : thomasvs/morituri Cc : Bickhardt, Lutz Objet : Re: [morituri] /dev/sr0 vs. /dev/bsg:0:0:0:0 (#51)

On 11/18/2013 07:33 AM, lutzbickhardt wrote:

Hi Thomas!

Another thing! on the machine where everything works, the very last track of all albums I ripped so far (3) never finishes; all other tracks rip just fine, example:

Ripping track 11 of 12: 11. Habib Koit? & Bamada - Komine.flac Checksums match for track 11 Peak level: 99.57 % Rip quality: 100.00 % Ripping track 12 of 12: 12. Habib Koit? & Bamada - Manssa Cise.flac Ripping track 12 of 12 (try 2): 12. Habib Koit? & Bamada - Manssa Cise.flac Reading track 12 of 12 (try 2) (1 of 6) ... 99 % .... finally (after > 4 hours) there is a message like "giving up on ..."

Any ideas by what that may be caused?

Thanks in advance!

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. L?opold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe ? Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)

Reply to this email directly or view it on GitHub https://github.com/thomasvs/morituri/issues/51#issuecomment-28694501.

It means your drive cannot reliably rip the last track, giving different results every time.

You should use a different/better drive.

Thomas

Reply to this email directly or view it on GitHubhttps://github.com/thomasvs/morituri/issues/51#issuecomment-28740610.

thomasvs commented 10 years ago

Because the beginning and the end of the disc is typically where drives fail to read for technical limitations.

Most likely your drive has a big read offset, bigger than a single sector; for example 667.

So it can't physically read that part, and puts out garbage.

T

On 11/18/2013 06:06 PM, lutzbickhardt wrote:

Hi Thomas!

I understand, the drive was very cheap, but why is it only but always on the last track? Seems like something systematic, like no end-of-cd-mark or so.

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. L?opold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe ? Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)


De : thomasvs notifications@github.com Envoy? : lundi 18 novembre 2013 22:39 ? : thomasvs/morituri Cc : Bickhardt, Lutz Objet : Re: [morituri] /dev/sr0 vs. /dev/bsg:0:0:0:0 (#51)

On 11/18/2013 07:33 AM, lutzbickhardt wrote:

Hi Thomas!

Another thing! on the machine where everything works, the very last track of all albums I ripped so far (3) never finishes; all other tracks rip just fine, example:

Ripping track 11 of 12: 11. Habib Koit? & Bamada - Komine.flac Checksums match for track 11 Peak level: 99.57 % Rip quality: 100.00 % Ripping track 12 of 12: 12. Habib Koit? & Bamada - Manssa Cise.flac Ripping track 12 of 12 (try 2): 12. Habib Koit? & Bamada - Manssa Cise.flac Reading track 12 of 12 (try 2) (1 of 6) ... 99 % .... finally (after > 4 hours) there is a message like "giving up on ..."

Any ideas by what that may be caused?

Thanks in advance!

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. L?opold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe ? Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)

Reply to this email directly or view it on GitHub https://github.com/thomasvs/morituri/issues/51#issuecomment-28694501.

It means your drive cannot reliably rip the last track, giving different results every time.

You should use a different/better drive.

Thomas

Reply to this email directly or view it on GitHubhttps://github.com/thomasvs/morituri/issues/51#issuecomment-28740610.

— Reply to this email directly or view it on GitHub https://github.com/thomasvs/morituri/issues/51#issuecomment-28747701.

lutzbickhardt commented 10 years ago

Chapeau!

The offset is indeed 678. Thanks for the explanation!

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. L?opold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe ? Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)


De : thomasvs notifications@github.com Envoy? : mardi 19 novembre 2013 00:07 ? : thomasvs/morituri Cc : Bickhardt, Lutz Objet : Re: [morituri] /dev/sr0 vs. /dev/bsg:0:0:0:0 (#51)

Because the beginning and the end of the disc is typically where drives fail to read for technical limitations.

Most likely your drive has a big read offset, bigger than a single sector; for example 667.

So it can't physically read that part, and puts out garbage.

T

On 11/18/2013 06:06 PM, lutzbickhardt wrote:

Hi Thomas!

I understand, the drive was very cheap, but why is it only but always on the last track? Seems like something systematic, like no end-of-cd-mark or so.

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. L?opold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe ? Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)


De : thomasvs notifications@github.com Envoy? : lundi 18 novembre 2013 22:39 ? : thomasvs/morituri Cc : Bickhardt, Lutz Objet : Re: [morituri] /dev/sr0 vs. /dev/bsg:0:0:0:0 (#51)

On 11/18/2013 07:33 AM, lutzbickhardt wrote:

Hi Thomas!

Another thing! on the machine where everything works, the very last track of all albums I ripped so far (3) never finishes; all other tracks rip just fine, example:

Ripping track 11 of 12: 11. Habib Koit? & Bamada - Komine.flac Checksums match for track 11 Peak level: 99.57 % Rip quality: 100.00 % Ripping track 12 of 12: 12. Habib Koit? & Bamada - Manssa Cise.flac Ripping track 12 of 12 (try 2): 12. Habib Koit? & Bamada - Manssa Cise.flac Reading track 12 of 12 (try 2) (1 of 6) ... 99 % .... finally (after > 4 hours) there is a message like "giving up on ..."

Any ideas by what that may be caused?

Thanks in advance!

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. L?opold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe ? Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)

Reply to this email directly or view it on GitHub https://github.com/thomasvs/morituri/issues/51#issuecomment-28694501.

It means your drive cannot reliably rip the last track, giving different results every time.

You should use a different/better drive.

Thomas

Reply to this email directly or view it on GitHubhttps://github.com/thomasvs/morituri/issues/51#issuecomment-28740610.

Reply to this email directly or view it on GitHub https://github.com/thomasvs/morituri/issues/51#issuecomment-28747701.

Reply to this email directly or view it on GitHubhttps://github.com/thomasvs/morituri/issues/51#issuecomment-28747889.

lutzbickhardt commented 10 years ago

Hi Thomas!

I ran into problems when either the album/titel or song has accents (see below). The W:-output is from a little script that I use to analyse your output (amongst others to kill Morituri when the last track is reached). (XLD is treat it fine (using the CDparanoia ripper within XLD).

And a question: I use XLD on my miniMac (music server) to complement the titles not ripped on the raspberryPIs I have here. Do you actually add the "(disk 1 of 3)" part to the album/compilation-directory?Because in XLD (using again MusikBrainz as CDDB) they do not show up on the MusicBrainz album/title (which causes XLD to completely rip anew instead of skipping over the ones that had already been ripped by the rPI). I have to edit before ripping therefore. Or is it due to different versions of MusicBrainz?

And a last one: I gave up to install Morituri on a the Mac. Brew and python could not agree on installing the modules and programs. Is there any trick or blog or documentation how to do it?

Thanks a lot again!


  1. e accent aigu (in Bela) is not converted so it can be directory name

W: .CDDB_disc_id -> b30ebb0c

W: .MusicBrainz_disc_id -> NknA4TlJQATza_opgN9y01eSB6s-

W: .MusicBrainz_lookup_URL -> http://mm.musicbrainz.org/bare/cdlookup.html?toc=1+12+283011+150+28409+54057+75266+97387+119979+140493+160497+187346+216021+241293+264379&tracks=12&id=NknA4TlJQATza_opgN9y01eSB6s-

W: .disk_tracks -> 12

W: .disk_duration -> 01:02:51.480

W: .artist -> Béla Fleck & Marcus Roberts Trio

W: .title -> Across the Imaginary Divide

W: .disk_duration_2 -> 01:02:52.000

W: .URL -> http://musicbrainz.org/release/4f343a02-32fc-4587-8594-65a6774bd2ab

W: .release -> 4f343a02-32fc-4587-8594-65a6774bd2ab

W: .type -> Album

W: SPAWN stderr: Traceback (most recent call last):

File "/usr/local/bin/rip", line 41, in

sys.exit(main.main(sys.argv[1:]))

File "/usr/local/lib/python2.7/site-packages/morituri/rip/main.py", line 45, in main

ret = c.parse(argv)

File "/usr/local/lib/python2.7/site-packages/morituri/rip/main.py", line 123, in parse

logcommand.LogCommand.parse(self, argv)

File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 401, in parse

return self.subCommands[command].parse(args[1:])

File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 401, in parse

return self.subCommands[command].parse(args[1:])

File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 363, in parse

ret = self.do(args)

File "/usr/local/lib/python2.7/site-packages/morituri/rip/cd.py", line 157, in do

self.doCommand()

File "/usr/local/lib/python2.7/site-packages/morituri/rip/cd.py", line 304, in doCommand

self.stdout.write("Creating output directory %s\n" % dirname)

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 52: ordinal not in range(128)

2.


W: .CDDB_disc_id -> f111e310

CDDB disc id: f111e310

W: .MusicBrainz_disc_id -> GRZQmRptHKn5L2ZETAxUurrDwhY-

W: PX line 4: MusicBrainz disc id GRZQmRptHKn5L2ZETAxUurrDwhY-

W: .MusicBrainz_lookup_URL -> http://mm.musicbrainz.org/bare/cdlookup.html?toc=1+16+343614+150+14931+36480+60285+74887+93785+112173+133641+153476+184292+207557+226664+248010+271840+290476+311624&tracks=16&id=GRZQmRptHKn5L2ZETAxUurrDwhY-

W: .disk_tracks -> 16

W: PX line 5: MusicBrainz lookup URL http://mm.musicbrainz.org/bare/cdlookup.html?toc=1+16+343614+150+14931+36480+60285+74887+93785+112173+133641+153476+184292+207557+226664+248010+271840+290476+311624&tracks=16&id=GRZQmRptHKn5L2ZETAxUurrDwhY-

W: .disk_duration -> 01:16:19.520

W: PX line 6: Disc duration: 01:16:19.520, 16 audio tracks

W: np line 7:

W: np line 8: Matching releases:

W: np line 9:

W: .artist -> Various Artists

W: PX line 10: Artist : Various Artists

W: .title -> ACT: 15 Magic Years 1992-2007

W: PX line 11: Title : ACT: 15 Magic Years 1992-2007

W: .disk_duration_2 -> 01:16:11.000

W: PX line 12: Duration: 01:16:11.000

W: .URL -> http://musicbrainz.org/release/7ac8e698-10cc-4fc6-b56e-f34d361a5b4b

W: PX line 13: URL : http://musicbrainz.org/release/7ac8e698-10cc-4fc6-b56e-f34d361a5b4b

W: .release -> 7ac8e698-10cc-4fc6-b56e-f34d361a5b4b

W: PX line 14: Release : 7ac8e698-10cc-4fc6-b56e-f34d361a5b4b

W: .type -> Compilation

W: PX line 15: Type : Compilation

W: np line 16:

W: .directory -> /home/miniand/barracuda/compilation/Various Artists - ACT - 15 Magic Years 1992-2007

W: .directory -> compilation/Various Artists - ACT - 15 Magic Years 1992-2007

W: ---|

W: -->>/home/miniand/barracuda/data/Various Artists-ACT: 15 Magic Years 1992-2007/

W: --->/home/miniand/barracuda/data/Various Artists-ACT: 15 Magic Years 1992-2007/

W: ->>>/home/miniand/barracuda/data/Various Artists-ACT: 15 Magic Years 1992-2007/ACT: 15 Magic Years 1992-2007.cd (CDInfo: )

W: /home/miniand/barracuda/data/Various Artists-ACT: 15 Magic Years 1992-2007/ACT: 15 Magic Years 1992-2007.cd: appended to CDInfo:

Creating output directory /home/miniand/barracuda/compilation/Various Artists - ACT - 15 Magic Years 1992-2007

W: .ripped -> TRUE

W: .no -> 1

W: .song -> Della Mae

W: PX line 18: Ripping track 1 of 16: 01. John Lee Hooker - Della Mae.flac

Checksums match for track 1 y 0 %

W: .peak -> 99.47

W: PX line 20: Peak level: 99.47 %

W: .quality -> 100.00

W: ---|

W: -->>/home/miniand/barracuda/data/Various Artists-ACT: 15 Magic Years 1992-2007/

W: info[name]: Della Mae

W: ->>>/home/miniand/barracuda/data/Various Artists-ACT: 15 Magic Years 1992-2007/Della Mae.t01 (TRACKinfo: )

W: /home/miniand/barracuda/data/Various Artists-ACT: 15 Magic Years 1992-2007/Della Mae.t01: appended to TRACKinfo:

W: PX line 21: Rip quality: 100.00 %

W: .ripped -> TRUE

W: .no -> 2

W: .song -> Funèbre

W: PX line 22: Ripping track 2 of 16: 02. [em] - Funèbre.flac

W: SPAWN stderr: File "/usr/local/bin/rip", line 41, in

W: SPAWN stderr: sys.exit(main.main(sys.argv[1:]))

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/rip/main.py", line 45, in main

W: SPAWN stderr: ret = c.parse(argv)

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/rip/main.py", line 123, in parse

W: SPAWN stderr: logcommand.LogCommand.parse(self, argv)

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 401, in parse

W: SPAWN stderr: return self.subCommands[command].parse(args[1:])

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 401, in parse

W: SPAWN stderr: return self.subCommands[command].parse(args[1:])

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 363, in parse

W: SPAWN stderr: ret = self.do(args)

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/rip/cd.py", line 157, in do

W: SPAWN stderr: self.doCommand()

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/rip/cd.py", line 435, in doCommand

W: SPAWN stderr: ripIfNotRipped(i + 1)

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/rip/cd.py", line 376, in ripIfNotRipped

W: SPAWN stderr: number, len(self.itable.tracks), extra))

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/common/program.py", line 589, in ripTrack

W: SPAWN stderr: runner.run(t)

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/extern/task/task.py", line 479, in run

W: SPAWN stderr: self._loop.run()

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/extern/task/task.py", line 511, in c

W: SPAWN stderr: callable(_args, *_kwargs)

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/extern/task/gstreamer.py", line 151, in stop

W: SPAWN stderr: task.Task.stop(self)

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/extern/task/task.py", line 154, in stop

W: SPAWN stderr: import traceback; traceback.print_stack()

W: SPAWN stderr: File "/usr/local/bin/rip", line 41, in

W: SPAWN stderr: sys.exit(main.main(sys.argv[1:]))

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/rip/main.py", line 45, in main

W: SPAWN stderr: ret = c.parse(argv)

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/rip/main.py", line 123, in parse

W: SPAWN stderr: logcommand.LogCommand.parse(self, argv)

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 401, in parse

W: SPAWN stderr: return self.subCommands[command].parse(args[1:])

W: SPAWN stderr: File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 401, in parse

W: SPAWN stderr: return self.subCommands[command].parse(args[1:])

Cordialement


Lutz BICKHARDT lutz@bickhardt.fr

23/25, av. Léopold II, F-75016 Paris, France Graumannsweg 42, D-22087 Hamburg, Germany

SKYPE: bickhardt +33 9 60405114 (telephone fixe à Paris) +33 6 18386906 (portable francais/ French cell phone) +49 40 22758122 (Festnetz in Hamburg) +49 172 3846086 (deutsches Handy / German cell phone)


De : thomasvs notifications@github.com Envoyé : mardi 19 novembre 2013 00:07 À : thomasvs/morituri Cc : Bickhardt, Lutz Objet : Re: [morituri] /dev/sr0 vs. /dev/bsg:0:0:0:0 (#51)

Because the beginning and the end of the disc is typically where drives fail to read for technical limitations.

Most likely your drive has a big read offset, bigger than a single sector; for example 667.

So it can't physically read that part, and puts out garbage.

T

Reply to this email directly or view it on GitHubhttps://github.com/thomasvs/morituri/issues/51#issuecomment-28747889.

thomasvs commented 10 years ago

Please create separate issues for separate issues. Don't reuse an old issue for new issues, and don't put two different issues in one either. Otherwise it's impossible to track the different problems.

The first issue you mention (accents in output directory) was fixed a while ago on master.

As to your second question, yes, morituri adds (disc 1 of 3) to distinguish the separate discs. I have no idea how XLD does it.

Last question: I have never tried it on mac myself. I think people have tried, I don't know if anyone succeeded.

jeanpaulrh commented 9 years ago

I have a problem ripping a cd with morituri giving up on the second to last track. It's the first cd which gives me this kind of problem and I've ripped around 15 cds so far, but the drive is new and I still can return it if its ripping capabilities are poor. Its offset it's 6, so it seems a little bit different from the case of the OP. What test do you suggest (a part from ripping some more cd in the next few days which I'm doing anyway)? Thanks a lot,

      Gianpaolo