Re: [PLUG] HELP! PLUG needs more JOBS mailing list moderators
I volunteer. -wes On Mon, Jan 29, 2018 at 10:37 PM, Michael Dexterwrote: > > Hello, > > The spammers are attacking and it would be great if a few more people > would be willing to moderate the list. This is done through a web interface. > > Interested? > > Thanks! > > Michael Dexter > PLUG Volunteer > > (Yes, there is a 1st Thursday speaker lined up. Working on the > announcement) > ___ > PLUG mailing list > PLUG@pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug > ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] SCSI device driver
On Mon, 29 Jan 2018 19:55:45 -0800 King Beowulfdijo: >On 01/29/2018 02:22 AM, Tomas Kuchta wrote: >> Pretty old distro/kernel. For what is worth it - I do not have the >> same problem with 16.04. >> >> Anyway, how about creating soft link pointing to /dev/sr?. Did you >> try that? >IIRC, /dev/sg* are character devices, /dev/sr* are block devices, and >you can't just link them together with 'ln' > >lsscsi -g should list the connection of block to scsi char device if >the sg module is loaded correctly and udev creates the dev nodes > >I did read somewhere that ubuntu dropped sg as "unused". Since others >here have said that newer Ubuntu kernels have sg and it works. Perhaps >an upgrade is the best fix. For now I have shelved the idea of a symlink. Here is what I get from lsscsi -g: $ lsscsi -g [2:0:0:0]cd/dvd hp BD MLT UJ260AF FW06 /dev/sr0/dev/sg0 [4:0:0:0]disk ATA Crucial_CT480M50 MU03 /dev/sda /dev/sg1 [6:0:0:0]disk H/W RAID 0 0106 /dev/sdb /dev/sg3 [7:0:0:0]cd/dvd HL-DT-ST DVDRAM GU90N 1.00 /dev/sr1 /dev/sg2 [8:0:0:0]disk PNY USB 3.0 FD 1.00 /dev/sdc /dev/sg4 [9:0:0:0]disk LG USB Drive 1100 /dev/sdd /dev/sg5 Tomas mentioned previously that he had no problem with MakeMKV on Ubuntu 16.04. I assume he meant the latest version 1.10.10, because I can still run 1.10.8 on Ubuntu 14.04. The only reason I need the latest version is because it has recently released aacs keys. Not only does this affect only a few very recently released Blu-rays, but there is a workaround. I can use dd (although I prefer ddrescue) to make an .iso of the disk, and MakeMKV 1.10.10 can use that, thus not needing access to the optical drive at all. It's a clunky workaround, but it works. I should mention in passing that, while not open source, the Linux version of MakeMKV is free, although you get some extras if you pay for it. And dumphd is a FOSS program with similar functionality, although I could never get it to work. If anyone wishes to play around with these things you can do so with no cost except your time. Oh, that is, assuming you have a Blu-ray drive for your computer. As I write this there are 68 comments in the thread about this on the MakeMKV Linux forum, including several by the admin asking for input from users. The problem is being worked on, so I'm going to sit back and wait. ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] SCSI device driver
On 01/29/2018 02:22 AM, Tomas Kuchta wrote: > Pretty old distro/kernel. For what is worth it - I do not have the same > problem with 16.04. > > Anyway, how about creating soft link pointing to /dev/sr?. Did you try that? > > Tomas > IIRC, /dev/sg* are character devices, /dev/sr* are block devices, and you can't just link them together with 'ln' lsscsi -g should list the connection of block to scsi char device if the sg module is loaded correctly and udev creates the dev nodes I did read somewhere that ubuntu dropped sg as "unused". Since others here have said that newer Ubuntu kernels have sg and it works. Perhaps an upgrade is the best fix. -Ed signature.asc Description: OpenPGP digital signature ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] SCSI device driver
JJJ - /dev is usually a protected directory. You should probably be doing: sudo ln -s /dev/sg0 /dev/sr0 Tim -- Timothy J. Bruce visit my Website at: http://www.tbruce.com Registered Linux User #325725 On Mon, January 29, 2018 15:31, Rich Shepard wrote: > On Mon, 29 Jan 2018, John Jason Jordan wrote: > >> ln -s /dev/sr0/ /dev/sg0/ >> ln: failed to access â/dev/sg0/â: Not a directory > >Oops. My mistake. > >> ln -s /dev/sr0 /dev/sg0 >> ln: failed to create symbolic link â/dev/sg0â: File exists > >When you do a long list of devices, > ls -l /dev/s* > do you see sg0? Is it displayed as a file, a link, or something else? The > color should provide the answer. > >For example, from this host: > > $ ll /dev/s* > brw-rw 1 root disk 8, 0 Jan 19 12:26 /dev/sda > brw-rw 1 root disk 8, 1 Jan 19 12:26 /dev/sda1 > brw-rw 1 root disk 8, 2 Jan 19 12:26 /dev/sda2 > brw-rw 1 root disk 8, 3 Jan 19 12:26 /dev/sda3 > brw-rw 1 root disk 8, 4 Jan 19 12:26 /dev/sda4 > brw-rw 1 root disk 8, 5 Jan 19 12:26 /dev/sda5 > brw-rw 1 root disk 8, 6 Jan 19 12:26 /dev/sda6 > brw-rw 1 root disk 8, 7 Jan 19 12:26 /dev/sda7 > brw-rw 1 root disk 8, 8 Jan 19 12:26 /dev/sda8 > brw-rw 1 root disk 8, 9 Jan 19 12:26 /dev/sda9 > crw--- 1 root root 10, 231 Jan 19 12:26 /dev/snapshot > brw-rw 1 root cdrom 11, 0 Jan 19 12:26 /dev/sr0 > lrwxrwxrwx 1 root root 15 Jan 19 04:26 /dev/stderr -> > /proc/self/fd/2 > lrwxrwxrwx 1 root root 15 Jan 19 04:26 /dev/stdin -> /proc/self/fd/0 > lrwxrwxrwx 1 root root 15 Jan 19 04:26 /dev/stdout -> > /proc/self/fd/1 > >You can see the difference between actual files and links (on the > bottom > 3). > > Rich > > ___ > PLUG mailing list > PLUG@pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug > ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] SCSI device driver
On Mon, 29 Jan 2018 14:18:07 -0800 (PST) Rich Sheparddijo: >On Mon, 29 Jan 2018, John Jason Jordan wrote: > >> A slight problem: >> >> $ ln -s /dev/sg0 /dev/sr0 >> ln: failed to create symbolic link ‘/dev/sr0’: File exists >> >> What am I doing wrong? > You have them backwards. Try: > > ln -s /dev/sr0/ /dev/sg0/ > > sr0 is the target and sg0 is the link name. 'man ln' has details. OK, still doesn't work: ln -s /dev/sr0/ /dev/sg0/ ln: failed to access ‘/dev/sg0/’: Not a directory ln -s /dev/sr0 /dev/sg0 ln: failed to create symbolic link ‘/dev/sg0’: File exists I read the man page for ln and maybe I need to give the command the name of a file that it will create? Still confused. ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] SCSI device driver
On Mon, 29 Jan 2018 13:10:41 -0800 Tomas Kuchtadijo: >Yes, this would create soft link to /dev/sr1 and satisfy your >application. And so on... >I assume the syntax should be ln -s /dev/sg0 /dev/sr0, and >ln -s /dev/sg2 /dev/sr1, right? Or do I have that backwards? A slight problem: $ ln -s /dev/sg0 /dev/sr0 ln: failed to create symbolic link ‘/dev/sr0’: File exists What am I doing wrong? ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] SCSI device driver
Yes, this would create soft link to /dev/sr1 and satisfy your application. And so on... These links might disappear at some point, but that would be easy to solve, if it works for you. Tomas On Jan 29, 2018 8:49 AM, "John Jason Jordan"wrote: On Mon, 29 Jan 2018 02:22:22 -0800 Tomas Kuchta dijo: >Pretty old distro/kernel. For what is worth it - I do not have the same >problem with 16.04. > >Anyway, how about creating soft link pointing to /dev/sr?. Did you try >that? No, I did not. try creating a soft link. I assume it would need to point /dev/sg* to /dev/sr0 and /dev/sr1 (my optical drives). ls -la /dev/sg* crw-rw+ 1 root cdrom 21, 0 Jan 23 16:33 /dev/sg0 crw-rw 1 root disk 21, 1 Jan 23 16:33 /dev/sg1 crw-rw+ 1 root cdrom 21, 2 Jan 23 16:33 /dev/sg2 crw-rw 1 root disk 21, 3 Jan 23 16:33 /dev/sg3 crw-rw 1 root disk 21, 4 Jan 23 16:34 /dev/sg4 crw-rw 1 root disk 21, 5 Jan 26 23:00 /dev/sg5 I note that the /dev folder has sx zero byte files for sg0 - 5, plus zero byte sr0 and sr1. I assume the syntax should be ln -s /dev/sg0 /dev/sr0, and ln -s /dev/sg2 /dev/sr1, right? Or do I have that backwards? ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] SCSI device driver
On Mon, 29 Jan 2018 02:22:22 -0800 Tomas Kuchtadijo: >Pretty old distro/kernel. For what is worth it - I do not have the same >problem with 16.04. > >Anyway, how about creating soft link pointing to /dev/sr?. Did you try >that? No, I did not. try creating a soft link. I assume it would need to point /dev/sg* to /dev/sr0 and /dev/sr1 (my optical drives). ls -la /dev/sg* crw-rw+ 1 root cdrom 21, 0 Jan 23 16:33 /dev/sg0 crw-rw 1 root disk 21, 1 Jan 23 16:33 /dev/sg1 crw-rw+ 1 root cdrom 21, 2 Jan 23 16:33 /dev/sg2 crw-rw 1 root disk 21, 3 Jan 23 16:33 /dev/sg3 crw-rw 1 root disk 21, 4 Jan 23 16:34 /dev/sg4 crw-rw 1 root disk 21, 5 Jan 26 23:00 /dev/sg5 I note that the /dev folder has sx zero byte files for sg0 - 5, plus zero byte sr0 and sr1. I assume the syntax should be ln -s /dev/sg0 /dev/sr0, and ln -s /dev/sg2 /dev/sr1, right? Or do I have that backwards? ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] SCSI device driver
Pretty old distro/kernel. For what is worth it - I do not have the same problem with 16.04. Anyway, how about creating soft link pointing to /dev/sr?. Did you try that? Tomas On Jan 27, 2018 9:39 AM, "John Jason Jordan"wrote: > Xubuntu 14.04.5, all updates applied. > > I have a program that can't find ether of my optical drives, /dev/sr0 > and /dev/sr1. Apparently there is a new module, 'sg,' that calls > them /dev/sg0 and /dev/sg1, and those are all that the program will > look for. I can't tell if I have the module installed or not: > > sudo modprobe sg - returns nothing, no error messages > lsmod | grep sg - also returns nothing > ls -la /dev/sg* returns: > crw-rw+ 1 root cdrom 21, 0 Jan 23 16:33 /dev/sg0 > crw-rw 1 root disk 21, 1 Jan 23 16:33 /dev/sg1 > crw-rw+ 1 root cdrom 21, 2 Jan 23 16:33 /dev/sg2 > crw-rw 1 root disk 21, 3 Jan 23 16:33 /dev/sg3 > crw-rw 1 root disk 21, 4 Jan 23 16:34 /dev/sg4 > crw-rw 1 root disk 21, 5 Jan 26 23:00 /dev/sg5 > ls -la /dev/sr* returns: > brw-rw+ 1 root cdrom 11, 0 Jan 25 17:46 /dev/sr0 > brw-rw+ 1 root cdrom 11, 1 Jan 23 16:33 /dev/sr1 > > Synaptic lists no module 'sg,' although it does list 'sg3_utils and > 'sscsitools-gui,' which I installed. I can't figure out how to use > either one, no man pages and no way to launch the GUI. > > According to http://sg.danny.cz/sg/#mozTocId689512 the latest version > of sg is 3.0.19. > > If it matters, uname -a gives: > Linux Devil-Bonobo 3.13.0-139-generic #188-Ubuntu SMP Tue Jan 9 > 14:43:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux > > I can't tell is the module is installed or not. Evidence is confusing: > 1) the program still can't find the devices > 2) lsmod doesn't find it > 3) modprobe returns no error messages > 4) ls -la /dev/sg* shows the devices > > I could use some suggestions. > ___ > PLUG mailing list > PLUG@pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug > ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug