Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dvd and cdrw drives show up as cdrom
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
abonventre
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2003
Posts: 80
Location: Boston, MA

PostPosted: Wed Oct 01, 2003 10:05 pm    Post subject: dvd and cdrw drives show up as cdrom Reply with quote

So I finally got my system to read both my drives, but the problem is that I want kde to know that the first drive is a DVD drive and the Second is a CD-RW. It thinks they are both CDROM.
dmesg | grep hd returns
Code:
hda: WDC WD400BB-75AUA1, ATA DISK drive
hdb: WDC WD800BB-00CAA1, ATA DISK drive
hdc: LITEON DVD-ROM LTD163, ATAPI CD/DVD-ROM drive
hdd: _NEC CD-RW NR-7800A, ATAPI CD/DVD-ROM drive


and here is my fstab:
Code:

# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.13 2003/07/17 19:55:18 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb1               /boot           ext2            noauto,noatime          1 1
/dev/hdb3               /               reiserfs        noatime                 0 0
/dev/hdb2               none            swap            sw                      0 0
/dev/hdc                /mnt/dvd        iso9660         noauto,user,ro          0 0
/dev/hdd                /mnt/cdrom      iso9660         noauto,user,ro          0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults                0 0


and my devfsd.conf:
Code:

# 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


i guess i'm just unclear on what they mean by scsi emulation and what I should do to make the cdrw section work. also shouldn't kde recognize that my dvd drive is not a cdrom?

thanks
-a
Back to top
View user's profile Send private message
M104
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jan 2003
Posts: 132
Location: Riverside, CA

PostPosted: Wed Oct 01, 2003 10:29 pm    Post subject: Reply with quote

From the Gentoo install docs:
Quote:
If you have an IDE cd burner, then you need to enable SCSI emulation in the kernel. Turn on "ATA/IDE/MFM/RLL support" ---> "IDE, ATA and ATAPI Block devices" ---> "SCSI emulation support" (I usually make it a module), then under "SCSI support" enable "SCSI support", "SCSI CD-ROM support" and "SCSI generic support" (again, I usually compile them as modules). If you also choose to use modules, then echo -e "ide-scsi\nsg\nsr_mod" >> /etc/modules.autoload.d/kernel-2.4 to have them automatically added at boot time.

Quote:
Important: If you set up SCSI emulation for an IDE cd burner earlier, then to get it to actually work you need to add an hdx=ide-scsi fragment to the kernel line in grub.conf (where "hdx" should be the device for your cd burner).

or for lilo you need to add append="hdd=ide-scsi" after your kernel section.


So... in your case you need to do (or make sure you have done) three things:

1. enable kernel module support for ide-scsi
2. enable autoloading of the modules at boot time
3. pass "hdd=ide-scsi" to the kernel at boot time through grub or lilo

I'm not sure about the KDE issue, but it might not change. For all practical purposes, a DVD-ROM is a CD-ROM capable of reading large disks.
_________________
"Pulling together is the aim of despotism and tyranny. Free men pull in all kinds of directions."
Terry Pratchett, The Truth
Back to top
View user's profile Send private message
strawberrix
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2003
Posts: 87
Location: Marseille, Fr

PostPosted: Tue Oct 07, 2003 8:50 pm    Post subject: Reply with quote

you should read that : https://forums.gentoo.org/viewtopic.php?t=20175
_________________
bash: unexpected end of life
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum