Floppy write protect error in linux host

This is a discussion on Floppy write protect error in linux host within the Networking/Device Communication forums, part of the General Programming Boards category; Hi Friends, I am facing the problem when using the floppy which is write protected.ie,In my application,we need to display ...

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    1

    Floppy write protect error in linux host

    Hi Friends,

    I am facing the problem when using the floppy which is write protected.ie,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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,762
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    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)...it 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, 05: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: 09-01-2003, 12:54 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21