Re: Can't burn cds

2007-07-27 Thread Andriy Babiy
> I had trouble getting CD burning to work, but the FreeBSD Handbook had the 
> info I needed to get it to work.  I had to modify my fstab and in order to 
> use k3b, I had to mount the CD on the command line first.  It won't work if 
> the CD is not mounted first, it's not as easy as it is in Linux, but it 
> works.

Have you read the k3b pkg-message? You can find it in k3b port directory.
It contains detailed step-by-step instructions about how to allow a 
non-privileged user to mount what they need. It works just fine.

Andriy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't burn cds

2007-07-27 Thread Paul Schmehl
--On Friday, July 27, 2007 04:54:18 + Pollywog 
<[EMAIL PROTECTED]> wrote:



On Friday 27 July 2007 02:38:31 Paul Schmehl wrote:

--On July 27, 2007 2:07:47 AM + Pollywog <[EMAIL PROTECTED]>

wrote:
> I had trouble getting CD burning to work, but the FreeBSD Handbook had
> the  info I needed to get it to work.  I had to modify my fstab and in
> order to  use k3b, I had to mount the CD on the command line first.  It
> won't work if  the CD is not mounted first, it's not as easy as it is
> in Linux, but it  works.

Thanks a lot.  You've made me feel like a complete idiot.  :-)

I'll try it tomorrow, but I'm pretty certain that is precisely what my
problem was.  The fact that I didn't think of it is rather embarrassing.



Well don't feel that way yet because I might be wrong and it might be
something else that is causing the problem you are having.   :)


Turns out that wasn't the solution.  I had to kldload atapicam for it to 
work.  Thanks, though.  You reminded me to never forget the simple things.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Can't burn cds

2007-07-27 Thread Paul Schmehl

--On Friday, July 27, 2007 13:53:19 +0100 Vince <[EMAIL PROTECTED]> wrote:


Sam Lawrance wrote:


On 27/07/2007, at 12:35 PM, Paul Schmehl wrote:


--On July 26, 2007 5:59:01 PM -0500 Josh Paetzel <[EMAIL PROTECTED]> wrote:


camcontrol isn't going to know anything about IDE devices, it only
knows about SCSI.


So why does it show the first cd, which is also ide?


The device listed by camcontrol seems to be an external hard drive.

That said, I think it's possible for camcontrol to talk to IDE devices
via atapicam.


according to
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.ht
ml if you dont want to use burncd for burning CDROMSs you need to use
atapicam (section 18.6.9)

either kldload atapicam
or
add the following line to the /boot/loader.conf file:

atapicam_load="YES"


That did the trick.  Thanks.

camcontrol devlist
 at scbus0 target 0 lun 0 (pass0,da0)
  at scbus1 target 0 lun 0 (pass1,da1)
   at scbus2 target 0 lun 0 (pass2,cd0)
   at scbus2 target 1 lun 0 (pass3,cd1)

--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Can't burn cds

2007-07-27 Thread Vince
Sam Lawrance wrote:
> 
> On 27/07/2007, at 12:35 PM, Paul Schmehl wrote:
> 
>> --On July 26, 2007 5:59:01 PM -0500 Josh Paetzel <[EMAIL PROTECTED]> wrote:
>>>
>>> camcontrol isn't going to know anything about IDE devices, it only
>>> knows about SCSI.
>>>
>> So why does it show the first cd, which is also ide?
> 
> The device listed by camcontrol seems to be an external hard drive.
> 
> That said, I think it's possible for camcontrol to talk to IDE devices
> via atapicam.

according to
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html
if you dont want to use burncd for burning CDROMSs you need to use
atapicam (section 18.6.9)

either kldload atapicam
or
add the following line to the /boot/loader.conf file:

atapicam_load="YES"

then, reboot your machine.

As root, you can run the following command to get the SCSI address of
the burner:

# camcontrol devlist

This didnt work for me last time I tried for some reason but I usually
just use burncd anyway.

Vince
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't burn cds

2007-07-27 Thread Sam Lawrance


