Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Kernel SCSI emulation for CD burning - the truth

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
125 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
Author
Message
DArtagnan
l33t
l33t
User avatar
Posts: 942
Joined: Tue Apr 30, 2002 11:23 am
Location: Israel, Jerusalem
Contact:
Contact DArtagnan
Website

  • Quote

Post by DArtagnan » Sun Jun 15, 2003 4:38 am

Hehe, mine is also working but as u can see I have the following WARNINGS

Code: Select all

cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
in the following during the burn:

Code: Select all

liviu@starshooter burner $ cdrecord -v speed=2 dev=0,1,0 livecd-experimental-rc4-4-20-03.iso 
Cdrecord 2.01a14 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,1,0'
scsibus: 0 target: 1 lun: 0
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'LG      '
Identifikation : 'CD-RW CED-8120B '
Revision       : '1.03'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC SWABAUDIO 
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 5185536 = 5064 KB
FIFO size      : 4194304 = 4096 KB
Track 01: data    55 MB        
Total size:       63 MB (06:19.97) = 28498 sectors
Lout start:       64 MB (06:21/73) = 28498 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 6
  Is not unrestricted
  Is not erasable
  Disk sub type: Medium Type C, low Beta category (C-) (6)
  ATIP start of lead in:  -11231 (97:32/19)
  ATIP start of lead out: 359849 (79:59/74)
Disk type:    Short strategy type (Phthalocyanine or similar)
Manuf. index: 27
Manufacturer: Prodisc Technology Inc.
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 331351
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
Starting to write CD/DVD at speed 4 in real TAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 0
Track 01:   55 of   55 MB written (fifo 100%) [buf  99%]  -0.-x.
Track 01: Total bytes read/written: 58359808/58359808 (28496 sectors).
Writing  time:  102.339s
Average write speed   3.7x.
Min drive buffer fill was 99%
Fixating...
Fixating time:   61.362s
cdrecord: fifo had 920 puts and 920 gets.
cdrecord: fifo was 0 times empty and 794 times full, min fill was 90%.
Settings:
------------
starshooter root # cat /etc/modules.autoload

Code: Select all

nvidia
ide-scsi
sg
sr_mod
cat /etc/devfsd.conf

Code: Select all

...
...
...
# Uncomment this to let PAM manage devfs
#REGISTER        .*           CFUNCTION /lib/security/pam_console_apply_devfsd.so pam_console_apply_single $devpath

# Autoload the sg module if generic scsi driver compiled as module.
#LOOKUP          ^sg$      MODLOAD ACTION sg

# Give the cdrw group write permissions to /dev/sg0
# This is done to have non root user use the burner (scan the scsi bus)
REGISTER        ^scsi/host.*/bus.*/target.*/lun.*/generic    PERMISSIONS root.cdrw 660

# General note for the following auto creation of symlinks:
#
#    If you change the device that the symlink points to,
#    you should also remove the symlink before restarting
#    devfsd

# Create /dev/cdrom for the first cdrom drive
LOOKUP          ^cdrom$          CFUNCTION GLOBAL mksymlink cdroms/cdrom0 cdrom
REGISTER        ^cdroms/cdrom0$   CFUNCTION GLOBAL mksymlink $devname cdrom
UNREGISTER      ^cdroms/cdrom0$   CFUNCTION GLOBAL unlink cdrom
/boot/grub/grub.conf

Code: Select all

title=Gentoo1.4 System
root (hd0,0)
kernel (hd0,0)/boot/bzImage-linux-2.4.20-ck7 root=/dev/hda2 ide-scsi=/dev/hdd apci=off
All for one and one for All
--

MACPRO machine...
Top
blueworm
l33t
l33t
Posts: 962
Joined: Fri May 09, 2003 3:21 pm

  • Quote

Post by blueworm » Fri Jun 20, 2003 11:42 am

Also, don't run your burner using a 80-pin IDE cable, be sure to use a 40-pin one - AFAIK, no ATAPI device should use one of these "UDMA" cables which are often characterised by a blue connector on the mainboard side.
I firmly believe this to be untrue.
ATA66 cables (80pin cables with the colored ends) Will work perfectly
using the Cable Select settings, and often resolve device conflicts.
Give it a try change cable and set device jumpers to cable select. This also allows you you to sepate to optical devices to separate ide buses whilst still using ATA66/100 hardrives.

Kerframil I am havig problems with cdrw speed it records perfectly at x16 but cdrw is x40 and it used to work under Mandrake 9.0 untill one fine day it stopped working I have since moved on to Gentoo.
I have a detailed thread here http://forums.gentoo.org/viewtopic.php?t=53746
Thankyou in advance.
Top
MrChucho
n00b
n00b
User avatar
Posts: 44
Joined: Wed Feb 05, 2003 3:10 pm
Location: Tulsa, OK
Contact:
Contact MrChucho
Website

  • Quote

Post by MrChucho » Thu Jun 26, 2003 1:53 pm

I followed this tutorial and got my burner working. But, I still had to add "ide-scsi=hdc" to my grub.conf. If I *don't* want to do this -- and let devfs handle everything, how/where do I indicate that my cd burner is "hdc"??
Top
DArtagnan
l33t
l33t
User avatar
Posts: 942
Joined: Tue Apr 30, 2002 11:23 am
Location: Israel, Jerusalem
Contact:
Contact DArtagnan
Website

  • Quote

Post by DArtagnan » Mon Jul 07, 2003 5:13 am

MrChucho wrote:I followed this tutorial and got my burner working. But, I still had to add "ide-scsi=hdc" to my grub.conf. If I *don't* want to do this -- and let devfs handle everything, how/where do I indicate that my cd burner is "hdc"??
Yes, how to do this?
Regards
All for one and one for All
--

MACPRO machine...
Top
Jimbow
Guru
Guru
User avatar
Posts: 597
Joined: Tue Feb 18, 2003 11:41 pm
Location: Silver City, NM

  • Quote

Post by Jimbow » Mon Jul 07, 2003 7:30 am

I've recently had an annoying problem with my combo CDROM/DVD drive when playing DVD's. On most DVD's when I got to the last few minutes of the program, the DVD player would crash: mplayer, xine, and ogle.

I played around and emerged different libraries, all to no effect. Then reading the Ogle faq I noticed that they recommend using SCSI emulation to fix some strange bugs (I had converted from SCSI emulation to ide-cdrom about a month or two ago). So I recompiled my kernel removing ide-cdrom and including ide-scsi, etc and this fixed the problem.
After Perl everything else is just assembly language.
Top
FastTurtle
Guru
Guru
Posts: 547
Joined: Tue Sep 03, 2002 4:01 pm
Location: Flakey Shake & Bake Caliornia, USA

Re: warning

  • Quote

Post by FastTurtle » Fri Jul 25, 2003 2:39 am

[qoute]As for the report above from perry saying that the kernel option was needed, well yes, things seem pretty inconsistent. I had that problem also on one machine, but not on the original machine (which worked exactly according to my original instructions above) so I guess you do have to have that in some situations. I can't put my finger on it but there must be some rationale behind it.[/qoute]

Could it have something to do with Via Chipsets:? I've got one and it has to be setup with the kernel option at boot, although I have 2 drives, the second is a plain cdrom and it's running in ide mode w/o prob. :
Top
FastTurtle
Guru
Guru
Posts: 547
Joined: Tue Sep 03, 2002 4:01 pm
Location: Flakey Shake & Bake Caliornia, USA

  • Quote

Post by FastTurtle » Fri Jul 25, 2003 2:46 am

[qoute]Perhaps devfs isn't too intelligent about determing whether a device is a CD or DVD. In fact, maybe it has no way to distinguish the difference. Have a look at devfsd.conf (the relevant section of which xamn has conveniently posted above, and look at the REGISTER lines and the "Change foo to suit your setup" comments. Maybe they need tweaking for your setup.[/quote]

It got me thinking because mine does the same thing. I suspect what causes it is the emulation mode itself. IDE is the prefered method for IDE devices and scsi is going to be the secondary mode. Due to this, when you build both into the kernel, that is why CDRecord can't locate an IDE burner, the IDE driver has it locked and defined as IDE, thus not allowing scsi emulation a chance to talk to the device. :idea:
Top
eeknay
Guru
Guru
User avatar
Posts: 402
Joined: Mon Jul 07, 2003 8:31 pm
Location: EndOfTheRainbow

  • Quote

Post by eeknay » Fri Aug 01, 2003 5:19 pm

hi,

well first to say this guide is awesome, i finally got it working, BUT
while using k3b i have 7 writers now ;) not bad huh?
well, unforunally i just need ONE. The other thing is that my reader is now not visible anylonger, since i got the writer working.

