Warning: this is a htmlized version!
The original is across this link. |
####### # # E-scripts on hardware: the Acer 4x4x32 CD-RW # # Note 1: use the eev command (defined in eev.el) and the # ee alias (in my .zshrc) to execute parts of this file. # Executing this file as a whole makes no sense. # # Note 2: be VERY careful and make sure you understand what # you're doing. # # Note 3: If you use a shell other than zsh things like |& # and the for loops may not work. # # Note 4: I always run as root. # # Note 5: some parts are too old and don't work anymore. Some # never worked. # # Note 6: the definitions for the find-xxxfile commands are on my # .emacs. # # Note 7: if you see a strange command check my .zshrc -- it may # be defined there as a function or an alias. # # Note 8: the sections without dates are always older than the # sections with dates. # # This file is at <http://angg.twu.net/a/e/hw-cdrw.e> # or at <http://angg.twu.net/e/hw-cdrw.e.html>. # See also <http://angg.twu.net/emacs.html>, # <http://angg.twu.net/a/.emacs[.html]>, # <http://angg.twu.net/a/.zshrc[.html]>, # <http://angg.twu.net/escripts.html>, # and <http://angg.twu.net/>. # ####### ##### # # cdparanoia on the Acer CDRW drive # 99jan27 # ##### # «cdparanoia_acer» # We need both the SCSI-CDROM interface and the generic SCSI device # interface. Note: this is for the 2.2.xx kernels. rmmod ide-cd cd /boot/angg22/ # depmod *.o | sort | uniq insmod cdrom.o insmod scsi_mod.o insmod ide-scsi.o insmod sr_mod.o insmod sg.o # ln -sf hdd /dev/cdrom ln -sf scd0 /dev/cdrom laf /dev/cdrom # (find-k22file "Documentation/devices.txt" "SCSI CD-ROM") # (find-k22file "Documentation/devices.txt" "generic SCSI access") # (find-k22file "Documentation/Configure.help" "SCSI CDROM support") # (find-k22file "Documentation/Configure.help" "\nSCSI generic support") # The "sg"s are not default on Slink cd /dev/ laf sg* MAKEDEV sg laf sg* # (code-c-d "cdpa" "/usr/src/cdparanoia-3a9/") # (find-cdpafile "FAQ.txt" "generic") # (find-cdpafile "README" "generic") # (eeman "cdparanoia" "--force-generic-device") cd /tmp/ cdparanoia -v 26 toada_e_mambo_e_tango_e_etc.wav # Seems that "-g /dev/sg0" is unneccessary. cd /tmp/ /usr/src/bladesrc-081/bladeenc \ toada_e_mambo_e_tango_e_etc.wav \ toada_e_mambo_e_tango_e_etc.mp3 ###### # # Lixos # ###### cat /proc/modules echo $(awk '{print $1}' < /proc/modules) for i in $(awk '{print $1}' < /proc/modules); do rmmod $i done cd /boot/angg22/ # depmod *.o | sort | uniq insmod cdrom.o insmod scsi_mod.o insmod ide-scsi.o insmod sr_mod.o insmod sg.o # (find-k22file "Documentation/") # (find-k22file "Documentation/cdrom/") # (find-k22file "Documentation/Configure.help") # scsi0 : SCSI host adapter emulation for IDE ATAPI devices # scsi : 1 host. # Vendor: ATAPI Model: CD-R/RW 4X4X32 Rev: 3.DR # Type: CD-ROM ANSI SCSI revision: 02 # Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 # sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray # Uniform CDROM driver Revision: 2.55 cdparanoia -v 26 toada_e_mambo_e_tango_e_etc.wav cdparanoia -g /dev/sg0 -v 26 toada_e_mambo_e_tango_e_etc.wav /usr/src/cdparanoia-3a9/ agrep generic $(find *) hdd: status4:49eout: status=0xd0 { Busy } hdd: DMA di8:04ed ide-scsi: Strange, packet command initiated yet DRQ isn't asserted back. hdd: ATAPI reset complete ##### # # cdrecord 1.8a40 (comes with mkisofs) # 00feb10 # ##### # (code-c-d "cdrec" "/usr/src/cdrecord-1.8a40/") pdsc $SDEBIAN/dists/potato/main/source/otherosfs/cdrecord_1.8a40-1.dsc cd /usr/src/cdrecord-1.8a40/ debian/rules binary |& tee odrb # Always the dh_link problem... cd /usr/src/cdrecord-1.8a40/ make install |& tee omi grep INSTALL omi # NOTE: I'm overwriting the slink version with the new version! # cd /opt/schily/ cp -dpPvR * /usr/ \ |& tee /usr/src/cdrecord-1.8a40/omi2 rm -Rv /opt/schily/ # (find-cdrecfile "") # (find-cdrecfile "odrb") # (find-cdrecfile "debian/rules") # (find-cdrecfile "Gmake.linux") # (find-cdrecfile "Makefile") # (find-cdrecfile "RULES/") # (find-cdrecfile "INSTALL" "opt/schily") # (find-cdrecfile "omi") ##### # # mkisofs # 00feb09 # ##### # (eeman "mkisofs" "ownership") # Note: I have to add md5sums in the future... rm -Rv /tmp/cd mkdir /tmp/cd/ cd /big/ cp -dipPvR [9A-j]* /tmp/cd/ mkisofs -r -o /tmp/cdimage /tmp/cd |& tee ~/om laf /tmp/cdimage # another image: mkisofs -r -o /tmp/cdimage /mp3s/spider laf /tmp/cdimage # To test an image: # (find-angg ".zshrc" "loop_device") insmod /boot/angg22/loop.o mountloop0L /tmp/cdimage laf /L mount cd /L laf umountloop0 ##### # # cdrecord: writing CDs # 00feb10 # ##### # (find-vldifile "cdrecord.list") # (find-fline "/usr/doc/cdrecord/") # (find-fline "/usr/doc/cdrecord/README.multi") # (find-cdrecfile "README.multi") # (eeman "cdrecord") # (eeman "cdrecord" "fixated") # (eeman "cdrecord" "speed") # (code-c-d "sht" "$S/ftp/sunsite.unc.edu/pub/Linux/docs/HOWTO/") # (find-shtfile "CD-Writing-HOWTO") # (find-shtfile "CD-Writing-HOWTO" "cdrecord-1.6") # (find-shtfile "CD-Writing-HOWTO" "620 MB") # (find-shtfile "CD-Writing-HOWTO" " How to create a multi-session CD?") # (eeman "cdrecord") # (eeman "cdrecord" "-dummy") # (eeman "cdrecord" "-multi") # (eeman "cdrecord" "DIAGNOSTICS") # (find-fline "~/ocdr") # (find-cdrecfile "csi-bsd.c" "retryable") # (find-cdrecfile "libscg/scsi-bsd.c" "retryable") # (find-cdrecfile "libscg/scg/scgcmd.h" "retryable") # (find-cdrecfile "libscg/scsitransp.c" "retryable") cdrecord -scanbus cdrecord -dummy -v -multi speed=4 dev=0,0,0 /tmp/cdimage |& tee ~/ocdr cdrecord -v -multi speed=2 dev=0,0,0 /tmp/cdimage cdrecord -msinfo dev=0,0,0 # I'm getting errors here... /etc/init.d/cron stop cdrecord -scanbus cdrecord -dummy dev=0,0,0 -v /tmp/cdimage cdrecord -dummy speed=4 dev=0,0,0 -v /tmp/cdimage /etc/init.d/cron start