On 27/07/2007, at 12:35 PM, Paul Schmehl wrote:

--On July 26, 2007 5:59:01 PM -0500 Josh Paetzel <[EMAIL PROTECTED]>  
wrote:


camcontrol isn't going to know anything about IDE devices, it only
knows about SCSI.


So why does it show the first cd, which is also ide?


The device listed by camcontrol seems to be an external hard drive.

That said, I think it's possible for camcontrol to talk to IDE  
devices via atapicam.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't burn cds

2007-07-26 Thread Pollywog
On Friday 27 July 2007 02:38:31 Paul Schmehl wrote:
> --On July 27, 2007 2:07:47 AM + Pollywog <[EMAIL PROTECTED]>
>
> wrote:
> > I had trouble getting CD burning to work, but the FreeBSD Handbook had
> > the  info I needed to get it to work.  I had to modify my fstab and in
> > order to  use k3b, I had to mount the CD on the command line first.  It
> > won't work if  the CD is not mounted first, it's not as easy as it is in
> > Linux, but it  works.
>
> Thanks a lot.  You've made me feel like a complete idiot.  :-)
>
> I'll try it tomorrow, but I'm pretty certain that is precisely what my
> problem was.  The fact that I didn't think of it is rather embarrassing.
>

Well don't feel that way yet because I might be wrong and it might be 
something else that is causing the problem you are having.   :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't burn cds

2007-07-26 Thread Paul Schmehl
--On July 27, 2007 2:07:47 AM + Pollywog <[EMAIL PROTECTED]> 
wrote:


I had trouble getting CD burning to work, but the FreeBSD Handbook had
the  info I needed to get it to work.  I had to modify my fstab and in
order to  use k3b, I had to mount the CD on the command line first.  It
won't work if  the CD is not mounted first, it's not as easy as it is in
Linux, but it  works.


Thanks a lot.  You've made me feel like a complete idiot.  :-)

I'll try it tomorrow, but I'm pretty certain that is precisely what my 
problem was.  The fact that I didn't think of it is rather embarrassing.


Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Can't burn cds

2007-07-26 Thread Paul Schmehl

--On July 26, 2007 5:59:01 PM -0500 Josh Paetzel <[EMAIL PROTECTED]> wrote:


camcontrol isn't going to know anything about IDE devices, it only
knows about SCSI.


So why does it show the first cd, which is also ide?


It's hard to see without the propmpts, but are you trying to use
burncd as root?  A normal user isn't going to have the neccessary
privs. to write a cd by default.


Yes.  All the commands were typed as root.


cdcontrol is simply telling you it can't read the TOC of the cd in the
drive, presumably because there's no cd in it.


There was a cd in the drive - a blank one I was trying to write to.


 I haven't used
cdcontrol in ages, but it's possible it needs root (in the case that
you were using it as a normal user with a disk in the drive)


All commands were typed as root.

Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Can't burn cds

2007-07-26 Thread Paul Schmehl
--On July 26, 2007 2:34:23 PM -0700 Bruce Caruthers 
<[EMAIL PROTECTED]> wrote:


Well, I'm using 6.2-RELEASE/amd64, and I get those same
"Input/ouput error" messages.  However, the discs I have
burned all worked fine, so I've assumed it was just
something the program tries to test for or request info
on, but can continue without.

Have you checked whether the burned discs actually work?

They're not being burned at all.  After the ioctl error message, the 
program returns to the prompt.


Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Can't burn cds

2007-07-26 Thread Pollywog


I had trouble getting CD burning to work, but the FreeBSD Handbook had the 
info I needed to get it to work.  I had to modify my fstab and in order to 
use k3b, I had to mount the CD on the command line first.  It won't work if 
the CD is not mounted first, it's not as easy as it is in Linux, but it 
works.

The pertinent sections of my fstab:

/dev/acd0   /cdrom  cd9660  ro,noauto   0   0
/dev/cd0  /usr/home/pollywog/cdrom  cd9660  ro,noauto,nodev,nosuid  0  0