i'm using a notebook with a combo-driver CD/DVD/CD-RW
before using this guide this combo was working on /dev/hdc
my well discovered writer is now /dev/scsi/host0/bus0/target0/lunX, as i said before its there 7 times.

any ideas?
Linda: "The holiday season is time of celebration for most but it is also the time to remember the tragic suffering of the less fortunate."
Morbo: "Earthlings do not yet know the meaning of suffering."
Top
glamdringlfo
n00b
n00b
User avatar
Posts: 15
Joined: Wed Jul 30, 2003 2:51 pm
Location: Grand Rapids, MI
Contact:
Contact glamdringlfo
Website

  • Quote

Post by glamdringlfo » Fri Aug 01, 2003 8:08 pm

Hey, great guide. Thanks a lot.

I got it working after a while...the hardest part was figuring out that the modules had to be loaded in the right order, and then adding the appropriate flags to the kernel at boot.

Keep up the good work, guys. ; )

Skal!
Glamdringlfo
Top
lamaistres
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Tue Dec 17, 2002 8:09 am
Location: Seattle

  • Quote

Post by lamaistres » Sat Aug 16, 2003 11:09 pm

Thank you for the nice tutorial. I now have burning capabilities.

I use gtoaster to burn CD's and if I try and record as a normal user I get a cdrecord warning about possible buffer underuns. I fixed this by editing visudo and using the command "sudo gtoaster". Works great. :D

Thanks again.
"Always do what you want, and say what you feel,
because those who mind don't matter, and those
who matter don't mind." -- Dr. Suess
Top
bryon
Apprentice
Apprentice
User avatar
Posts: 163
Joined: Fri Feb 14, 2003 7:08 pm
Contact:
Contact bryon
Website

external usb

  • Quote

Post by bryon » Tue Aug 19, 2003 2:48 am

Any pointers on what I should do if it is a external USB one. More specifically a HP 8210e that runs at 4x. One of the many things that I have to have enabled is the mass storage support right?
Top
Snakey
n00b
n00b
Posts: 10
Joined: Tue Aug 19, 2003 12:40 am

Adding hdX=ide-scsi, VT bootsplashes fail to load?

  • Quote

Post by Snakey » Thu Aug 21, 2003 11:05 am

Hello people, after reading this guide for SCSI emulation, I encountered a weird problem. 1st of all I'm a total newbie when it comes to linux and I couldn't understand this.
I setup my bootsplash (instructions here!: http://forums.gentoo.org/viewtopic.php?t=49036) and when it came to the part of adding the bootsplash screen to the other VT's, everything ran fine until I added the hdc=ide-scsi to the kernel line on my grub.conf. Does anyone have any idea what the problem is or if there's anywhere else I could add that hdc=ide-scsi so it wouldn't conflict with my VT bootsplash screens? Thank you! :)
Top
dorkus
n00b
n00b
Posts: 3
Joined: Wed Sep 17, 2003 11:31 pm

  • Quote

Post by dorkus » Thu Sep 18, 2003 3:22 pm

hi, im new and thought i would ask, in case this isnt the same problem.

i got gentoo on a dell inspiron 5100. everything works except the cd drive.
i installed using the drive, but in normal operation it doesnt let me access anything on the cd. i know it has something to do with scsi-ide stuff, but im kind of a newb with linux. any help is appreciated. sorry i cant provide more info, i don't have the computer here. the cd drive is a CD-RW/DVD drive.
Top
silux
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Sat May 24, 2003 5:00 pm

/dev/pg* ? what the heck

  • Quote

Post by silux » Tue Sep 23, 2003 3:18 am

I followed the tutorial and I don't think I'm missing anything but when I did:

Code: Select all

cdrecord -scanbus
I get the following error:

Code: Select all

root@alb-24-195-61-82 mattolsen # cdrecord -scanbus
Cdrecord-Clone 2.01a18 (i686-pc-linux-gnu) Copyright (C) 1995-2003 J�rg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
Any help would be appreciated.... also I was wondering if anyone had played with using cdrecord without setting them up as scsi and if this was possible yet.
Top
gwion
Apprentice
Apprentice
User avatar
Posts: 212
Joined: Thu May 15, 2003 11:32 am
Location: Helsinki
Contact:
Contact gwion
Website

Re: /dev/pg* ? what the heck

  • Quote

Post by gwion » Tue Sep 23, 2003 10:48 pm

silux wrote:I followed the tutorial and I don't think I'm missing anything but when I did:

Code: Select all

cdrecord -scanbus
I get the following error:

Code: Select all

root@alb-24-195-61-82 mattolsen # cdrecord -scanbus
Cdrecord-Clone 2.01a18 (i686-pc-linux-gnu) Copyright (C) 1995-2003 J�rg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
Any help would be appreciated.... also I was wondering if anyone had played with using cdrecord without setting them up as scsi and if this was possible yet.
same for me, would be thankful for anyhelp (with another install 4 months ago on EXACTLY the same box it worked like a charm...)

thanks...
But the best thing about being an older goth? The fact that no one tries to tell you "It's a phase!" anymore.
--
gwion@jabber.org
Top
Caffeine
Guru
Guru
User avatar
Posts: 401
Joined: Wed Jul 17, 2002 7:21 pm
Location: Melbourne, Australia

Re: /dev/pg* ? what the heck

  • Quote

Post by Caffeine » Thu Sep 25, 2003 1:16 pm

silux wrote:I followed the tutorial and I don't think I'm missing anything but when I did:

Code: Select all

cdrecord -scanbus
I get the following error:

Code: Select all

root@alb-24-195-61-82 mattolsen # cdrecord -scanbus
Cdrecord-Clone 2.01a18 (i686-pc-linux-gnu) Copyright (C) 1995-2003 J�rg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
Any help would be appreciated.... also I was wondering if anyone had played with using cdrecord without setting them up as scsi and if this was possible yet.
Try the thread "ATAPI burning using XCDRoast? It's possible!"
http://forums.gentoo.org/viewtopic.php?t=32009
Top
cirrus
n00b
n00b
Posts: 18
Joined: Tue Oct 14, 2003 8:54 pm
Location: Germany

  • Quote

Post by cirrus » Wed Oct 29, 2003 11:44 pm

This is for people who tried every configuration one can think of including the hints from this thread and all efforts were worth nothing....


TURN OFF APIC !!!!!!


In Grub.conf insert option "noapic"
lilo?!?


Sometimes it does magic!
On my system it did.

Karsten.
Top
ruckles
n00b
n00b
Posts: 4
Joined: Wed Nov 05, 2003 11:08 pm

Reading audio cds

  • Quote

Post by ruckles » Wed Dec 10, 2003 3:26 pm

Having done all this successfully and burning audio cds no problem, is there any way to actually play the cds (using the same device, the burner on hdc)? When I use xmms and try to find the disk, /mnt/cdrom comes up empty. However, if I put a data disk in, xmms finds it.
xmms plays mp3 files fine, I just can't get it to find my audio cds.
I have the cdplayer plug-in enabled and set to device:/mnt/cdrom and dir:/mnt/cdrom
I'm told I don't need to mount audio cds.
I've tried commenting out the line in...modules.d/cdr, no luck.
I've looked all over for a solution and I am totally, completely lost.
Thanks.
Top
guitou
Guru
Guru
Posts: 534
Joined: Thu Oct 02, 2003 1:00 pm
Location: France

  • Quote

Post by guitou » Wed Dec 10, 2003 3:46 pm

For AudioCD, you have to give the path of the device. Should be /dev/cdrom, or /dev/cdroms/cdrom[0|1], maybe also /dev/sr0 (as you enabled scsi emulation), or even /dev/ide?/host?/bus...
Only the last one is the real path of the device, then wether you give this one, wether you give one of the previous, assuming it is linked to the right device.
Top
ruckles
n00b
n00b
Posts: 4
Joined: Wed Nov 05, 2003 11:08 pm

  • Quote

Post by ruckles » Wed Dec 10, 2003 6:03 pm

Sorry, I meant to say device:/dev/cdrom.
Top
pamplemousse
Tux's lil' helper
Tux's lil' helper
Posts: 89
Joined: Mon Feb 09, 2004 9:00 am

  • Quote

Post by pamplemousse » Sun Mar 28, 2004 8:04 pm

Hello,

On my computer, I have an IDE cdrom reader and a SCSI CDR writer. I use this post to try to use my IDE cdrom without SCSI emulator. But it didn't work for me. So I decided to go back to previous configuration, by modifying config files for another time. But now, my cdrom reader freezes when I want to mount a cdrom. And 1 or 2 min. after that, all my computer freezes. I get this from cdrecorder (after a long time scan):

Code: Select all

cdrecord dev=ATAPI -scanbus 
Cdrecord-Clone 2.01a25 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.8'.
scsibus0:
        0,0,0     0) 'MITSUMI ' 'CD-ROM FX320S !B' 'q01 ' Removable CD-ROM
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) *
        1,1,0   101) 'YAMAHA  ' 'CDR400t         ' '1.0q' Removable CD-ROM
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *
But scan in XCDRoast seems not to work and XCDroast freezes.
My SCSI CD burner works correctly, I can burn CD with no problems. I have tried with and without SCSI emul. support in kernel. No success. The link /dev/cdroms/cdrom0 points to ide/host0/bus1/target0/lun0/cd. What sort of thing should I verify?

