Re: DVD-RAM on FreeBSD 5.1R (LG 4040)?

2003-11-23 Thread Stefan A. Deutscher
On Mon, Nov 17, 2003 at 12:26:11AM +, Stefan A. Deutscher wrote:
> Hi all,
> 
>  just got an ATAPI LG 4040 multiwriter (CD-R/RW, DVD+/-R,+/-RW, and
> DVD-RAM) and wish to use it on FreeBSD 5.1. While still having to
> configure the system to address it in UDMA rather than PIO 4 mode, it
> installed fine. Reading and writing CDs in all possible variations works
> fine with burncd. Yet many of my scripts are written for cdrecord, so
> I'd rather stick with that tool instead of learing yet another one.
> 
> Two questions arise
> 
> (a) How do I get such a unit to treat DVD-RAM just as slow, random
> access optical media (much like an MO-Disk)?
> I do not wish to do burncd or cdrecord on it, I wish to write to it
> directly, if possible.
> Alas, I could not put a new disk label on the blank (disklabel says
> 'unknown type: auto'), and newfs does not like it either. So I am
> stuck.
> 
> (b) Google and the online handbook (for 4.x though) tell me that I
> need 
> 
>   device atapicam
>   device scbus
>   device pass
> 
> in my kernel to get to use the ATAPI unit like a SCSI unit
> (e.g. with cdrecord and friends). However, on 5.1R I cannot find any
> mention of an atapicam device, neither in GENERIC nor in the hints
> nor NOTES. Now, what's a man to do?
> 
> 
> I checked the freebsd.org FAQs and archives, google and the news groups,
> but most stuff there is not really conclusive. In case this is a FAQ,
> after all, please just post a pointer.
> 
> Any hints are much appreciated.
> 
>  Thanks in advance & cheers,
>Stefan


Hi all,

   the issue has been resolved, thanks go to Kent and Marc for their
pointers.
 
Adding the following, as Kent suggested, put the drive in UDMA-33 mode:

  # cat /boot/loader.conf
  # -- sysinstall generated deltas -- #
  userconfig_script_load="YES"
  hw.ata.atapi_dma="1"

It's load on the system is now somewhere in the background noise.

