SlackwareThis Forum is for the discussion of Slackware 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 am running slack 10.1 and running kernel-2.6.11.8 which i just finished doing, am having a problem with the permissions for the cd player.
I have seen several posts as it is actually seeing my burner its fstab is
/dev/sr0 /mnt/burner iso9660 noauto,ro,user 0 0
I thought I would try something I read in another post about this and that was to
chmod 666 /dev/sr0
Ok so it saw the cd rom then and brought up a track list but that was it Slackware froze couldn't unfreeze it ctrl+F1 ..ctrl+Esc+F1 nothing but the power off button would turn it off.
What did I do? what can I do to get the device working normally?
I don't use 2.6 kernels (yet) but I believe to have read
that since 2.6.8 ide-scsi is broken (on purpose) ... so if
the burner isn't an actual SCSI device you may want
to omit the ide-scsi and use the ATA interface ... versions
2.0.1x of cdrecord should be working with the newer
kernels.
On another note: 2.6 kernels use udev, the perms are
set on each boot according to /etc/udev
I've had the same problem. It seems like no matter what I do with groups, permissions, etc..I cant get permission to burn a CD as a regular user. So after trying everything else, I finally just made a SUID wrapper program. For example, using fireburner
as root:
burner.c
+------------------------------------------------------------+
main () {
setuid (0,0) ;
system ("/usr/local/bin/fireburner") ;
}
this way at least I can burn CD's as a regular user. Even though, fireburner IS running as root, it's better than nothing!
The only advantage to this over 'sudo fireburner' is that you don't have to enter a password or edit the sudoers file. But it makes for a nice quick way for users to burn CD's
If your drive is still being seen as /dev/sr0, remove/ comment out the line "append=hdc:ide-scsi" (or something like that) in /etc/lilo.conf, run /sbin/lilo and restart. Your drive should return to its correct designation, probably /dev/hdc or /dev/hdd
I have a Lite On LTR-52327S. The original configuration was /dev/hdc, which /dev/cdrom pointed to. If left like this, running cdrecord --scanbus found nothing. The only way to get the cdrw recognized was to append the ide-scsi to lilo.conf. In which case, the designation became /dev/sr0.
I tried adding myself to the disk group [for /dev/hdc], I tried adding myself to the cdrom group and tried adding myself to both. And I tried adding a 'burners' group, which had write access to disk and cdrom. In none of these cases was I able to burn as a regular user.
Have any of you done this and actually burned a cd as a regular user? If so, maybe you can post EXACTLY what you did step by step and your configuration. Like I said, I have tried everything, and nothing worked.
Further, when adding 'append=ide-scsi /dev/hdc' to lilo.conf, running a program like 'eject' would no longer eject the cdrw tray, because it was no longer recognized as /dev/cdrom. You had to enter 'eject /dev/sr0'
So finally, after reading everything I could find on the subject, and trying everything I mentioned, I finally added "append=ide-scsi /dev/sr0' to lilo.conf and changed /dev/cdrom to point to /dev/sr0.
This way, cdrecord --scanbus would recognize the cdrw, and 'eject' would eject the cdrw. I added the wrapper that I mentioned above, so that as a user I could launch fireburner.
So please, like i said, if any of you have actually burned a cd as a regular user, please post your config and step by step what you did to get permission to burn as a regular user! Phew....
1) You don't need ide-scsi (it's broken, don't touch it) or any append lines. Get rid of all append lines for the CDRW in lilo.conf
2) Ignore --scanbus - it can't pick up IDE devices (and it even tells you it has problems with post 2.5 kernels). Doesn't mean cdrecord can't write to the device.
3) Just use the /dev/hdX name for the device (not ATAPI:0,0,1 or anything else)
e.g.
cdrecord dev=/dev/hdd some.iso
4) Permissions:
The only 'permissions' I have changed is that I am a member of cdrom.
I am actually still using the original 10.1 2.4.29 kernel, but what you said about scanbus not picking up IDE devices explains everything. I assumed that because cdrecord --scanbus could not identify the device, that it wasn't working! So all I really have to do is put back the original configuration and use /dev/hdc, and add myself to the cdrom group. cool!
One last question though, cdrdao asks you to use the format of ATAPI:0,0,0, but can you go ahead and use /dev/hdc with cdrdao, or do you still have to use the ATAPI:0,0,0 format?
If your drive is still being seen as /dev/sr0, remove/ comment out the line "append=hdc:ide-scsi" (or something like that) in /etc/lilo.conf, run /sbin/lilo and restart. Your drive should return to its correct designation, probably /dev/hdc or /dev/hdd
I don't the append=hdc:ide-scsi line in fstab I just went and removed everything scsi from my kernel and rebuilt it in order to have it work, but I seem to have removed dma from my hard disk said on boot it will slow so I am going to have to track that down. My Fstab now reads:
dev/sr0 does not appear to point to a valid CD device. This may be because:
a) CD support is not present in your machine
b) You do not have the correct permissions to access the CD drive
c) /dev/sr0 is not the CD drive.
Press 'Set device' to go to a dialog where you can set the device, or press 'Quit' to quit the CD player
Please read what I said carefully. Remove the append line from:
Code:
/etc/lilo.conf
rerun /sbin/lilo, restart. fstab has *nothing* to do with that.
/dev/sr0 problems are coming up because ide-scsi is not being used, but the append line in LILO prevents the drive from being seen as an IDE device (it caught me out the first time I upgraded to the 2.6 series).
Once that's done, find out what your CDRW/CD is being seen as and correct the /dev/sr0 entry in /etc/fstab (as I said before, it's probably /dev/hdc or /dev/hdd).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.