LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 01-19-2005, 10:39 PM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.1 64-bit with multilib
Posts: 2,074

Rep: Reputation: 187Reputation: 187
Blacklisting hardware??


I have a Canon MP700 Printer , and it is not supported under linux, and until recently I have discovered that it is whats causing me trouble when I am trying to reinstall lilo after a kernel recompile, and so the only way around that I know of is to shut it off before going into linux, of course, thats annoying, so I need to know two things. Under linux how do i tell what port my printer is detected under (it is conntect to a usb2.0 pci card on my pc) , and how do I blacklist it, so that linux doesn't even recognize that there is a printer hooked up.

If you wanted know exactly why it is giving me trouble, it is because this multifunction printer has card slots, and so under linux it shows up as /sda , and when I try to run /sbin/lilo when my printer is on I get an error stating that it was unable to update /dev/sda, and i don't even know why the hell it is even trying to mess with /dev/sda when i don't have any scsi hard drives, only ide.
 
Old 01-19-2005, 11:30 PM   #2
cythrawll
Member
 
Registered: Nov 2004
Location: IL, USA
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 31
I know you can blacklist modules with hotplug in /etc/hotplug/blacklist. and I believe /dev/sda is used for usb storage as well as scsi. I really don't understand what your problem is. when exactly does it give the error? when the system is booting? before you see the penguin? (which is lilo). or maybe doing a hotplug scan? is sda being mounted in /etc/fstab or /etc/mtab??
 
Old 01-19-2005, 11:30 PM   #3
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
It reads the card slots as mountable drives. Because they're USB, it names them like SCSI drives.
 
Old 01-19-2005, 11:35 PM   #4
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.1 64-bit with multilib
Posts: 2,074

Original Poster
Rep: Reputation: 187Reputation: 187
I can boot just fine, the only time I get an error is when i try to update lilo , the error is like 'cannot write to /sda , read-only' and there is nothing in my fstab that indicates I have /sda mounted
 
Old 01-19-2005, 11:46 PM   #5
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.1 64-bit with multilib
Posts: 2,074

Original Poster
Rep: Reputation: 187Reputation: 187
ok this is what is mounted so far when I start up normally

Code:
root@hideyoshi:/home/samurai# mount
/dev/hda2 on / type reiserfs (rw)
proc on /proc type proc (rw)
/dev/hda1 on /ntfs-c type ntfs (ro,noexec,nosuid,nodev,umask=0000)
/dev/hda4 on /fat32-d type vfat (rw,noexec,nosuid,nodev,umask=0000)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
root@hideyoshi:/home/samurai#
and this is what happens when I run lilo when the printer is on

Code:
root@hideyoshi:/home/samurai# lilo -v
LILO version 22.5.9, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2004 John Coffman
Released 08-Apr-2004 and compiled at 00:18:50 on May 21 2004.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/hda2
Fatal: open /dev/sda: Read-only file system
root@hideyoshi:/home/samurai#
and this is what happens when it is off...

Code:
root@hideyoshi:/home/samurai# lilo -v
LILO version 22.5.9, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2004 John Coffman
Released 08-Apr-2004 and compiled at 00:18:50 on May 21 2004.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/hda2
Warning: Partition 2 on /dev/hda is not marked Active.
Using MENU secondary loader
Calling map_insert_data

Boot image: /boot/vmlinuz -> vmlinuz-ide-2.4.26
Added Linux2.4.26 *

Writing boot sector.
/boot/boot.0302 exists - no boot sector backup copy made.
root@hideyoshi:/home/samurai#
and as for the warning about Partition 2 not being marked as active, thats cause partition 2 is my reiserfs partition, and for some reason I can't install lilo on the mbr, so lilo resides on root of reiserfs, and ntfs obviously marked as active, since i use win2kpro and i use NTLDR to invoke either windows or linux
 
Old 01-20-2005, 12:00 AM   #6
cythrawll
Member
 
Registered: Nov 2004
Location: IL, USA
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 31
what does lilo.conf look like, im curious?
 
Old 01-20-2005, 12:07 AM   #7
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.1 64-bit with multilib
Posts: 2,074

Original Poster
Rep: Reputation: 187Reputation: 187
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda2
#compact        # faster, but won't work on all systems.
#prompt
#timeout = 5
# VESA framebuffer console @ 800x600x64k
vga = 788
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0     # paranoia setting
# End LILO global section
# Linux bootable partition config begins
#image = /boot/vmlinuz
#  root = /dev/hda2
#  label = Linux2.4.26
#  read-only
image = /boot/vmlinuz
  root = /dev/hda2
  label = Linux2.4.26
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
#image = /boot/vmlinuz
#  root = /dev/hda2
#  label = Linux2.6.10
#  read-only
# Linux bootable partition config ends
in case you are wondering why i have the last part commented out, it is because I am still not quite ready to install the new kernel yet, i still have some more settings to adjust, so this is more of a test.
 
Old 01-20-2005, 12:13 AM   #8
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.1 64-bit with multilib
Posts: 2,074

Original Poster
Rep: Reputation: 187Reputation: 187
Oh, I found out where my printer is connected, lsusb (duh jeebizz!!!)

Code:
oot@hideyoshi:/usr/src/linux# lsusb
Bus 005 Device 001: ID 0000:0000
Bus 005 Device 002: ID 045e:0029 Microsoft Corp. IntelliMouse Optical
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 04a9:2630 Canon, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
so isn't there any way i can get linux to just ignore whats on Bus 003??
 
Old 01-20-2005, 12:23 AM   #9
cythrawll
Member
 
Registered: Nov 2004
Location: IL, USA
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 31
what if you tried booting up to 2.6 really quick? i know for a fact that the newer kernel often fixes problems with usb, because of better usb support
 
Old 01-20-2005, 12:27 AM   #10
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.1 64-bit with multilib
Posts: 2,074

Original Poster
Rep: Reputation: 187Reputation: 187
hmm, thats an idea, but how am I supposed to do that, if i can't get /sbin/lilo to update the boot record in the first place? :-P
 
Old 01-20-2005, 12:33 AM   #11
cythrawll
Member
 
Registered: Nov 2004
Location: IL, USA
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 31
well why don't you unplug the printer? just for the second it takes to update lilo.
 
Old 01-20-2005, 12:59 AM   #12
eelriver
Member
 
Registered: May 2004
Location: san francisco
Distribution: Slackware 10.2 kernel 2.6.13, Gentoo amd64, Some mish-mash of programs that started with slack 9.0
Posts: 165

Rep: Reputation: 30
Yeah, unplugging the printer is probably the easiest thing to do. I was going nuts one day trying to reload lilo after a kernel update. The damn thing just worked minutes ago...!
Then I googled and found out lilo has problems reloading when there's a usb-storage device attached. Doohh, reach around the back of the laptop, unplug the flashdrive and I was in business.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant get blacklisting script (sshblack) working blkcamarozr28 Linux - Security 1 10-19-2005 11:44 PM
IPcop and IP blacklisting English_Man Linux - Security 1 07-01-2005 06:20 PM
amavisd-new blacklisting TLDs packetz Linux - Software 0 04-11-2005 01:07 PM
How do you add hardware? (Esp. USB hardware) Travis86 Linux - Newbie 3 05-30-2003 11:24 PM
Hardware RAID PCI Card (Hardware?) MasterC Linux - Hardware 1 03-01-2003 01:19 AM


All times are GMT -5. The time now is 02:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration