Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-24-2004, 07:43 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
Unhappy Detecting write-protection on DVD-RAM media

My platform includes a DVD drive on RedHat. We have specified the hdc=ide-scsi option in lilo.conf so that a DVD-Ram device can be read and written. This all works fine, however if a user flips the write-protect tab, the driver still writes to the /dvd node where the device is mounted. From the users viewpoint, there are no signs of a problem until the device is un-mounted and re-mounted. At that point, of course, the data written is gone. I need a way to determine from the application level that the device is write-protected. Can you tell me how I might be able to read the status of the write-protect. I am certain there must be a way since the /var/log/messages file contains the following info:
Nov 22 19:37:42 radisys81 kernel: Current sd0b:00: sense key Data Protect
Nov 22 19:37:43 radisys81 kernel: Additional sense indicates Write protected

This seems to indicate that the driver is reporting the condition to the OS.

Thank you,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Write Protection amajos Linux - Networking 1 08-11-2005 08:58 PM
slow dvd-ram write since kernel 2.6.8 droebbel Linux - General 1 02-12-2005 08:46 AM
write protection speed_viper Linux - Software 5 10-02-2004 01:10 AM
Write protection question... floridagators1 Mandriva 5 05-22-2004 10:29 AM
Write Protection mfo6463 Linux - Newbie 5 03-31-2004 04:59 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration