Sunday, December 6, 2009

How to nuke U3 from your USB key using Linux

Don't you hate it when potentially simple hardware comes with all kinds of useless software and annoying features? USB keys that auto-install software on your PC are pretty high on my hate-that list. Anyway, it turned out to be possible to nuke this beautiful feature.

I did this on Ubuntu 9.10, on other Linux versions it may be a bit more complicated.

The general idea is to use an Open Source removal tool, and apply it to the specific 'generic device' that corresponds to the U3 CD-ROM image. Please note that following these instructions will likely erase all data on the USB key, so only proceed if you don't care.
  • Install u3-tool using apt-get (alternatively download it from http://sourceforge.net/projects/u3-tool/ and build it yourself).
  • Insert the USB key, notice that both an U3 CD-ROM image and a normal filesystem are mounted
  • Use 'df' to check which device is linked to the U3 image, it will show a line like this:
    /dev/sr1                  6828      6828         0 100% /media/U3 System
  • 'dmesg|grep sr1' will show a line like this:
    [ 2161.461482] sr 8:0:0:1: Attached scsi CD-ROM sr1
  • 'dmesg|grep 8:0:0:1' will show a line like this:
    [ 2161.461548] sr 8:0:0:1: Attached scsi generic sg6 type 5
  • This finally gives us the device we were looking for; sg6.
  • u3_tool_sg -p 0 /dev/sg6
  • Agree at the prompt, and poof, U3 will be gone.
  • Now you can use a partition editor like GParted to repartition the USB key and reclaim the space used by U3.
And thanks Sandisk, for making me have to spend half an hour on removing your annoying, insecure 'feature' when all I wanted was a plain USB key.

Update

On the bright side: the reverse also works. Always wanted to have a USB key that you could load an ISO onto and then boot from it as if it was a real CD-ROM drive?
  • u3_tool_sg -p 5000000000 /dev/sg5
  • (re-insert the key and re-determine the generic device)
  • u3_tool_sg -l some_dvd.iso /dev/sg6
  • (optionally re-partition and reformat the plain USB part, which will be sized to the remained of your USB key)
Assuming you have a USB key with at least 5 GB of capacity these commands will enable/resize the virtual CD-ROM image and write the ISO image of some DVD onto it. The main downside is that writing a DVD image in this way takes about an hour, much longer than burning a real DVD. However, after writing the image, booting from it will be blazing fast.

Wednesday, April 1, 2009

How hard is it to run a pension fund?

When reading the morning paper I'm often surprised by how strange some important things are set up in this world.

Take pensions for example. They're called retirement plans, pension schemes or superannuation plans, depending on the country. In Holland they're simply called pensions, and almost everyone has them. For most employees they are even mandatory. Whole industry sectors are collectively insured with some of the larger national pension funds. This makes these pension funds some of the largest investors around. For example the ABP fund has 1.1 million active paying members, and a total asset value of 173 billion euro, making it the second-largest pension fund in the world.

The deal is simple - you and your employer pay about 8% of your salary to the fund, every month, every year. In return (assuming you've worked for 40 years) you'll get 70% of your last salary as a pension when you retire at 65. At least so we're told. And who reads the small print?

Now with the economic crisis people are suddenly finding out that the deal isn't so simple at all. This morning ABP reported that not only will it freeze the yearly inflation correction of its pensions for the next 5 years, but it will also increase the premiums to be paid by employers and employees. There is also talk of downright lowering the value of future pension benefits. In any case this will hurt employees twice - they will have to pay more now, and get less pension at 65. It appears the pension funds simply put all their money into shares, without using any saveguards such as options to guard agains falling stock prices... And the small print allowed them to do this. In practice it absolves them of any accountability for bad investment performance.

So back to the initial question - how hard is it to run a pension fund? Not hard at all. When the economy runs well you show up at shareholder meetings looking all big and important. People will look at you with respect ("those are the guys that invest billions in this company"). But you don't ask any difficult questions about ROI or financial stability. Oh no, you just sit there looking important. And when the economy turns bad and you loose billions of the money your members put in, you simply ask them to give you more money. It's their risk anyway. You're not accountable after all. You didn't cause the crisis, right? (No, but you were paid hugely to see it coming and react). Because of the collective and mandatory nature of pension participation there is no motivation for the funds at all to improve financial performance.

Now I'm not personally affected as a business owner. I have my own personal pension fund that I have to manage myself. That probably doesn't look attractive to most people but my take-away advice to employees for today is:
  • Demand from your employer that you get freedom to select a pension provider. This will at least theoretically give the fund managers some motivation to step up to the plate and do what they're paid for.
  • Investigate all the freedom (and responsibility) that you gain by becoming a freelancer or small business owner yourself.