Archive for January, 2010

Linux print job administration

Friday, January 22nd, 2010

How to find every Printer Status :

lpc status

How to view print job for a particular printer:

lpq -Pprinter-spool-name
[root@Host~]# lpq -PGI_LBP
GI_LBP is ready and printing 
Rank    Owner   Job     File(s)                         Total Size<br />
active  xxx 231020  s.t-avprnt.0H9                  4096 bytes<br />
1st     xxxx   231023  s.t-avprnt.0HD                  4096 bytes</p>

How to remove a particular print job from a printer :

lprm -PGI_LBP 231020

How to remove all print job from a printer:

lprm -PGI_LBP -

How to sent a print job to a different printer

lpr -P printer-spool-name document
lpr -P GI_LBP wordbook.txt

end_request: I/O error, dev fd0, sector 0 (openfiler)

Tuesday, January 12th, 2010


When you try to open volume groups page from open filer, either its hang or take too long to open and at the same time you see bellow error log ..

Jan 12 09:07:44 filer2 kernel: end_request: I/O error, dev fd0, sector 0
Jan 12 09:07:44 filer2 kernel: Buffer I/O error on device fd0, logical block 0

Solution for openfiler:

Remove the floppy modules from kernel or disable it from kernel.

How to remove:

# lsmod | grep -i floppy

Output should be :
floppy 95465 0

Now remove the module :
# modprobe -r floppy

How to disable:

Ref :