Ignoring that the atapicam device is not mentioned in the GENERIC nor
hints nor NOTES files in /usr/src/sys/i386/conf and instead following
the handbook (http://www.FreeBSD.org/cgi/man.cgi?query=atapicam&sektion=4)
by adding the line

  device atapicam # Allows ATAPI devices to addressed as if they were SCSI

to the kernel resulted after a kernel build and install in a system that
now

(a) does not block the eject button anymore

(b) shows the drive in the 'camcontrol devlist -v' listing as /dev/cd1

(c) allows me to actually write to and read from DVD-RAM is if it were a
slw hard drive.

disklabel -A cd1 # Tells me there is no label on the device
disklabel -w cd1 # labels the disk just fine
disklabel -A cd1 # shows the label
newfs /dev/cd1   # puts the file system on it
tunefs -n enable cd1 # enables softupdates
df /dev/cd1  # shows about 4.3 GB usable
mount /dev/cd1 /dvd  # mounts the device (-t cd9660 is rejected)



Tested on /usr with about 2.5 GB of data, the speed is
- tar -cvf /dvd/51usr.tar writes at about 1.4 MB/s (slow for a
  HD), i.e. 89 MB/min (as fast or slow as my DDS-3 DAT drive)
- tar -tvf /dvd/51usr.tar reads at about three times as fast at
  4.1 MB/s (i.e. 245 MB/min)

- cp -R /usr /dvd/ : writes slow, at about 110kb/s (or 6.6
  MB/min). 
  The first time around it got stuck after a couple of hours (when
  most of the data seemed to be transferred already), with ps
  telling its status being D+ (uniterruptible wait for device
  access) and MWCHAN as biowr. Neither camcontrol reset nor shutdown
  -r would work, had to power cycle the machine. Next time it
  worked. 


Thanks again to all & cheers,
 Stefan

-- 

Stefan A. Deutscher |
Donostia International Physics Center   | office: ++34-943-018174
Universidad del Pais Vasco, Facultad de Quimica | fax   : ++34-943-015600
Departamento de Fisica de Materiales| home  : ++34-943-270647
Apartado 1072, San Sebastian 20080, Spain   | email : [EMAIL PROTECTED]


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


Re: DVD-RAM on FreeBSD 5.1R (LG 4040)?

2003-11-21 Thread Stefan A. Deutscher
On Mon, Nov 17, 2003 at 04:13:25PM -0600, Marc Wiz wrote:
> On Mon, Nov 17, 2003 at 11:17:37PM +, Stefan A. Deutscher wrote:
> > On Mon, Nov 17, 2003 at 12:26:11AM +, Stefan A. Deutscher wrote:
> > > Hi all,
> > > 
> > >  just got an ATAPI LG 4040 multiwriter (CD-R/RW, DVD+/-R,+/-RW, and
> > > DVD-RAM) and wish to use it on FreeBSD 5.1. While still having to
> > > configure the system to address it in UDMA rather than PIO 4 mode, it
> > > installed fine. Reading and writing CDs in all possible variations works
> > > fine with burncd. Yet many of my scripts are written for cdrecord, so
> > > I'd rather stick with that tool instead of learing yet another one.
> > > Any hints are much appreciated.
> 
> Stuff deleted.
> 
> > > 
> > 
> > To add one more to the list of hints: It seems that FBSD disables the
> > 'eject' button on the DVD unit, that is, I cannot unload a DVD+/-RW w/o
> > a reboot. Any thoughts on that one would be appreciated, too.
> > 
> 
> Stefan,
> 
> have you verified that you have unmounted the file system for the
> DVD before pressing the eject button?

Yup, I did. It seems that, once it has mounted something via /dev/acd0
it does not want to give it away anymore. However, rebuilding the kernel
with the atapicam device fixed things:
I can use camcontrol, I can use the eject button, and, best of all, I
can actually label, newfs and use the disk.

  Cheers,
 Stefan
> 
> Also check out the man page for camcontrol.  It has eject functionality.
> 
> Marc
> 
> -- 
> Marc Wiz
> [EMAIL PROTECTED]
> Yes, that really is my last name.
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 

Stefan A. Deutscher |  (+1-423-)   voice  fax
The University of Tennessee, Knoxville  |  UTK  : 974-7838  974-7843
Department of Physics and Astronomy |  ORNL : 574-5897  574-1118
401, A. H. Nielsen Building |  home : 522-7845  522-7845
Knoxville, T.N. 37996-1200, USA |  email: [EMAIL PROTECTED]


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


Re: DVD-RAM on FreeBSD 5.1R (LG 4040)?

2003-11-17 Thread Marc Wiz
On Mon, Nov 17, 2003 at 11:17:37PM +, Stefan A. Deutscher wrote:
> On Mon, Nov 17, 2003 at 12:26:11AM +, Stefan A. Deutscher wrote:
> > Hi all,
> > 
> >  just got an ATAPI LG 4040 multiwriter (CD-R/RW, DVD+/-R,+/-RW, and
> > DVD-RAM) and wish to use it on FreeBSD 5.1. While still having to
> > configure the system to address it in UDMA rather than PIO 4 mode, it
> > installed fine. Reading and writing CDs in all possible variations works
> > fine with burncd. Yet many of my scripts are written for cdrecord, so
> > I'd rather stick with that tool instead of learing yet another one.
> > Any hints are much appreciated.

Stuff deleted.

> > 
> 
> To add one more to the list of hints: It seems that FBSD disables the
> 'eject' button on the DVD unit, that is, I cannot unload a DVD+/-RW w/o
> a reboot. Any thoughts on that one would be appreciated, too.
> 

Stefan,

have you verified that you have unmounted the file system for the
DVD before pressing the eject button?

Also check out the man page for camcontrol.  It has eject functionality.

Marc

-- 
Marc Wiz
[EMAIL PROTECTED]
Yes, that really is my last name.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: DVD-RAM on FreeBSD 5.1R (LG 4040)?

2003-11-17 Thread Stefan A. Deutscher
On Mon, Nov 17, 2003 at 12:26:11AM +, Stefan A. Deutscher wrote:
> Hi all,
> 
>  just got an ATAPI LG 4040 multiwriter (CD-R/RW, DVD+/-R,+/-RW, and
> DVD-RAM) and wish to use it on FreeBSD 5.1. While still having to
> configure the system to address it in UDMA rather than PIO 4 mode, it
> installed fine. Reading and writing CDs in all possible variations works
> fine with burncd. Yet many of my scripts are written for cdrecord, so
> I'd rather stick with that tool instead of learing yet another one.
> 
> Two questions arise
> 
> (a) How do I get such a unit to treat DVD-RAM just as slow, random
> access optical media (much like an MO-Disk)?
> I do not wish to do burncd or cdrecord on it, I wish to write to it
> directly, if possible.
> Alas, I could not put a new disk label on the blank (disklabel says
> 'unknown type: auto'), and newfs does not like it either. So I am
> stuck.
> 
> (b) Google and the online handbook (for 4.x though) tell me that I
> need 
> 
>   device atapicam
>   device scbus
>   device pass
> 
> in my kernel to get to use the ATAPI unit like a SCSI unit
> (e.g. with cdrecord and friends). However, on 5.1R I cannot find any
> mention of an atapicam device, neither in GENERIC nor in the hints
> nor NOTES. Now, what's a man to do?
> 
> 
> I checked the freebsd.org FAQs and archives, google and the news groups,
> but most stuff there is not really conclusive. In case this is a FAQ,
> after all, please just post a pointer.
> 
> Any hints are much appreciated.
> 

To add one more to the list of hints: It seems that FBSD disables the
'eject' button on the DVD unit, that is, I cannot unload a DVD+/-RW w/o
a reboot. Any thoughts on that one would be appreciated, too.

Cheers,
  Stefan



-- 

Stefan A. Deutscher |
Donostia International Physics Center   | office: ++34-943-018174
Universidad del Pais Vasco, Facultad de Quimica | fax   : ++34-943-015600
Departamento de Fisica de Materiales| home  : ++34-943-270647
Apartado 1072, San Sebastian 20080, Spain   | email : [EMAIL PROTECTED]


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


Re: DVD-RAM on FreeBSD 5.1R (LG 4040)?

2003-11-17 Thread Stefan A. Deutscher
On Sun, Nov 16, 2003 at 04:48:26PM -0800, Kent Stewart wrote:
> On Sunday 16 November 2003 04:26 pm, Stefan A. Deutscher wrote:
> > Hi all,
> >
> >  just got an ATAPI LG 4040 multiwriter (CD-R/RW, DVD+/-R,+/-RW, and
> > DVD-RAM) and wish to use it on FreeBSD 5.1. While still having to
> > configure the system to address it in UDMA rather than PIO 4 mode, it
> > installed fine. Reading and writing CDs in all possible variations works
> > fine with burncd. Yet many of my scripts are written for cdrecord, so
> > I'd rather stick with that tool instead of learing yet another one.
> >
> > Two questions arise
> >
> > (a) How do I get such a unit to treat DVD-RAM just as slow, random
> > access optical media (much like an MO-Disk)?
> > I do not wish to do burncd or cdrecord on it, I wish to write to it
> > directly, if possible.
> > Alas, I could not put a new disk label on the blank (disklabel says
> > 'unknown type: auto'), and newfs does not like it either. So I am
> > stuck.
> >
> > (b) Google and the online handbook (for 4.x though) tell me that I
> > need
> >
> >   device atapicam
> >   device scbus
> >   device pass
> >
> > in my kernel to get to use the ATAPI unit like a SCSI unit
> > (e.g. with cdrecord and friends). However, on 5.1R I cannot find any
> > mention of an atapicam device, neither in GENERIC nor in the hints
> > nor NOTES. Now, what's a man to do?
> >
> >
> > I checked the freebsd.org FAQs and archives, google and the news groups,
> > but most stuff there is not really conclusive. In case this is a FAQ,
> > after all, please just post a pointer.
> >
> > Any hints are much appreciated.
> 
> ruby# more /boot/loader.conf
> # -- sysinstall generated deltas -- #
> userconfig_script_load="YES"
> hw.ata.atapi_dma="1"
> 
> Enough of a hint :).
> 
> Kent

Thanks, Kent! Now the DVD drive works in DMA mode rather than PIO, and
writes to DVD+RW at 3.1 MB/s or about as fast as my SCSI CD-ROM can read
out the FBSD 5.1 image. Neat.

Alas, I still have no clue how to convince the DVD-RAM disk to
cooperate. Any thoughts?

 Cheers,
   Stefan

-- 

Stefan A. Deutscher |
Donostia International Physics Center   | office: ++34-943-018174
Universidad del Pais Vasco, Facultad de Quimica | fax   : ++34-943-015600
Departamento de Fisica de Materiales| home  : ++34-943-270647
Apartado 1072, San Sebastian 20080, Spain   | email : [EMAIL PROTECTED]


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


Re: DVD-RAM on FreeBSD 5.1R (LG 4040)?

2003-11-16 Thread Kent Stewart
On Sunday 16 November 2003 04:26 pm, Stefan A. Deutscher wrote:
> Hi all,
>
>  just got an ATAPI LG 4040 multiwriter (CD-R/RW, DVD+/-R,+/-RW, and
> DVD-RAM) and wish to use it on FreeBSD 5.1. While still having to
> configure the system to address it in UDMA rather than PIO 4 mode, it
> installed fine. Reading and writing CDs in all possible variations works
> fine with burncd. Yet many of my scripts are written for cdrecord, so
> I'd rather stick with that tool instead of learing yet another one.
>
> Two questions arise
>
> (a) How do I get such a unit to treat DVD-RAM just as slow, random
> access optical media (much like an MO-Disk)?
> I do not wish to do burncd or cdrecord on it, I wish to write to it
> directly, if possible.
> Alas, I could not put a new disk label on the blank (disklabel says
> 'unknown type: auto'), and newfs does not like it either. So I am
> stuck.
>
> (b) Google and the online handbook (for 4.x though) tell me that I
> need
>
>   device atapicam
>   device scbus
>   device pass
>
> in my kernel to get to use the ATAPI unit like a SCSI unit
> (e.g. with cdrecord and friends). However, on 5.1R I cannot find any
> mention of an atapicam device, neither in GENERIC nor in the hints
> nor NOTES. Now, what's a man to do?
>
>
> I checked the freebsd.org FAQs and archives, google and the news groups,
> but most stuff there is not really conclusive. In case this is a FAQ,
> after all, please just post a pointer.
>
> Any hints are much appreciated.
>

