Unable to open device

  • TasDvl9
  • Born
  • Born
  • TasDvl9
  • Posts: 1

Post 3+ Months Ago

Hi All,

A bit new here to Linux driver development so any help concerning this issue I am having would be greatly appreciated.

I'm trying to open up a device I created and which resides in /dev. The device is called vision1. Actually, I have 4 devices in the /dev directory(vision1, vision2, vision3, vision4).

I'm trying to do a 'cat /dev/vision1' and I keep getting back a message which says 'Unable to open device.' Since they have been created and I see them in the /dev directory I'm confused as to why I cannot open them. I do not get a 'permission denied' message so I don't think it has to do with the attributes of the file not being set for root.

Any ideas?

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2696
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Have you mounted them? Maybe I don't understand your question, but when you add a device, the dev is essentially the conduit for i/o. For you to view the contents, you need to mount it at a mount point. (Presuming it's a storage device of some kind).

man mount should help.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 36 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.