From owner-freebsd-questions@freebsd.org Sat Aug 25 13:30:31 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1D33D108AC26 for ; Sat, 25 Aug 2018 13:30:31 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 68AF570038 for ; Sat, 25 Aug 2018 13:30:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.99.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.183]) with ESMTPA (Nemesis) id 0Lm4GH-1fKDl42PwX-00ZcWD; Sat, 25 Aug 2018 15:30:19 +0200 Date: Sat, 25 Aug 2018 15:30:19 +0200 From: Polytropon To: Per Gunnarsson Cc: Per Gunnarsson via freebsd-questions Subject: Re: Problem with DVD Message-Id: <20180825153019.6eec8a3e.freebsd@edvax.de> In-Reply-To: <246aff18-4101-b0d3-130d-ed177e7c81d7@yahoo.com> References: <246aff18-4101-b0d3-130d-ed177e7c81d7@yahoo.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:xvEe02A6XqjX1jjQsq8ndrslCcSnPUNmoyHLnWu2qXnUwztyhEx 9jRYPuZWuhHc1U6H3FnQbdB9xSodgilxstb+Q+L6f0x2zn5dqDtXpRAHlwlfBzab+Q9kJyj 9UPiafX2qHYxprbPRypkgS5JPobn5eoqlP2j21y5hdEcAUCAanrdHiqdiU9YbgCAYzWXzQS 3jA3EeY4edo+7bvLAZ1Pg== X-UI-Out-Filterresults: notjunk:1;V01:K0:aTc2Egh06m0=:uMa5oNWipMCy1VNo8QpZf9 ouA+TY7JMXO6XRmGHO0DdUBxFYNh/+TR0nctsz/HutlrZF8pOxPaQUCbe/QNApMYTjab8MD0+ whhZ8H1D7yZXGdLFbMbshFugMUOD6V+FXSR0tyYfav8Le2xxGBIHvMqZuWoDX+SrwILdVZRGa uARK1fziJ3i+iioGMhMelYjEz4VjN+Kgt++vtsqg25e0FGyJqAlpdKOQJ4qJosxp7U4/8SzlG yqHIGy5TS+XRKWM+MIqnE8jj5BbaW4Bq7AEv8DUaJbse8xE3PlZgL2P42BvCJsoYxLeAx2wNf +LELMv/cJC1qWIKWaoTYPVipJQyBOlpd393VwTWBFBkbhORAhb0iGuoz1lYPb3PTbs4buXcvt 6HFz1eyizgztlKQkH8H8CeCZstZjhm0jeBKzoC5ZvqaGYH4WcJ6pk8Ye4FGd7encG1s40/rdN 1KsRP41h2SAnoJAlmRhtJI+teg4SwG6UVSFT39EIOMJ+WqLEq/MoUXQu663nUpAalbGEUA792 jvXcBMWBWPMgpvru74Pbm9uqUK2f41t8epEcwNDxvFQHeXoh4rUkpj5/uaXIARX6g7v/3U/CI kxM7+N90s6EVtCjG+bN7CQWkEl9l8eurfnmvOZY+w22FbTAuD0BAJuTvG9eBXd6HkpUcR3yAd K6w84XGlfeEfyFmHrgHGz60pTriBklqrWXpwGvhDoA3256ogQtSQV8CA6f9SFh8yakygWFlKb zbKCXJwWL2RlJ7iB X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2018 13:30:31 -0000 On Sat, 25 Aug 2018 11:16:57 +0200, Per Gunnarsson via freebsd-questions wr= ote: > I have problems contacting my DVD reader. >=20 >=20 > [per@konjak ~/Music/Big Fish]$ sudo cdrecord -scanbus > Password: > Sorry, try again. > Password: > Cdrecord-ProDVD-ProBD-Clone 3.01 (amd64-unknown-freebsd12.0) Copyright > (C) 1995-2015 Joerg Schilling > cdrecord: No error: 0. Kernel error! got periph match type > -1515870811!!. Cannot open or use SCSI driver. > cdrecord: For possible targets try 'cdrecord -scanbus'. > cdrecord: For possible transport specifiers try 'cdrecord dev=3Dhelp'. >=20 > crw-------=A0 1 root=A0 operator=A0 0x56 Aug 25 10:02 /dev/pass0 > crw-r-----=A0 1 root=A0 operator=A0 0x3e Aug 25 10:02 /dev/xpt0 > crw-rw----=A0 1 root=A0 operator=A0 0x75 Aug 25 10:02 /dev/cd0 >=20 > (I am member of the group operator) You should add the correct settings to /etc/devfs.conf: own cd0 root:operator perm cd0 0664 own xpt0 root:operator perm xpt0 0660 own pass0 root:operator perm pass0 0660 You're already in the "operator" group, so rw access is possible. You can see from your ls -l example that you're currently missing the required permissions to access the xpt and the pass device. Check the "camcontrol devlist" to see which pass device belongs to your optical media drive. You'll also see the bus:target:lun number (e. g., 0:0:0) which programs like cdrecord like to use (in the form 0,0,0). For example, you could use this command to burn an audio CD from premastered CDR files: % cdrecord dev=3D0,0,0 speed=3D8 driveropts=3Dburnfree -eject -v -dao -aud= io *.cdr Or a data CD fron the content of the directory directly without and intermediate ISO image: % mkisofs -r -J / | cdrecord dev=3D0,0,0 speed=3D8 -v -eject -t= ao -data - It's just a matter of setting up the permissions correctly. In this case, you won't need any "sudo" prefixing. :-) For more information, chech The FreeBSD Handbook: https://www.freebsd.org/doc/handbook/creating-cds.html https://www.freebsd.org/doc/handbook/creating-dvds.html --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...