Here my devfsd.conf:

Code: Select all

# Sample /etc/devfsd.conf configuration file.
# Richard Gooch  <rgooch@atnf.csiro.au>         3-JUL-2000
#
# The Gentoo Linux Team - http://www.gentoo.org/
#     - Many fixes, etc
#
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/devfsd.conf,v 1.16 2003/05/18 21:51:34 azarah Exp $

# Enable full compatibility mode for old device names. You may comment these
# out if you don't use the old device names. Make sure you know what you're
# doing!
REGISTER        .*           MKOLDCOMPAT
UNREGISTER      .*           RMOLDCOMPAT

# You may comment out the above and uncomment the following if you've
# configured your system to use the original "new" devfs names or the really
# new names
#REGISTER       vc/.*        MKOLDCOMPAT
#UNREGISTER     vc/.*        RMOLDCOMPAT
#REGISTER       pty/.*       MKOLDCOMPAT
#UNREGISTER     pty/.*       RMOLDCOMPAT
#REGISTER       misc         MKOLDCOMPAT
#UNREGISTER     misc         RMOLDCOMPAT

# You may comment these out if you don't use the original "new" names
REGISTER        .*           MKNEWCOMPAT
UNREGISTER      .*           RMNEWCOMPAT

# Enable module autoloading. You may comment this out if you don't use
# autoloading
LOOKUP          .*           MODLOAD

# Uncomment the following if you want to set the group to "tty" for the
# pseudo-tty devices. This is necessary so that mesg(1) can later be used to
# enable/disable talk requests and wall(1) messages.
REGISTER        ^pty/s.*     PERMISSIONS -1.tty  0600
REGISTER        ^pts/.*      PERMISSIONS -1.tty  0600

# Uncomment this if you want permissions to be saved and restored
# NB: Do NOT change the following!
# Do not do this for pseudo-terminal devices
REGISTER        ^pt[sy]/.*   IGNORE
CHANGE          ^pt[sy]/.*   IGNORE
CREATE          ^pt[sy]/.*   IGNORE
DELETE          ^pt[sy]      IGNORE
REGISTER        ^log         IGNORE
CHANGE          ^log         IGNORE
CREATE          ^log         IGNORE
DELETE          ^log         IGNORE
REGISTER        .*           COPY    /lib/dev-state/$devname $devpath
CHANGE          .*           COPY    $devpath /lib/dev-state/$devname
CREATE          .*           COPY    $devpath /lib/dev-state/$devname
DELETE          .*           CFUNCTION GLOBAL unlink /lib/dev-state/$devname
RESTORE         /lib/dev-state

# You can force default like this :
# PERMISSIONS owner_and_group access_mode

# Video4Linux devices
REGISTER       v4l/.*       PERMISSIONS root.video 660

# ALSA/OSS stuff
# Comment/change these if you want to change the permissions on
# the audio devices
LOOKUP          snd          MODLOAD ACTION snd
LOOKUP          dsp          MODLOAD
LOOKUP          mixer        MODLOAD
LOOKUP          midi         MODLOAD
REGISTER        sound/.*     PERMISSIONS root.audio 660
REGISTER        snd/.*       PERMISSIONS root.audio 660


# Uncomment this to let PAM manage devfs
#REGISTER        .*           CFUNCTION /lib/security/pam_console_apply_devfsd.so pam_console_apply_single $devpath

# Autoload the sg module if generic scsi driver compiled as module.
#LOOKUP          ^sg$      MODLOAD ACTION sg

# Give the cdrw group write permissions to /dev/sg0
# This is done to have non root user use the burner (scan the scsi bus)
REGISTER        ^scsi/host.*/bus.*/target.*/lun.*/generic    PERMISSIONS root.cdrw 660

# General note for the following auto creation of symlinks:
#
#    If you change the device that the symlink points to,
#    you should also remove the symlink before restarting
#    devfsd

# Create /dev/cdrom for the first cdrom drive
LOOKUP          ^cdrom$          CFUNCTION GLOBAL mksymlink cdroms/cdrom0 cdrom
REGISTER        ^cdroms/cdrom0$   CFUNCTION GLOBAL mksymlink $devname cdrom
UNREGISTER      ^cdroms/cdrom0$   CFUNCTION GLOBAL unlink cdrom

# Create /dev/dvd for the second cdrom drive
# (change 'cdroms/cdrom1' to suite your setup)
# NOTE: We add the fully qualified path here, else some apps
#       have problems to resolve the true device (drip comes to mind)
#LOOKUP          ^dvd$           CFUNCTION GLOBAL mksymlink ${mntpnt}/cdroms/cdrom1 dvd
#REGISTER        ^cdroms/cdrom1$  CFUNCTION GLOBAL mksymlink ${devpath} dvd
#UNREGISTER      ^cdroms/cdrom1$  CFUNCTION GLOBAL unlink dvd

# Create /dev/cdrw for the first cdrom on the scsi bus
# (change 'sr0' to suite your setup)
LOOKUP          ^cdrw$          CFUNCTION GLOBAL mksymlink sr0 cdrw
REGISTER        ^sr0$           CFUNCTION GLOBAL mksymlink $devname cdrw
UNREGISTER      ^sr0$           CFUNCTION GLOBAL unlink cdrw

# Create /dev/mouse
LOOKUP          ^mouse$          CFUNCTION GLOBAL mksymlink misc/psaux mouse
REGISTER        ^misc/psaux$     CFUNCTION GLOBAL mksymlink $devname mouse
UNREGISTER      ^misc/psaux$     CFUNCTION GLOBAL unlink mouse

# Manage USB mouse
REGISTER        ^input/mouse0$   CFUNCTION GLOBAL mksymlink $devname usbmouse
UNREGISTER      ^input/mouse0$   CFUNCTION GLOBAL unlink usbmouse
REGISTER        ^input/mice$     CFUNCTION GLOBAL mksymlink $devname usbmouse
UNREGISTER      ^input/mice$     CFUNCTION GLOBAL unlink usbmouse

# Support additional config installed by packages ...
INCLUDE /etc/devfs.d

Thanks for any advice.
AMD Sempron 2800+ 64bit, 512 Mo RAM, ATI Radeon 7000 (64Mo), Sound Blaster Audigy 2 Value, 32-bit installation.

Pamplemousse aka Sun Wukong, DJ of The Metropolisians
http://themetropolisians.free.fr
http://www.myspace.com/themetropolisians
Top
Massimo B.
Veteran
Veteran
User avatar
Posts: 1940
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

  • Quote

Post by Massimo B. » Tue Dec 11, 2018 7:53 am

As of today, what is required in the kernel?

Code: Select all

# cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.02a09 (x86_64-pc-linux-gnu) Copyright (C) 1995-2016 Joerg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open or use SCSI driver.
I have:

Code: Select all

# zgrep SCSI /proc/config.gz |grep -v "^#"
CONFIG_BLK_SCSI_REQUEST=y
CONFIG_SCSI_MOD=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_MQ_DEFAULT=y
CONFIG_SCSI_PROC_FS=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_LOWLEVEL=y
HP ZBook Power G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56085
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Dec 11, 2018 10:08 am

Massimo B.

You need CONFIG_CHR_DEV_SG=y

Optical writers appear as two devices.
A character device for control and a block device for data. You need to be in the cdrom group to write optical media.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Massimo B.
Veteran
Veteran
User avatar
Posts: 1940
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

  • Quote

Post by Massimo B. » Tue Dec 11, 2018 10:12 am

Thank you very much. The question was about xcdroast, in the meanwhile I found that k3b is working fine. Just for understanding, how can k3b work with the writer without the kernel support?
HP ZBook Power G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
Massimo B.
Veteran
Veteran
User avatar
Posts: 1940
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

  • Quote

Post by Massimo B. » Tue Dec 11, 2018 10:39 am

NeddySeagoon wrote:You need CONFIG_CHR_DEV_SG=y
That one was built as module, but not loaded. As it does not seem to be auto-loaded, I'm going to add it to /etc/conf.d/modules.
HP ZBook Power G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
Post Reply

125 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic