LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-28-2012, 09:37 AM   #1
froff
Member
 
Registered: Nov 2005
Location: Poland
Distribution: Mint Mate, Ubuntu
Posts: 49

Rep: Reputation: 1
Question How to control hdd by ioctl excusivly preventing system from any communication?


hello
I would like to talk with sata or sas hdd by ioctl intreface with full exclusiveness.
It means, that I would like to make system to ignore device when hot-plugged - no initialisation, no start, no keep-alive requests - anything.
Is it possible in any way?
 
Old 11-28-2012, 10:36 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
IIRC, the hotplug system is script-driven to the extent that you can specify what is done when a hotplug event is recognized ... and, I think, you will need for certain events to occur in order for your authorized program (how authorized?) to be able to exert influence on it. Are you really asking for the check for and mounting of file systems not to happen?
 
1 members found this post helpful.
Old 11-28-2012, 05:58 PM   #3
froff
Member
 
Registered: Nov 2005
Location: Poland
Distribution: Mint Mate, Ubuntu
Posts: 49

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by sundialsvcs View Post
IIRC, the hotplug system is script-driven to the extent that you can specify what is done when a hotplug event is recognized ... and, I think, you will need for certain events to occur in order for your authorized program (how authorized?) to be able to exert influence on it. Are you really asking for the check for and mounting of file systems not to happen?
Thanks for answer.
Yes I want to avoid mounting (with exception to main system hdd of course) but not only. I don't know what special sata/scsi commands are sent to device by system. Maybe some keep-alive checks from time to time. I would like to block them all and make system unable to normally use of a drive.
By hot-plugging I mean not a external usb drives - I would like to connect and disconnect regular SATA and SCSI drives on the fly (it doesn't matter that it can be dangerous for hardware
Unfortunately there are no /etc/hotplug directory in ubuntu. Do they handle it in different way?
 
  


Reply

Tags
ioctl, sas, sata



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
adding SATA ext3 HDD into new Suse11.4 box with ext4 system HDD Mail2me Linux - Hardware 4 10-26-2011 07:47 PM
How to spin-up HDD using ioctl starvijay Linux - Hardware 2 05-09-2010 03:21 AM
Serial communication and hardware flow control CoderMan Programming 1 03-26-2009 03:26 AM
copied Debian install from dead hdd to new hdd.now system fails to boot :S deepclutch Debian 18 02-15-2008 07:17 AM
Real-time close loop control needs serial port communication areftaidi Linux - Software 6 01-25-2006 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:51 PM.

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