ruby# more /boot/loader.conf
# -- sysinstall generated deltas -- #
userconfig_script_load="YES"
hw.ata.atapi_dma="1"

Enough of a hint :).

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html

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


DVD-RAM on FreeBSD 5.1R (LG 4040)?

2003-11-16 Thread Stefan A. Deutscher
Hi all,

 just got an ATAPI LG 4040 multiwriter (CD-R/RW, DVD+/-R,+/-RW, and
DVD-RAM) and wish to use it on FreeBSD 5.1. While still having to
configure the system to address it in UDMA rather than PIO 4 mode, it
installed fine. Reading and writing CDs in all possible variations works
fine with burncd. Yet many of my scripts are written for cdrecord, so
I'd rather stick with that tool instead of learing yet another one.

Two questions arise

(a) How do I get such a unit to treat DVD-RAM just as slow, random
access optical media (much like an MO-Disk)?
I do not wish to do burncd or cdrecord on it, I wish to write to it
directly, if possible.
Alas, I could not put a new disk label on the blank (disklabel says
'unknown type: auto'), and newfs does not like it either. So I am
stuck.

(b) Google and the online handbook (for 4.x though) tell me that I
need 

  device atapicam
  device scbus
  device pass

in my kernel to get to use the ATAPI unit like a SCSI unit
(e.g. with cdrecord and friends). However, on 5.1R I cannot find any
mention of an atapicam device, neither in GENERIC nor in the hints
nor NOTES. Now, what's a man to do?


I checked the freebsd.org FAQs and archives, google and the news groups,
but most stuff there is not really conclusive. In case this is a FAQ,
after all, please just post a pointer.

Any hints are much appreciated.

 Thanks in advance & cheers,
   Stefan



-- 

Stefan A. Deutscher |
Donostia International Physics Center   | office: ++34-943-018174
Universidad del Pais Vasco, Facultad de Quimica | fax   : ++34-943-015600
Departamento de Fisica de Materiales| home  : ++34-943-270647
Apartado 1072, San Sebastian 20080, Spain   | email : [EMAIL PROTECTED]


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