Thread: Floppy write protect error in linux host

  1. #1
    Registered User
    Join Date
    Jan 2010

    Floppy write protect error in linux host

    Hi Friends,

    I am facing the problem when using the floppy which is write,In my application,we need to display the system error message when we are writing the files in to floppy which is write protected. if i use the server as windows,i am getting the proper error message "cannot copy.Its write protected".But the server is Linux,we did not receive the system error message.

    is there any idea about this ....

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Maybe if you posted your code, we could help.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Henderson, NV
    Yeah; it depends on how you ask. You could stat the device to see if the W permissions are there (on Linux/UNIX there are more reasons than just a write-protect for not being able to write to a device, permissions being one of them) sounds like you are trying to use something like system("copy file.x device.Y") and reading/interpreting the output...I think on Linux I would start by using stat() on the device...
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dabbling with Linux.
    By Hunter2 in forum Tech Board
    Replies: 21
    Last Post: 04-21-2005, 04:17 PM
  2. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM
  3. Linux Linux why Linux??
    By afreedboy in forum Tech Board
    Replies: 146
    Last Post: 01-21-2004, 06:27 PM
  4. linux and windows lookup host processes
    By Lynux-Penguin in forum Tech Board
    Replies: 0
    Last Post: 08-31-2003, 11:54 PM