Archive for Linux

Setting up mediatomb in Ubuntu 9.10

// March 8th, 2010 // No Comments » // Linux

Having recently bought a WDTV HD Live to replace my Xbox (with XBMC) I decided to look into setting up a UPnP service on my Ubuntu headless server.

After reading around a bit, I firstly tried uShare but didn’t find it very flexible. I finally settled on MediaTomb as I liked the look of the JavaScript import scripts that can be written. I started getting setup so checked out the MediaTomb wiki and a few online tutorials, but struggled to get MediaTomb to work. Either I had missed something, or the articles weren’t 100% clear. Here are the steps I took to get it working…

(more…)

Max Value HomePlug Matching Problem… Fixed

// January 29th, 2010 // 4 Comments » // Linux, Windows

For Christmas (2009) I was given a pair of Max Value 200Mbps HomePlug units, presumably fromĀ Amazon. Out of the box they worked, and still do, perfectly. I was so impressed by them, I quickly ordered another pair from Amazon within a few weeks, and this is where my problem began.

(more…)

Rebuilding Grub2 grub.cfg from Ubuntu Live CD

// January 1st, 2010 // No Comments » // Linux

After installing Windows 7 the other day I lost my Grub install. Not a problem, in the past I’ve used my Super Grub Disc to repair it.

This didn’t work for me though (may be my disc is a bit date, or maybe it doesn’t support grub 2 just yet). Instead I booted up using my Ubuntu 9.10 Live CD. I could easily re-install grub using the “grub-install” command:

  1. Open up a terminal
  2. sudo fdisk -l (Find the partition you want)
  3. sudo mount /dev/sda5 /mnt (Mount the partition)
  4. sudo grub-install --root-directory=/mnt /dev/sda

I’ve used the drive /dev/sda and partition /dev/sda5 in my example.

This all went ok, but I was left with a screwed up grub menu (I messed it up myself). There’s a “update-grub” command you can do from within Ubuntu, but I couldn’t actually boot in. I only had the Live CD. Hence updating it proved to be quite difficult, and there’s nothing on the Live CD to help. I eventually found a solution, these are the commands I had to run in order to regenerate it.

mkdir /mnt &&
mount /dev/sda5 /mnt &&
mount -o bind /dev /mnt/dev &&
mount -o bind /proc /mnt/proc &&
chroot /mnt bash &&
sudo update-grub &&
reboot;

Without binding the /dev and /proc it would throw an error.

All credit goes to seeker5528’s post for the above solution.

Checkgmail not working in Ubuntu?

// October 16th, 2009 // 3 Comments » // Linux

Over the last few weeks checkgmail has not been working. This is quite common given Google probably changing things around. So it has happened in the past, and requires and update to be pushed out. Unfortunately, via the repositories this is quite a slow affair. There is a quicker solution though…

  1. Open up a terminal window
  2. Type “checkgmail -update”
  3. All fixed!

Very simple to do. I hadn’t realised this before, but checkgmail has its own updater and it’s very easy to use. So if you are having problems, it’s probably worth trying the above.

Switching to EXT4 in Ubuntu (and back to EXT3)

// September 14th, 2009 // 5 Comments » // Linux

Problems

EXT4 is soon to become the default file system in Ubuntu once 9.10 (Karmic) has been released. I’ve already been using it, but have stumbled across a few problems:

  1. Reverting – I moved all of my backups and vast amounts of data across into EXT4 partitions. I have since been having a few problems with Ubuntu Server 9.04, and had wanted to revert back to Ubuntu Server 8.04 LTS but was unable to do so (as it’s not compatible with EXT4). A bit of a problem as reverting Ubuntu version and file system type won’t be easy, and will take time. In retrospect, I wish I had stayed with EXT3 for 6-12 months longer until I was happy it was ok to switch.
  2. Windows – I still use Windows occasionally, and it’s generally handy to be able to access your files in Windows. Currently there is no EXT4 driver for Windows. From what I can remember, something like EXTFSD, will work with an EXT3 partition “upgraded” to EXT4. A cleanly formatted EXT4 partition is different though and doesn’t currently work. EXT2IFS will only work with EXT3 (and an inode size of 128)

Apart from those issues, I’ve found EXT4 to be very good, and it does seem quicker (although it’s hard to tell). It works very well for the root (“/”) partition. For separate home and other partitions though, sticking with EXT3 may be a better idea. I plan on reverting over the next month or so, and will probably stick with EXT3 until Ubuntu 10.04 or even 10.10.

One important note, if using EXT2IFS you want an EXT3 partition with an “inode” size of 128. As of Ubuntu 8.10 onwards it will format EXT3 partitions with an inode size of 256.

Reverting to EXT3

Open up a terminal. Firstly find out the partition you want to revert:

sudo fdisk -l

This will list all of the partition devices. Find the one you want, for example in my case /dev/sda7. Now enter:

sudo tune2fs -l /dev/sda7 | grep Inode

You’ll now need to backup all of your files. I had a spare hard drive kicking around to move them their manually using Nautilus. Once moved, you can format the partition. Given that the Ubuntu 8.10 installation disc onwards will format an EXT3 partition with an inode size of 256, you’ll need to manually do it yourself via command line:

sudo mke2fs -I 128 -j -t ext3 /dev/sda7

It should only take a minute or so. If you want to you can add “-c” to the command, and it’ll run a check on the inode table, but it takes aaaages. My 1TB drive took over 4 hours.

Further Problems

Under Windows XP (SP3 and earlier) both EXT2IFS and EXT2FSD will run without any problems. However, I’m currently running Windows 7 x64.

EXT2IFS will run on Windows 7 x64 whereas EXT2FSD won’t. This means I have to have an EXT3 128 inode size formatted partition. It’s all currently, just about working perfectly. I, for some reason, can’t run .exe’s on my mounted EXT3 partition in Windows 7. It looks like a permissions issue related to the EXT2IFS driver. I vaguely remember fixing something similar with Vista (ages back) but have since forgotten. It’s currently usable, but still not ideal. I’ll post once I find a fix.

Update 23/09/2009

I’ve now got EXT3 working in Windows 7 x64 without any problems.