Wednesday, September 30, 2009
Linux software raid
Most of what you need is on the Linux Raid wiki.
When I rebooted a few months later, I found that my raid was gone! Here is how I recovered:
http://linux-raid.osdl.org/index.php/Linux_RaidHowever, you also need to know that the initial mdadm command puts the raid in read-only mode. To fix this, you need to need to do something like "mdadm --readwrite /dev/md10"
http://linux.derkeiler.com/Newsgroups/comp.os.linux.misc/2007-11/msg00012.htmlHere is what I did:
/sbin/mdadm --create --verbose /dev/md20 --level=mirror --raid-devices=2 /dev/sdc /dev/sddI don't know what monitor does. In another terminal I did this:
/sbin/mdadm --monitor /dev/md20
/sbin/mdadm --readwrite /dev/md20This changes the status from paused to resync.
gcs6@gelato:> cat /proc/mdstatOK. Time to make the file system. I choose reiserfs, because that's what OpenSUSE came with on my other disks. The wiki page says I can do this while it resyncs, so that is what I did.
md20 : active (auto-read-only) raid1 sdd[1] sdc[0]
488386496 blocks [2/2] [UU]
resync=PENDING
md10 : active raid1 sda10[0] sdb10[1]
441072512 blocks [2/2] [UU]
gcs6@gelato:> /sbin/mdadm --readwrite /dev/md20
gcs6@gelato:> cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md20 : active raid1 sdd[1] sdc[0]
488386496 blocks [2/2] [UU]
[>....................] resync = 3.8% (18745664/488386496) finish=123.0min speed=63594K/sec
md10 : active raid1 sda10[0] sdb10[1]
441072512 blocks [2/2] [UU]
/sbin/mkfs.reiserfs -b 4096 /dev/md20Add entry to fstab, mount, and good to go!
When I rebooted a few months later, I found that my raid was gone! Here is how I recovered:
/sbin/mdadm -A /dev/md20 --scanLooks like it is OK. Whew! Also, I added the following line to /etc/mdadm.conf. Maybe it is necessary?
mount -t reiserfs /dev/md20 /scratch1
ARRAY /dev/md20 level=1 num-devices=2 devices=/dev/sdc,/dev/sdd
Tuesday, September 22, 2009
The system cannot execute the specified program
The solution (in cases where the C++ redistributable cannot be installed) is to either remove the manifest, or include a private manifest.
http://msdn.microsoft.com/en-us/library/ms235342%28VS.80%29.aspx
The private manifest includes the manifest file itself, as well as the DLL's in the assembly. You plop them into the same directory as the executable. The format of the manifest file should exactly match the manifest in, for example, c:\windows\WinSxS\manifests.
http://msdn.microsoft.com/en-us/library/ms235342%28VS.80%29.aspx
The private manifest includes the manifest file itself, as well as the DLL's in the assembly. You plop them into the same directory as the executable. The format of the manifest file should exactly match the manifest in, for example, c:\windows\WinSxS\manifests.
Friday, September 18, 2009
OCR Software
I'm in the market for an OCR software that can handle Japanese. Freshmeat and other sources yield the following choices (as of Sep 18, 2009):
Engines
Engines
- Clara OCR (ND) - last update 2003
- kognition (ND) - last update 2005
- Classnotes (ND) - last update Nov 2008
- GNU Orcad (D) - last update May 2009
- Pattern-lab (ND) - last update May 2009
- Cuneiform (D) - last update Sep 2009
- ocre (ND) - last update Jan 2009
- OCRFeeder (ND) - last update Apr 2009
- OCRopus (D) - last update May 2009
- gocr (D) - last update Aug 2009
- tesseract (D) - last update Jun 2009
- NHocr (ND) - last update Jul 2009
- YAGF (Cuneiform front-end) - last update Aug 2009
- ocrodjvu (OCRopus front end) - last update Mar 2009
- Kooka (GOCR/Orcad front end) - last update Jul 2007
- moz-hocr-edit (proofreader) - last update Jul 2009
- unpaper (pre-processor) - last update 2007
- Tesseract: unlikely to be usable for asian languages (see this page)
- Gocr: no information, does not look promising
- OCRopus: no known solution (see this page)
- Orcad: no information, does not look promising
- Cuneiform: apparently not (see this page, and this page)