jueves, 20 de mayo de 2010

"Setup failed to install the product catalogs" error during Windows XP Installation

On the GUI installation, the following error appears on starting the "Windows Install" stage:


"Setup failed to install the product catalogs. This is a fatal error. The setup log files should contain more information."

(Español: "El programa de instalación no puede instalar los catálogos del producto. Éste es un error grave. Los archivos de registro de la instalación deben contener más información")

On clicking Accept, the log appears, containing amongst others, an error about:

"Error: The signature for Windows XP Professional Setup is invalid. The error code is 80096001."

(Español: "Error: La signatura del programa de instalación de Windows XP Professional Edition no es válida. El código de error es 80096001.")

If you close this dialog, the system will immediately restart.

While this can have other causes, in my case it was because I was using "ProfilesDir=D:\Usuarios" in my unattended setup to relocate all the user data to another partition, and forgot to format D: in the script.

As a quick fix, I opened a terminal with the handy (and obscure) Shift+F10 shortcut, did a "format /fs:ntfs /q D:", and restarted.  And so did the installation, which finished correctly.

viernes, 7 de mayo de 2010

Problems upgrading Ubuntu Karmic to Lucid

While overall smooth, a couple of details had to be fixed after upgrading Ubuntu Karmic to Lucid:


  • Grub didn't automatically select the previous OS I started, as before:
Had to add "GRUB_SAVEDEFAULT=true" to /etc/default/grub (and run update-grub after).

  •  The message "An error occurred while mounting /media/cdrom0/
    Press S to skip mounting or M for manual recovery" at every boot, and being unable to mount the CDROM as a normal user:

The CDROM settings in /etc/fstab were missing "noauto" to prevent it from being mounted on boot, and "users" for normal users to be able to mount it.  The result was:
     /dev/scd0       /media/cdrom0   udf,iso9660 utf8,users,noauto 0       0

    •  PulseAudio not starting, so audio is not working in most apps
    Running the script used to start PulseAudio (in Startup Applications) by hand provided little information:

    $ bash -x start-pulseaudio-x11
    + set -e
    + '[' -z '' ']'
    + '[' x:0.0 '!=' x ']'
    + /usr/bin/pactl load-module module-x11-publish display=:0.0
    Connection failure: Connection refused
     The problem was finally found in the comments in /etc/default/pulseaudio.  I had disabled PulseAudio's autospawn (as to be able to kill it and start jackd) in my ~/.pulse/client.conf, which is now required for start-pulseaudio-x11.  Enabling it back made it all good (jackd works without having to kill PulseAudio now).

      sábado, 1 de mayo de 2010

      Booting Windows over an hibernated Linux is not a good idea

      Booting Windows over an hibernated Linux is not a good idea. I just lost 20 GiB of data in a shared NTFS partition...

      I hibernated Ubuntu Lucid one day, and the next I fired up my computer.  Some update messed up the saved option in Grub, so instead of booting Ubuntu again as it should, it started Windows 7.  When I came back with my coffee, I just went on using it without recalling Ubuntu was in bear mode.  I probably accessed music, Firefox profile, documents, downloads and games from the shared partition.

      The next time I switched to Ubuntu, I saw the "waking up from hibernation" message.  Dang.  But I expected it to fail at waking, and soft reboot instead, as happened the previous time I "tried" this (in my Karmic times).  But no, it woke up alright.  Cool.  Or not.  I quickly realized a directory in the root of the shared partition was now empty.  I think the only programs accessing the shared partition on resuming were Quod Libet (music player) and Transmission (bittorrent client).

      I went back to Windows, where I couldn't even open the directory.  Trying to "dir" it in shell produced "file not found".  Corrupted.  Still, the partition's free space had not increased, so my 20 GiB where probably still there, safe from being overwritten.  Maybe.
      But how to get to them?

      A little research provided little help, and made my hopes even more bleak.

      I ran Scandisk ("Check for Errors") without auto repair, since I don't wanted to risk it fixing things by further destroying my data.  The result was not very informative: "Errors found.  Run with auto repair."  Unknown to me, seemingly it also marked the partition to be automatically checked on next boot.  I powered off and went away, and came back with EasyRecovery later.

      The computer started with me not paying attention, as usual, and when I looked, chkdsk was already spewing errors in full swing, which it did for some ten minutes.  Oh well, here goes nothing.

      Fortunately I did lit a candle for Santa Tecla recently, and after Windows started, my data was back, all of it as far as I can tell, though some files ended up in found.000.

      So yes, this had a happy ending.  You'll forgive the dramatic suspense, but that's to drive a point across: backup your data!  And (in my case) keep the backup up to date!  And of course, be extra careful with hibernation and shared partitions...