How to Find a Drive UUID (Linux)

My drives seem to change their bios location at will after each boot

so rather than mount them using their device names

 eg. /dev/sdc1

I have specified their UUID in /etc/fstab

#Data Disks

UUID=9e058272-98f0-441b-be73-1c60d3154501 /mnt/data1 auto defaults 0 0

UUID=332b3329-2111-4654-b968-7b3b421cdf95 /mnt/data2 auto defaults 0 0

UUID=4e203f8f-2c30-4783-a9e2-eea5339546a5 /mnt/stuff auto defaults 0 0

To find all these UUID keys i used

vol_id /dev/sda1

This gave me the UUID of the disk so my mounts are bolted down no matter where the disks try to hide

How to Re-Compile your Kernel (Ubuntu)

Get your Kernel Sources from either a repository or from the kernel website

Create the symbolic link from the location of your sources to /usr/src/linux

 ln -s /usr/src/linux /usr/src/linux-2.6.22-r8


 cd /usr/src/linux

make menuconfig

To set your kernel optionsThen

 make dep

make clean

make bzimage

make modules

make modules_install

make install

Now you have to modify your /boot/grub/menu.1st by hand

Reboot and choose your new kernel

KONICA MINOLTA bizhub C250 (Linux)

Printing on KONICA MINOLTA bizhub C250 was easy in gentoo

add this line to /etc/portage/package.use

net-print/cups jpeg ldap php png ppds tiff

Then Emerge cups

emerge cups

Start the cups server on boot

rc-update add cupsd default

After restarting you now have the cups web based admin running

Open a browser and hit

Click add printer and browse for a ppd file

I found one on the driver cd from Konica in


I clicked print test page and it worked

How to use update-rc.d to add extra services (Ubuntu)

So from my last two posts i have made a new /etc/init.d script and changed the permissions so we can run it.

I have tested the script by calling it by hand

/etc/init.d/extras start

This command ran my script and started the service now to make it run on boot

update-rc.d extras defaults 91

What does this mean?

update-rc.d = the application that manages the runlevel stuff

extras = the filename of my script (/etc/init.d/extras)

defaults = This tells update-rc.d that i want it to start the service when the computer starts

and stop it when the computer shutsdown (its more complex but thats close enough)

91 = is the priority that it should run at(1 – 100). This defines the order that things happen at boot (and halt) time

I have chosen 91 because i want the machine to start this service close to the end of the boot sequence.

How to write/hack together an init.d script (Ubuntu)

I needed a quick way to start a specific subversion line at boot time so i threw together this script.

I will probably go through it again and add the lines to stop the daemon…maybe

———————Start of Script—————————————

# /etc/rc.d/init.d/extras
# extras This shell script takes care of starting and stopping
# The SVN daemon and restarting samba (needed for some reason)
# The samba line will be removed when the prob is fixed

start() {

echo -n “Starting SVN and restarting Samba: ”
svnserve -d -r /mnt/data/SVN/
/etc/init.d/samba restart


stop() {

echo -n “Shutting down Extra Scripts (This does Nothing): “


case “$1” in

echo “Usage: {start|stop|restart}”
exit 1

exit $?

———————End of Script—————————————-

Dont forget yau will need to add execute permissions for it to actualy run

Xorg 7.3 broke everything [Keyboard, Mouse, Nvidia] (Gentoo)

After doing an update of my gentoo system i restarted to find my Xorg in pieces

No Keyboard
No Touchpad (Mouse)
No Nvidia

A quick re emerge of nvidia and synaptics

emerge nvidia-drivers
emerge synaptics

Restarted Xorg took me back to my login screen but i still had no keyboard

A visit to #gentoo for a chat with mzbot who told me

“(17:37:05) mzbot: You may wish to consider avoiding xorg 7.3 for now. ati binary drivers do not work with it. Also, the way the .conf file is parsed has changed, often meaning xorg can override what you have told it to do, resulting in many major annoyances. It is ~arch for a reason :)”

A bit late to avoid so a chat to the other guys and they told me check my keyboard driver

my /etc/xorg.conf file had this

Old Setup
Section “InputDevice”
Identifier “Keyboard1”
Driver “kbd”


New Setup

Section “InputDevice”
Identifier “Keyboard1”
Driver “keyboard”


fixed that and re emerge the driver

emerge xf86-input-keyboard

and im back!