You get this error when trying to umount a partition: umount /mnt/sdb1/ umount: /mnt/sdb1: device is busy umount: /mnt/sdb1: device is busy At a root prompt: Run fuser see man fuser for options fuser -v /mnt/sdb1/ Output of fuser USER PID ACCESS COMMAND...
Linux Tools
Using Linux/Cygwin to split files into chunks for transfer to CD
Question: How can I tar up about 12GB of files on a linux box and then split the files into 700MB chucks? Answer: You can use the following 2 methods on any GNU tooled box or using the Cygwin environment on Windows. Using tar, gzip, split and cat - Method 1...
Windows XP printing to a HP PSC1610 connected to a Ubuntu Computer
On Ubuntu Using sudo system-config-printer publish the printer and enable sharing for the LAN. This will allow IPP printing but restrict clients to the local network IP Addresses only. On Windows XP Add a printer and choose: A network printer, or a printer connected...
Ubuntu Disk Stuff – running fsck at next reboot
How to schedule a disk check for the next reboot. As root or using sudo do the following: Method 1: Use the forecfsck file method touch /forcefsck shutdown -r now Note: This command seems to check all partitions when run Method 2: Up the mount count above the fsck...
Convert Redhat 3.1 VMWare Server VM to VMWare ESX Server 3i using VMWare Convertor – Error loading operating system
I just attempted to convert a Redhat 3.1 VMWare Server 1.04 VMImage using VMWare Convertor 3.03 to VMWare ESX Server 3i v 3.5. The VMWare Convertor conversion completed successfully and loaded the VM to the ESX Server however when I booted the VM on the ESX Server I...
OCR – Tesseract
Just made a spectacularly unsuccessful attempt to use Tesseract OCR. Here is a sample: "|I11;XII;"1n -¤:2;;2:¤ LIEEEEEEE.-::2;;;: nz ’‘·* *--2.. ::2;;: "=I;;;. :1:;*-- ::2;£2|a:‘¤I;;;.XXi.X ·¤:;1;;¤· X;|:;t1X '!EEEXI|· XXXIIEX--EXIIXX-.:21:;. -·¤a.;¤¤a..a··...
Linux PING works but Traceroute doesn’t
Just had an issue where traceroute w.x.y.z failed however ping w.x.y.z worked fine.... The fix: traceroute -I w.x.y.z or traceroute -T w.x.y.z Where w.x.y.z is the IP address of the remote host e.g. 10.22.34.8 By default the Linux traceroute was using UDP which must...
Fedora 9 – Using the MF332 aka Telstra Turbo Card from www.zte.com.au
There is a whirlpool forum with information on connecting a MF332 using Linux. It shows how to use the /etc/ppp/chap-secret /etc/ppp/peers/* to get it all connected. However on Fedora 9 I used the standard system-config-network option to configure the connection as...
Shrink a Windows XP NTFS Partition to half size and Install Linux while keeping the Windows Boot Menu
Disclaimer: This procedure can render your computer unbootable and corrupt your data if you do it wrong. Perform a backup prior to doing it and verify you can read the backup. Don't attempt it on a critical laptop. I am in no way responsible if you attempt this and...
IPTraf – Looking at it as it happens
When looking at traffic flowing in and out of your gateway Linux boxes you can use a variety of tools. tcpdump is handy For example if I wanted to know what traffic is flowing from my ppp0 interface to a remote host without resolving the names I would say. tcpdump -i...
Setting up an Xvnc Server for remote logins
Those of us Windows admins that like the mstsc /v:hostname option of connecting to our Windows Boxes may also want a "feel at home" approach for Linux. I personally like to be able to use vncviewer ip_address:port to connect and get a complete Linux Desktop. The...
Ubuntu build depency installation command
If you download and install programs from source on Ubuntu / Debian you may have been through the process of running ./configure, then noting what it complains is missing, then apt-get install missing <package name>, then repeat till you have everything you...
ipcalc – Removing the brain work from subnetting calculations
I've just been nosing around the Fedora 8 /etc/sysconfig/network-scripts/network-functions script and noticed a call to a utility named ipcalc. Seeing as I usually spend quite some time trying to figure out how to calculate the correct subnets for a given subnet mask...
Linux serial console
I had to test a console cable to see if it was indeed a console cable. The piece of equipment I was connecting to was outputting a garbled console leading me to wondering if I had a bad cable or a bad piece of equipment. Using the serial-console howto at...
Filelight and Boabab or How to pie chart your disk usage
filelight: kde application gives a really cool overview of how much and where you are consuming disk space. boabab: gnome/gtk application
Deleted binary causes No such file or directory error in bash
The scenario: Your path environment is similar to "/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" You have a binary in your path such as /home/user/bin/putty which you delete hoping to use the same binary further down the path...
The Linux find command
I'm putting this here so I can recall it for later find -mtime +2 -type f -print -exec mv {} /home/user/old/ \; Basically it does the following: Find all files where the File's data was last modified more than 2 days ago and run the move command on each file to move...
How to extract Icons from Windows executeables in Linux
I have installed a small app using Wine under Ubuntu 8.04 however the desktop launcher icon isn't the correct one for the application. Windows frequently stores application icons in the programs exe file. So to fix my launcher icon I need to extract the icon from the...