Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2005 13:27:44 -0400
From:      "Justin R. Pessa" <JustinR.Pessa@sdf.lonestar.org>
To:        freebsd-questions@freebsd.org
Cc:        metrol.net@gmail.com
Subject:   Re: Adding my CDRW device to k3b
Message-ID:  <20050421172744.GA20221@SDF.LONESTAR.ORG>
In-Reply-To: <c4c5231305042018545d72f8c8@mail.gmail.com>
References:  <20050414230015.GA6327@SDF.LONESTAR.ORG> <c4c5231305042018545d72f8c8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--82I3+IH0IqGh5yIs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Apr 20 06:54PM, Michael Collette wrote:
> Before getting into the CDRW stuff, why K3B wouldn't run.  I would bet
> that you're using an X Display Manager, like kdm, gdm, or even xdm.=20
> You can't just su into root and run stuff like that.  You need to
> fully log out, then log into whatever wm you use as root.  When you do
> that, k3b should come up just fine.

I log into my system as root then launch kdm then log in as myself. What
do you recommend I do, log into kdm as root? Is there any way to get k3b
running under a normal user account?

>=20
> But it still probably won't pick up the devices :(  Oh, if life were
> simpler in FreeBSD land.
>=20
> First off, check that the following lines exist in your kernel config...
>=20
> device          scbus           # SCSI bus (required for SCSI)
> device          ch              # SCSI media changers
> device          da              # Direct Access (disks)
> device          sa              # Sequential Access (tape etc)
> device          cd              # CD
> device          pass            # Passthrough device (direct SCSI access)
> device          ses             # SCSI Environmental Services (and SAF-TE)
> device          atapicam
>=20
> Especially important is that last one, as it ain't in the GENERIC
> kernel last I checked.  That's the magical beast that'll get it all
> playing.  Get that in there and recompile your kernel.  You might get
> away with "kldload cam", but I honestly don't know if that's the same
> thing.

I was missing a few of the above items: sa, ses, and ch. My new kernel
is compiling now.

>=20
> Then you'll want to get permissions and links all setup proper every
> time you boot in.  Here you'll need to get /etc/devfs.conf all tweaked
> up proper for normal users.
>=20
> # /etc/devfs.conf
> perm    acd0    0666
> link    acd0    cdrom
> link    acd0    dvd
> perm    pass0   0666
> perm    cd0     0666
> perm    xpt0    0666
>=20
> You may want to instead link cd0 to cdrom and dvd, but these settings
> seem to work for me here.

Took care of this as well. I don't recall seeing anything about editing
devfs.conf in the handbook. Perhaps I overlooked it.
=20
>=20
> Make sure your /etc/rc.conf has the line...
>=20
> devd_enable=3D"YES"
>=20
> This is default in newer versions of FreeBSD.  Doesn't hurt to toss it
> in there thought.

All set now with this as well.

>=20
> The k3b port will have installed cdrdao, but it wouldn't have tweaked
> on it's permissions.  This one you'll most likely want to make it suid
> root.  Definitely not something you'd want to do on a production
> server box just out of paranoia, but reasonably safe on a desktop.
>=20
> # As root
> cd /usr/local/bin
> chmod u+s cdrdao

I stumbled upon these while researching my problem. Double checked the
above and it looks good.

>=20
> After jumping through all those fun loving hoops, it should work
> shweet.  In fact, k3b will automatically add your CD into the device
> list.  If k3b didn't put it in there for you, that's a clue that
> something isn't right.

I'm waiting for my new shiny kernel and we will see what happens! Thanks
so much for your help Michael! I look forward to making some illegitimate
music CDs and driving around dodging the law! :D=20

>=20
> Good luck!
>=20
> On 4/14/05, Justin R. Pessa <jstn@sdf.lonestar.org> wrote:
> > Allo!
> >=20
> > I'm having problems trying to get k3b to recognize my CDRW drive. I went
> > to "Settings" > "COnfigure k3b" > "Devices". When I add /dev/acd0 it
> > says "Could not find an additional device at /dev/acd0". Here is the
> > output of dmesg. The system sees the device fine, I folloed the handbook
> > instructions for CDRW setup.
> >=20
> > acd0: CDRW <TDK CDRW241040X/6.34> at ata1-master PIO4
> > cd0 at ata1 bus 0 target 0 lun 0
> > cd0: <TDK CDRW241040X 6.34> Removable CD-ROM SCSI-0 device
> > cd0: 16.000MB/s transfers
> > cd0: cd present [1 x 2048 byte records]
> >=20
> > $ ls -al /dev/acd0
> > crw-rw-rw-  1 root  jstn    4,  13 Apr  7 22:14 /dev/acd0
> >=20
> > I realize this is probably more a k3b problem than a FreeBSD problem,
> > but I feel as though there is something specific to FreeBSD I have
> > either missed or am over looking.
> >=20
> > Any ideas?
> >=20
> > Thanks!
> >=20
> > ._____________________
> > | Justin R. Pessa
> > | http://jstn.sdf1.org
> >=20
> >=20
> >=20
>=20
>=20
> --=20
> "When you come to a fork in the road....Take it"
> - Yogi Berra

Warm Regards,

- j

=2E__________________________________.
| Justin R. Pessa - BOFH=20
| www: http://jstn.sdf1.org=20
| pgp: http://jstn.sdf1.org/pgp.html
| irc: asdf @ irc.freenode.net
'

--82I3+IH0IqGh5yIs
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFCZ+KQPpr5wVVwYfURAlkMAJ460iTffZOUkBgTKY7c0zbQANLOZQCfWtKW
XkNKF6PEQKwSzOwbLrHw0ho=
=B/eD
-----END PGP SIGNATURE-----

--82I3+IH0IqGh5yIs--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050421172744.GA20221>