View Full Version : [ubuntu] How to undo "rmmod lp"?
ario
June 26th, 2009, 08:36 AM
Hi
I accidentally ran the command:
sudo rmmod lp
so the lp kernel module removed from my kernel.
Are there Anyone knows how to undo that?
Thanks for your attention guys.
keplerspeed
June 26th, 2009, 08:42 AM
EDIT: See sisco's post. Please use modprobe in this case.
Well:
sudo insmod lp
To load the module into the kernel.
sisco311
June 26th, 2009, 08:44 AM
sudo modprobe lp
or reboot the computer.
ario
June 26th, 2009, 01:18 PM
Thanks a lot sisco. I tried that. But it showed me this:
insmod: can't read 'lp': No such file or directory
So where "lp" must be? I think I must first "cd" to the directory of my kernel modules and then install one of them. If so, Where lp and other kernel modules are?
Thanks for you attention again:)
sisco311
June 26th, 2009, 01:47 PM
just use the modprobe command instead of insmod.
keplerspeed
June 26th, 2009, 01:57 PM
insmod filename
Is used to add a module independently (for example one that doesnt load on boot), and you muse edit /etc/modules to load a newly added module on boot . Modprobe is the best option for this case, as modprobe will reload the removed lp module. IF you look at /etc/modules, it contains lp.
ario
June 28th, 2009, 07:53 AM
Thanks guys.
I used "modprobe lp" as you said, But it returns nothing to me. Is it ok?
I seen "/etc/modules" file. It contains "lp", So it seems that my ubuntu still loads "lp" at boot time.
So I think the main problem is SOLVED.:D
---------------------
No its not solved yet!
ario
July 10th, 2009, 10:30 AM
Hi guys.
I tried all you said. my /etc/modules contains "lp" in it. but I cant see any file like "lp" or "parport0" in my /dev directory.
The parallel port completely removed from my ubuntu and I don't now how to bring it back.
Please help me.
Thanks for your attention.
ario
October 2nd, 2010, 02:38 PM
No matter what I do, Linux will not recognize my Printer port. I can not see any partport0 or lp file in /dev directory.
Any help?
ario
November 9th, 2010, 10:14 AM
Bump!
Yellow Pasque
November 9th, 2010, 04:10 PM
Is your parallel port enabled in the BIOS?
ario
November 10th, 2010, 08:16 PM
Is your parallel port enabled in the BIOS?
Yes. I must add that I need Parallel port for programming micro-controller chips. Right now I use to reboot to windows, start codevision software, and program my chip, and the parallel port works well there:( Which is annoying!
Any Idea?
ario
November 16th, 2010, 02:56 PM
BUMP!
-----------------------
Ubuntu 10.04 32bit parallel port isn't detected! :(
ario
November 23rd, 2010, 10:36 PM
Any Idea?
Yellow Pasque
November 24th, 2010, 02:29 AM
Does lspci -vv see the parallel port?
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.