Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have an ide cd writer + dvd rom drive.
i have the following compiled (m for module, * for in-kernel)
(*) include ide/atapi cdrom support
(m) scsi emulation support
(*) scsi support
(m) scsi cd-rom support
(*) enable vendor-specific extensions
(m) scsi generic support
i have set the modules i compiled to load in /etc/rc.d/rc.modules
i have added 'append="hdd=ide-scsi" to /etc/lilo.conf and
ran lilo to have the changes added to the boot loader.
my fstab is a mess, i have deleted /dev/hdd, /dev/scd0 and
some others because i believed them to be symlinks, but i was
not sure.. so i might have messed up there.
(the rest of the lines do not concern the dvd-rom + cdrw)
when i run totem as root i can select both my dvd-rom and my
cdrw as devices, though as normal user it says in the console that
/dev/hdc can not be accessed - what's up with that?
cdrecord -scanbus gives me the following:
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: Permission denied. Cannot open '/dev/sg1'. 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'.
i tried searching through these forums and others (also the gentoo
forums), and used google. i found no way to fix my problem, and
i've spent over six hours trying to do so.
any suggestions are greatly appreciated and should i provide more
info, do not hesitate to ask.
edited
Your /etc/fstab should look similar to mine
/dev/dvdrom /mnt/dvdrom iso9660 noauto,owner,ro 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
The line /dev/hdd /mnt/cdrom2 iso9660 noauto,users,ro 0 0 does not belong in your /etc/fstab file( replace it with the /dev/cdrom).
/dev/dvdrom should be linked to /dev/hdc and /dev/cdrom should be linked to /dev/hdd. ln -s /dev/hdc /dev/dvdrom and ln -s /dev/hdd /dev/cdrom.
Both will need mount points as well. mkdir /mnt/dvdrom and mkdir /mnt/cdrom.
Last edited by quietguy47; 07-28-2003 at 03:49 PM.
i can mount /mnt/dvd and /mnt/cdrom without problems,
but cdrecord -scanbus still gives the following:
cdrecord: Permission denied. Cannot open '/dev/sg0'. 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'
all in all, thank you for your prompt replies, i will try more tomorrow.
wut r /dev/dvd and /dev/sr0 pointing to? u should change them to cdrom1 and cdrom2 or dvd and cdrom. they should point to /dev/scd0 and /dev/scd1. do ls -l /dev/dvd and ls -l /dev/sr0 to find out wut they're pointing to. then use ln -s to create your links pointing to scd0 and scd1. if u deleted scd0 recreate it. it's not a link it's the scsi device.
also u have 2 drives, so that's hdc and hdd. in lilo, u want append="hdc=scsi hdd=scsi" ive seen hdc=ide-scsi on a lot of guides but wut i wrote above works for me. give both a try, may not even matter. then do cdrecord -scanbus after all this c if it works. hope it does.......
oh damn u deleted /dev/hdd too..... put that back.
Last edited by eltongeoff; 07-28-2003 at 07:41 PM.
i can mount both the dvd-rom drive and my cdrw drive. can
you please enlighten me to why i should change the symlinks
and my /etc/fstab to something which would not even
allow mounting? as far as i can see my fstab is proper, it's
'just' the matter of getting /dev/sg* to have the right
permissions.
thank you all for your input, i will try to find more possible
solutions today.
i tried hdparm -i /dev/hdd, /dev/sr0 , but it tells me
that hdparm does not support those devices.
as far as i know i need dma, or else i will be forced to
hardly touch my pc when i am burning something to
prevent it from creating a coaster.
and ofcourse the problem which i found when trying
to run totem as normal user remains:
** (totem:12638): WARNING **: Couldn't read /proc/sys/dev/cdrom/info
libdvdnav: Using dvdnav version 1-beta12 from http://xine.sf.net
libdvdread: Using libdvdcss version 1.2.6 for DVD access
libdvdread: Could not open /dev/hdc with libdvdcss.
libdvdread: Can't open /dev/hdc for reading
libdvdnav: vm: faild to open/read the DVD
A few suggestions here, then I'll get onto a response
I prefer to compile SCSI support INTO the kernel versus module, mainly because is there ANY point where you don't wanna use your burner as a burner, and have a problem making it work otherwise (as a scd device?), not likely. All those extra modules are unnecessary 'clutter' to me
Ok, so now how to use hdparm on a scsi emulated device. The device you are emulating.
Let's say your burner is /dev/hdc and you are emulating scsi on that device to make it /dev/scd1 then you will:
/sbin/hdparm -Tt /dev/hdc
Or whatever device/options you want. They will apply to the scsi device
ok. thank you for your reply, but as i stated before,
when i try to use hdparm on /dev/hdd it says it is not
supported. i will recompile my kernel now to have
support for scsi + emulation instead of compiling them
as modules.
i will report back with any changes.
reporting back - i compiled all scsi + ide cd modules into
the kernel, but now cdrecord reports the following:
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 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'.
so the mess is back. i'll try figuring out how to fix it :|
*update*
changed it back to modules instead of in-kernel stuff; now
cdrecord-scanbus works again and mounting works. the totem +
dma problems remain.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.