Booting RHEL/CentOS from USB

Uncategorized — Titus Barik on February 23, 2010 at 2:04 pm

If you are installing CentOS or Red Hat Enterprise Linux on a machine without a DVD or CD drive, then your best option is to create a bootable USB drive. The Red Hat manual provides instructions for Linux, and it is simple to translate these instructions for Windows:

  • Download dd for Windows, as well as diskboot.img from your OS distribution media.
  • Write the disk image to your USB drive using the command dd if=diskboot.img of=\\.\x: --progress, where x is the Windows drive letter of your USB drive. The --progress flag is optional and lets you see that the records are actually copying to the USB drive.

That’s it!

REBOL/View without X in Linux

Uncategorized — Titus Barik on February 10, 2010 at 6:05 pm

If you want to write a command-line, windowless Linux application, but need to use the extended features of REBOL/View, such as DLL access, then you are unfortunately out of luck. Attempting to run REBOL in a console results in the following error:

[root@dot ~]# ./rebol -ivwt
** User Error: Bad face in screen pane!
** Near: size-text self
[root@dot ~]#

The only alternative seems to be to purchase a commercial license for REBOL/SDK.

Backup and Restore a Single Table with mysqldump

Uncategorized — Titus Barik on February 2, 2010 at 5:09 pm

It is sometimes useful to backup a single table from a MySQL database and re-load it on a different database. You can do so with the following operations:

To backup:

mysqldump original_db table_name > table.sql

To restore:

mysql new_db < table.sql

MySQL Cluster Watchdog Warning Under VMWare

Uncategorized — Titus Barik on February 1, 2010 at 6:19 pm

I’m not sure why I’m getting this from within a VMWare session when running MySQL Cluster:

WARNING: timerHandlingLab now: 4194521 sent: 4194399 diff: 122
2010-02-01 18:05:14 [ndbd] INFO 
     -- Watchdog: User time: 7  System time: 52
2010-02-01 18:05:14 [ndbd] WARNING  
     -- Watchdog: Warning overslept 227 ms, expected 100 ms.

How can I increase the watchdog timer? This is definitely a problem that seems exclusive to running in a virtual machine, but I need to do so for simulation purposes.

titus@barik.net | The Weblog of Titus Barik