I also had to add myself (my username) to the operator group.  To make it more 
convenient, I added an alias in my ~/.bash_aliases:

alias mountcd='mount -t cd9660 /dev/acd0 ~/cdrom'
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't burn cds

2007-07-26 Thread Josh Paetzel
Paul Schmehl wrote:
> Hopefully someone can point me in the right direction.
> 
> uname -v
> FreeBSD 6.0-SECURITY #0: Wed Feb 14 12:22:36 UTC 2007 
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
> 
> grep cd /var/run/dmesg.boot
> acd0: DVDROM  at ata0-master UDMA33
> acd1: CDRW  at ata0-slave UDMA33
> 
> camcontrol devlist
>  at scbus0 target 0 lun 0 (da0,pass0)
> 
> camcontrol inquiry 0:0:0
> pass0:  Fixed Direct Access SCSI-4 device
> pass0: Serial Number 2CAH3H6P
> pass0: 40.000MB/s transfers
> 
> camcontrol inquiry 0:1:0
> camcontrol: cam_open_btl: no passthrough device found at 0:1:0
> 
> camcontrol inquiry da0
> pass0:  Fixed Direct Access SCSI-4 device
> pass0: Serial Number 2CAH3H6P
> pass0: 40.000MB/s transfers
> 
> camcontrol inquiry da1
> camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
> cam_lookup_pass: No such file or directory
> cam_lookup_pass: either the pass driver isn't in your kernel
> cam_lookup_pass: or da1 doesn't exist
> 
> ls /dev/acd*
> /dev/acd0   /dev/acd1
> 
> cdcontrol -f /dev/acd1
> Compact Disc Control utility, version 2.0
> Type `?' for command list
> 
> cdcontrol> eject
> cdcontrol> close
> cdcontrol> info
> cdcontrol: getting toc header: Input/output error
> cdcontrol: Input/output error
> 
> burncd -ef /dev/acd1 data 
> /home/pauls/Downloads/RedHat/RHEL4-U5-x86_64-ES-disc1.iso fixate
> burncd: ioctl(CDRIOCWRITESPEED): Input/output error
> 
> What the heck is going on?  The device is there.  Dmesg shows that the kernel 
> knows what it is.  Yet I can't read or write cds, and, as you can see, 
> camcontrol thinks it's non-existant.  Yet cdcontrol will open and close the 
> drive but can't provide any info???  What am I missing?
> 
> -- 
> Paul Schmehl ([EMAIL PROTECTED])

camcontrol isn't going to know anything about IDE devices, it only
knows about SCSI.

It's hard to see without the propmpts, but are you trying to use
burncd as root?  A normal user isn't going to have the neccessary
privs. to write a cd by default.

cdcontrol is simply telling you it can't read the TOC of the cd in the
drive, presumably because there's no cd in it.  I haven't used
cdcontrol in ages, but it's possible it needs root (in the case that
you were using it as a normal user with a disk in the drive)

-- 
Thanks,

Josh Paetzel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't burn cds

2007-07-26 Thread Bruce Caruthers

On Thu Jul 26, 2007, Paul Schmehl wrote:
> Hopefully someone can point me in the right direction.
>
[...]
>
> burncd -ef /dev/acd1 data
> /home/pauls/Downloads/RedHat/RHEL4-U5-x86_64-ES-disc1.iso fixate
> burncd: ioctl(CDRIOCWRITESPEED): Input/output error
>
> What the heck is going on?  The device is there.  Dmesg shows that the
> kernel knows what it is.  Yet I can't read or write cds, and, as you can
> see, camcontrol thinks it's non-existant.  Yet cdcontrol will open and
> close the drive but can't provide any info???  What am I missing?


Well, I'm using 6.2-RELEASE/amd64, and I get those same
"Input/ouput error" messages.  However, the discs I have
burned all worked fine, so I've assumed it was just
something the program tries to test for or request info
on, but can continue without.

Have you checked whether the burned discs actually work?

Cheers,
   -bkc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"