Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need a mechanism to disable the serial ports.
i have already tried setserial command, but it always throws the below
error:
setserial /dev/ttyS0 uart none port 0x0 irq 0
Cannot set serial info: Device or resource busy
Can i get to know different ways of disabling the serial port in RHEL
Hi All,
I need a mechanism to disable the serial ports. i have already tried setserial command, but it always throws the below
error:
setserial /dev/ttyS0 uart none port 0x0 irq 0
Cannot set serial info: Device or resource busy
Can i get to know different ways of disabling the serial port in RHEL
Are you running that command as root, because if you're not, it won't work. If you are running it as root, then something else is using that port, and has it locked. Find that process and kill it.
I tried it as root user only, but disable is not happening.
is it possible to disable it from grub or is there any way to disbale the interrupt lines of the serial port itself.
Grub is the bootloader, so no, you can't do it through grub.
Again, if you have a process running, you will have to kill that process first, before disabling the port. As I said, find that process, and kill it. Check your /etc/inittab for anything that references the serial port(s) you're interested in. You could also blacklist the serial port modules in /etc/modules.conf, so they won't be loaded at system boot time, and reload them manually if they're needed later. You can also (the best method) disable them in BIOS.
Since you're using RHEL, though, you are paying for RHEL support, right?? Why don't you call them, and they can help you?
Thanks for the reply.
I have a doubt, will it not affect any other process/module(ex: PPP, SLIP) if i blacklist/unload the serial module.
The word "doubt" and the word "question" mean different things.
And it will only affect something if it tries to USE the serial port. But your question is kind of pointless, since your originally stated goal is to DISABLE the serial ports anyway. If they're disabled, that will also cause any programs that try to access them problems, just as effectively as if you unloaded the serial modules.
AGAIN...you're using RHEL, so you're paying for RHEL support, right?? What you're paying for is support...have you called RHEL yet?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.