* [gentoo-user] reading data cd/dvd @ 2015-11-11 4:01 allan gottlieb 2015-11-11 9:05 ` Philip Webb 0 siblings, 1 reply; 8+ messages in thread From: allan gottlieb @ 2015-11-11 4:01 UTC (permalink / raw To: gentoo-user All my machines run gentoo / systemd / gnome3 On my older laptop when I plug in a data cd I get a popup suggesting that I open it with files. All is well On my newer laptop the disk spins up but no popup appears. What must I configure? On the old machine there is a directory /run/media/ with a subdirectory gottlieb. The data cd is mounted there. Looking at df gives /dev/sr0 286490 286490 0 100% /run/media/gottlieb/COD3E The new machine does not even have /dev/sr0. Am I missing a kernel option I have the following in scsi device support. < > RAID Transport Class -*- SCSI device support [ ] SCSI: use blk-mq I/O path by default [*] legacy /proc/scsi/ support *** SCSI support type (disk, tape, CD-ROM) *** <*> SCSI disk support < > SCSI tape support < > SCSI OnStream SC-x0 tape support <*> SCSI CDROM support [*] Enable vendor-specific extensions (for SCSI CDROM) <*> SCSI generic support < > SCSI media changer support [*] Verbose SCSI error reporting (kernel size +=12K) [ ] SCSI logging facility [ ] Asynchronous SCSI scanning SCSI Transports ---> [ ] SCSI low-level drivers ---- [ ] PCMCIA SCSI adapter support ---- < > SCSI Device Handlers ---- < > OSD-Initiator library Thanks in advance for any help. allan ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] reading data cd/dvd 2015-11-11 4:01 [gentoo-user] reading data cd/dvd allan gottlieb @ 2015-11-11 9:05 ` Philip Webb 2015-11-11 10:01 ` David Haller 2015-11-11 15:49 ` Walter Dnes 0 siblings, 2 replies; 8+ messages in thread From: Philip Webb @ 2015-11-11 9:05 UTC (permalink / raw To: gentoo-user 151110 allan gottlieb wrote: > All my machines run gentoo / systemd / gnome3 > On my older laptop when I plug in a data cd I get a popup > suggesting that I open it with files. All is well > On my newer laptop the disk spins up but no popup appears. > What must I configure? > On the old machine there is a dir /run/media/ with a subdir gottlieb. > The data cd is mounted there. Looking at df gives > /dev/sr0 286490 286490 0 100% /run/media/gottlieb/COD3E > The new machine does not even have /dev/sr0. > Am I missing a kernel option ? My note from recently installing Gentoo on a newly built machine : "for DVD drive, use BLK_DEV_SR to create /dev/sr0 ". Use 'make menuconfig' + search to find that string, then set the option. BTW I try to do things as simply as possible : using Fluxbox + Openrc, I mount /dev/sr0 on /mnt/dvd (as root), then (as user) 'cd /mnt/dvd' & use Most/Mupdf/Feh/etc to look at the files. Quick, effective, foolproof ... (smile) -- ========================,,============================================ SUPPORT ___________//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT `-O----------O---' purslowatchassdotutorontodotca ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] reading data cd/dvd 2015-11-11 9:05 ` Philip Webb @ 2015-11-11 10:01 ` David Haller 2015-11-11 16:18 ` Neil Bothwick 2015-11-11 15:49 ` Walter Dnes 1 sibling, 1 reply; 8+ messages in thread From: David Haller @ 2015-11-11 10:01 UTC (permalink / raw To: gentoo-user Hello, On Wed, 11 Nov 2015, Philip Webb wrote: >151110 allan gottlieb wrote: >> All my machines run gentoo / systemd / gnome3 >> On my older laptop when I plug in a data cd I get a popup >> suggesting that I open it with files. All is well >> On my newer laptop the disk spins up but no popup appears. >> What must I configure? >> On the old machine there is a dir /run/media/ with a subdir gottlieb. >> The data cd is mounted there. Looking at df gives >> /dev/sr0 286490 286490 0 100% /run/media/gottlieb/COD3E >> The new machine does not even have /dev/sr0. >> Am I missing a kernel option ? > >My note from recently installing Gentoo on a newly built machine : >"for DVD drive, use BLK_DEV_SR to create /dev/sr0 ". That's the "SCSI CDROM support" he already has. >BTW I try to do things as simply as possible : >using Fluxbox + Openrc, I mount /dev/sr0 on /mnt/dvd (as root), >then (as user) 'cd /mnt/dvd' & use Most/Mupdf/Feh/etc to look at the files. >Quick, effective, foolproof ... (smile) Add the device(s) to fstab like so: /dev/cdrom /cdrom auto noauto,ro,user,users 0 0 /dev/dvd /dvd auto noauto,ro,user,users 0 0 if you have udev setting those symlinks, else use /dev/sr* instead. But what I think is missing is some feature of the desktop, aka "device actions", possibly sys-apps/gnome-disk-utility and some digging in the gnome-config. I do not use gnome. HTH, -dnh -- > Wenn er SSH sperrt aber Telnet offen läßt ist er kein Admin. Sondern ein Bonfigt? -- J. Nieveler u. S. Posner in dasr ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] reading data cd/dvd 2015-11-11 10:01 ` David Haller @ 2015-11-11 16:18 ` Neil Bothwick 2015-11-11 17:45 ` allan gottlieb 2015-11-11 19:07 ` David Haller 0 siblings, 2 replies; 8+ messages in thread From: Neil Bothwick @ 2015-11-11 16:18 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 888 bytes --] On Wed, 11 Nov 2015 11:01:10 +0100, David Haller wrote: > Add the device(s) to fstab like so: > > /dev/cdrom /cdrom auto noauto,ro,user,users > 0 0 /dev/dvd /dvd auto > noauto,ro,user,users 0 0 > > if you have udev setting those symlinks, else use /dev/sr* instead. > > But what I think is missing is some feature of the desktop, aka > "device actions", possibly sys-apps/gnome-disk-utility and some > digging in the gnome-config. He doesn't have /dev/sr0 so no amount of fstab or automounter fiddling will mount a CD that isn't there. This appears to be a missing kernel option. Is this a built in optical drive or a USB one? -- Neil Bothwick Q. How many radical feminists does it take to change a light bulb? A. Two - one to change the bulb and one to write a book about the passive role of the socket. [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] reading data cd/dvd 2015-11-11 16:18 ` Neil Bothwick @ 2015-11-11 17:45 ` allan gottlieb 2015-11-11 19:07 ` David Haller 1 sibling, 0 replies; 8+ messages in thread From: allan gottlieb @ 2015-11-11 17:45 UTC (permalink / raw To: gentoo-user On Wed, Nov 11 2015, Neil Bothwick wrote: > On Wed, 11 Nov 2015 11:01:10 +0100, David Haller wrote: > >> Add the device(s) to fstab like so: >> >> /dev/cdrom /cdrom auto noauto,ro,user,users >> 0 0 /dev/dvd /dvd auto >> noauto,ro,user,users 0 0 >> >> if you have udev setting those symlinks, else use /dev/sr* instead. >> >> But what I think is missing is some feature of the desktop, aka >> "device actions", possibly sys-apps/gnome-disk-utility and some >> digging in the gnome-config. > > He doesn't have /dev/sr0 so no amount of fstab or automounter fiddling > will mount a CD that isn't there. This appears to be a missing kernel > option. That was my thought as well. > Is this a built in optical drive or a USB one? Interesting question. The old (successful) laptop has a built in optical drive The new (unsuccessful) laptop has a USB optical drive *However* My desktop machine (not mentioned previously) has a built in optical and has the same problem as the new laptop Thank you all allan ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] reading data cd/dvd 2015-11-11 16:18 ` Neil Bothwick 2015-11-11 17:45 ` allan gottlieb @ 2015-11-11 19:07 ` David Haller 2015-11-11 20:21 ` allan gottlieb 1 sibling, 1 reply; 8+ messages in thread From: David Haller @ 2015-11-11 19:07 UTC (permalink / raw To: gentoo-user Hello Neil, On Wed, 11 Nov 2015, Neil Bothwick wrote: >On Wed, 11 Nov 2015 11:01:10 +0100, David Haller wrote: >> Add the device(s) to fstab like so: >> >> /dev/cdrom /cdrom auto noauto,ro,user,users >> 0 0 /dev/dvd /dvd auto >> noauto,ro,user,users 0 0 >> >> if you have udev setting those symlinks, else use /dev/sr* instead. >> >> But what I think is missing is some feature of the desktop, aka >> "device actions", possibly sys-apps/gnome-disk-utility and some >> digging in the gnome-config. > >He doesn't have /dev/sr0 so no amount of fstab or automounter fiddling >will mount a CD that isn't there. This appears to be a missing kernel >option. Hm. Neil, you're right. From the OP though: <*> SCSI CDROM support which is CONFIG_BLK_DEV_SR which is sr_mod which provides /dev/sr*. So he has sr_mod built into the kernel. No module to load. Should not compile without the requires. Hm. Maybe a missing chipset-driver like pata_atiixp as I use? Or systemd-udev etc. is hiccupping, so the kernel (sr_mod) provides the dev "per se" but there's no /dev/sr* device-node created, so let's start at the "bottom" and have a look at dmesg and some stuff ... @allan gottlieb: - how is that drive connected? - Please mail the outputs of lsmod lspci lsscsi | grep -E 'cd|process' hwinfo --cdrom (the latter is from sys-apps/hwinfo) all run as root. Oh, and please also paste the output of zgrep -F -e ATA -e SCSI /proc/config.gz or grep -F -e ATA -e SCSI /boot/config-`uname -r` or grep -F -e ATA -e SCSI /usr/src/linux/.config whatever matches your kernel best ;) And capture the output of 'dmesg' for pasting to e.g. pastebin.org[0], or better e.g. just the output of dmesg | grep -Ei 'ata|sr|scd|scsi' and/or mail the complete dmesg output just via PM to me (or Neil??) to filter out and quote what's relevant (there might be stuff related not captured by the 'grep -Ei'), no need to blast all that over the 'net. -dnh [0] has gentoo.org a "paste" service for such stuff? (I'm just lazy) -- Carter: Besides, all we're really doing is plugging your ship into my battery. -- Stargate SG-1, 6x18 - Forsaken ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] reading data cd/dvd 2015-11-11 19:07 ` David Haller @ 2015-11-11 20:21 ` allan gottlieb 0 siblings, 0 replies; 8+ messages in thread From: allan gottlieb @ 2015-11-11 20:21 UTC (permalink / raw To: gentoo-user On Wed, Nov 11 2015, David Haller wrote: > Hello Neil, > > On Wed, 11 Nov 2015, Neil Bothwick wrote: >>On Wed, 11 Nov 2015 11:01:10 +0100, David Haller wrote: >>> Add the device(s) to fstab like so: >>> >>> /dev/cdrom /cdrom auto noauto,ro,user,users >>> 0 0 /dev/dvd /dvd auto >>> noauto,ro,user,users 0 0 >>> >>> if you have udev setting those symlinks, else use /dev/sr* instead. >>> >>> But what I think is missing is some feature of the desktop, aka >>> "device actions", possibly sys-apps/gnome-disk-utility and some >>> digging in the gnome-config. >> >>He doesn't have /dev/sr0 so no amount of fstab or automounter fiddling >>will mount a CD that isn't there. This appears to be a missing kernel >>option. > > Hm. Neil, you're right. From the OP though: > > <*> SCSI CDROM support > > which is CONFIG_BLK_DEV_SR which is sr_mod which provides /dev/sr*. So > he has sr_mod built into the kernel. No module to load. Should not > compile without the requires. Hm. Maybe a missing chipset-driver like > pata_atiixp as I use? > > Or systemd-udev etc. is hiccupping, so the kernel (sr_mod) provides > the dev "per se" but there's no /dev/sr* device-node created, so let's > start at the "bottom" and have a look at dmesg and some stuff ... > > @allan gottlieb: GACK the lack of /dev/sr0 is spurious. At the point I looked the (usb) drive was not plugged in. When plugged in we have brw-rw----+ 1 root cdrom 11, 0 Nov 11 14:55 /dev/sr0 Very sorry about that. What is true is that when I insert a known good disk in the drive I do *not* get a media subdirectory of /run. With the old laptop with a built-in drive with the same cdrom media I have /run/media/gottlieb and a subdirectory of that directory has the contents of the drive. All the following are on the new laptop with the drive installed via usb and the known good media inserted > - how is that drive connected? via usb > - Please mail the outputs of > > lsmod Module Size Used by hid_logitech_dj 9504 0 iwlmvm 142993 0 mac80211 425803 1 iwlmvm x86_pkg_temp_thermal 4567 0 iwlwifi 88075 1 iwlmvm > lspci 00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09) 00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09) 00:04.0 Signal processing controller: Intel Corporation Broadwell-U Camarillo Device (rev 09) 00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03) 00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03) 00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (3) I218-LM (rev 03) 00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03) 00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3) 00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3) 00:1c.4 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #5 (rev e3) 00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03) 00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03) 00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 03) 00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03) 01:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01) 02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59) > lsscsi | grep -E 'cd|process' Not on my system, what should I emerge? > hwinfo --cdrom > > (the latter is from sys-apps/hwinfo) all run as root. Returns nothing when the (usb) cdrom is out. When plugged in the output is 20: SCSI 300.0: 10602 CD-ROM (DVD) [Created at block.249] Unique ID: BobO.5ZGK3_euMPD Parent ID: 1GTX.w_zDrmylnoE SysFS ID: /class/block/sr0 SysFS BusID: 3:0:0:0 SysFS Device Link: /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.2/1-1.2:1.0/host3/target3:0:0/3:0:0:0 Hardware Class: cdrom Model: "HL-DT-ST DVDRAM AP70NS50" Vendor: usb 0x0e8d "HL-DT-ST" Device: usb 0x1887 "DVDRAM AP70NS50" Revision: "1.00" Serial ID: "KZ9F1GG3213" Driver: "usb-storage", "sr" Driver Modules: "usb_storage" Device File: /dev/sr0 (/dev/sg2) Device Number: block 11:0 (char 21:2) Features: CD-R, CD-RW, DVD, DVD-R, DVD-RW, DVD-R DL, DVD+R, DVD+RW, DVD+R DL, DVD-RAM, MRW, MRW-W Speed: 480 Mbps Module Alias: "usb:v0E8Dp1887d0000dc00dsc00dp00ic08isc02ip50in00" Config Status: cfg=new, avail=yes, need=no, active=unknown Attached to: #12 (USB Controller) Drive Speed: 24 Volume ID: "COD3E" Application: "NERO BURNING ROM" Creation date: "2007050910420000" > Oh, and please also paste the output of > > zgrep -F -e ATA -e SCSI /proc/config.gz > or > grep -F -e ATA -e SCSI /boot/config-`uname -r` > or > grep -F -e ATA -e SCSI /usr/src/linux/.config > > whatever matches your kernel best ;) CONFIG_ARCH_CLOCKSOURCE_DATA=y # CONFIG_ATARI_PARTITION is not set CONFIG_RELOCATABLE=y # CONFIG_ATALK is not set # CONFIG_ATA_OVER_ETH is not set # SCSI device support CONFIG_SCSI_MOD=y CONFIG_SCSI=y CONFIG_SCSI_DMA=y # CONFIG_SCSI_NETLINK is not set # CONFIG_SCSI_MQ_DEFAULT is not set CONFIG_SCSI_PROC_FS=y # SCSI support type (disk, tape, CD-ROM) CONFIG_SCSI_CONSTANTS=y # CONFIG_SCSI_LOGGING is not set # CONFIG_SCSI_SCAN_ASYNC is not set # SCSI Transports CONFIG_SCSI_SPI_ATTRS=y # CONFIG_SCSI_FC_ATTRS is not set # CONFIG_SCSI_ISCSI_ATTRS is not set # CONFIG_SCSI_SAS_ATTRS is not set # CONFIG_SCSI_SAS_LIBSAS is not set # CONFIG_SCSI_SRP_ATTRS is not set # CONFIG_SCSI_LOWLEVEL is not set # CONFIG_SCSI_LOWLEVEL_PCMCIA is not set # CONFIG_SCSI_DH is not set # CONFIG_SCSI_OSD_INITIATOR is not set CONFIG_ATA=y # CONFIG_ATA_NONSTANDARD is not set CONFIG_ATA_VERBOSE_ERROR=y CONFIG_ATA_ACPI=y CONFIG_SATA_PMP=y CONFIG_SATA_AHCI=y # CONFIG_SATA_AHCI_PLATFORM is not set # CONFIG_SATA_INIC162X is not set # CONFIG_SATA_ACARD_AHCI is not set # CONFIG_SATA_SIL24 is not set CONFIG_ATA_SFF=y # CONFIG_SATA_QSTOR is not set # CONFIG_SATA_SX4 is not set CONFIG_ATA_BMDMA=y # SATA SFF controllers with BMDMA CONFIG_ATA_PIIX=y # CONFIG_SATA_MV is not set # CONFIG_SATA_NV is not set # CONFIG_SATA_PROMISE is not set # CONFIG_SATA_SIL is not set # CONFIG_SATA_SIS is not set # CONFIG_SATA_SVW is not set # CONFIG_SATA_ULI is not set # CONFIG_SATA_VIA is not set # CONFIG_SATA_VITESSE is not set # PATA SFF controllers with BMDMA # CONFIG_PATA_ALI is not set CONFIG_PATA_AMD=y # CONFIG_PATA_ARTOP is not set # CONFIG_PATA_ATIIXP is not set # CONFIG_PATA_ATP867X is not set # CONFIG_PATA_CMD64X is not set # CONFIG_PATA_CYPRESS is not set # CONFIG_PATA_EFAR is not set # CONFIG_PATA_HPT366 is not set # CONFIG_PATA_HPT37X is not set # CONFIG_PATA_HPT3X2N is not set # CONFIG_PATA_HPT3X3 is not set # CONFIG_PATA_IT8213 is not set # CONFIG_PATA_IT821X is not set # CONFIG_PATA_JMICRON is not set # CONFIG_PATA_MARVELL is not set # CONFIG_PATA_NETCELL is not set # CONFIG_PATA_NINJA32 is not set # CONFIG_PATA_NS87415 is not set CONFIG_PATA_OLDPIIX=y # CONFIG_PATA_OPTIDMA is not set # CONFIG_PATA_PDC2027X is not set # CONFIG_PATA_PDC_OLD is not set # CONFIG_PATA_RADISYS is not set # CONFIG_PATA_RDC is not set CONFIG_PATA_SCH=y # CONFIG_PATA_SERVERWORKS is not set # CONFIG_PATA_SIL680 is not set # CONFIG_PATA_SIS is not set # CONFIG_PATA_TOSHIBA is not set # CONFIG_PATA_TRIFLEX is not set # CONFIG_PATA_VIA is not set # CONFIG_PATA_WINBOND is not set # CONFIG_PATA_CMD640_PCI is not set # CONFIG_PATA_MPIIX is not set # CONFIG_PATA_NS87410 is not set # CONFIG_PATA_OPTI is not set # CONFIG_PATA_PCMCIA is not set # CONFIG_PATA_PLATFORM is not set # CONFIG_PATA_RZ1000 is not set # CONFIG_PATA_ACPI is not set # CONFIG_ATA_GENERIC is not set # CONFIG_PATA_LEGACY is not set # NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may # CONFIG_USB_STORAGE_DATAFAB is not set # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set # CONFIG_ISCSI_IBFT_FIND is not set CONFIG_DEBUG_RODATA=y # CONFIG_DEBUG_RODATA_TEST is not set > And capture the output of 'dmesg' for pasting to e.g. pastebin.org[0], > or better e.g. just the output of > > dmesg | grep -Ei 'ata|sr|scd|scsi' > > and/or mail the complete dmesg output just via PM to me (or Neil??) to > filter out and quote what's relevant (there might be stuff related not > captured by the 'grep -Ei'), no need to blast all that over the 'net. > > -dnh > > [0] has gentoo.org a "paste" service for such stuff? (I'm just lazy) I put the entire dmesg output on my nyu website http://cs.nyu.edu/~gottlieb/dmesg thanks to all for your help and again sorry about looking for /dev/sr0 when the drive was not plugged in. allan ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] reading data cd/dvd 2015-11-11 9:05 ` Philip Webb 2015-11-11 10:01 ` David Haller @ 2015-11-11 15:49 ` Walter Dnes 1 sibling, 0 replies; 8+ messages in thread From: Walter Dnes @ 2015-11-11 15:49 UTC (permalink / raw To: gentoo-user On Wed, Nov 11, 2015 at 04:05:29AM -0500, Philip Webb wrote > My note from recently installing Gentoo on a newly built machine : > "for DVD drive, use BLK_DEV_SR to create /dev/sr0 ". > Use 'make menuconfig' + search to find that string, then set the option. > > BTW I try to do things as simply as possible : > using Fluxbox + Openrc, I mount /dev/sr0 on /mnt/dvd (as root), > then (as user) 'cd /mnt/dvd' & use Most/Mupdf/Feh/etc to look at the files. > Quick, effective, foolproof ... (smile) In my /etc/fstab, I have... /dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0 /dev/sr0 /mnt/dvd auto noauto,users,ro 0 0 ...to handle the 2 devices on my system. The corresponding lines will probably be different on your system. The advantage is that I can mount and umount as a regular user. BTW, I run ICEWM. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-11-11 20:21 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-11-11 4:01 [gentoo-user] reading data cd/dvd allan gottlieb 2015-11-11 9:05 ` Philip Webb 2015-11-11 10:01 ` David Haller 2015-11-11 16:18 ` Neil Bothwick 2015-11-11 17:45 ` allan gottlieb 2015-11-11 19:07 ` David Haller 2015-11-11 20:21 ` allan gottlieb 2015-11-11 15:49 ` Walter Dnes
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox