WebProWorld Dev Forum

A little help with inadvertant shutdown
I am currently working on a HP 742C home PC. The problem is it shuts down either durring startup or minutes after startup. I tried Removing the PCI cards...
Click to read more...

CSS and Cache
When I enter a site (like this) the page appears fine, but once I start to navigate through the site, the CSS stylesheet is not being called from the cache and all styling on the site disappears unless I click 'Refresh'.
Click to read more...

Outlook .pst File too Large to Manage
One of my co-workers has grown his Outlook .pst file to 1.99 gigs (apparently he’s very popular). Outlook’s limit for .pst (prior to the 2003 release) is 2 gigs...
Click to read more...



Recent Articles

Will Sun's Open Solaris Get Traction?
According to a story in ComputerWorld, "Sun Microsystems Inc. yesterday made good on its promise to open-source its Solaris operating system ...

IBM To Launch 64-Bit Linux Server
IBM today announced it will offer a new, low-priced IBM POWER5 processor-based server running the Linux operating system.

Walmart Releases Linux-based Laptop
Walmart.com has released the 498 Balance laptop, which runs the Linux-based operating system Linspire.

Oracle And Novell Expand Partnership
Oracle and Novell have decided to expand their longtime partnership into the Linux arena. They have announced that Oracle's latest database ...

Linux Networkx And Novell Create HPC Certification Center
Linux Networx has partnered with Novell to create a High Performance Computing (HPC) Certification Center located at Linux Networx to help Independent Software Vendors (ISV) certify...

Rebuilding Failed Linux Software RAID
Recently I had a hard drive fail. It was part of a Linux software RAID 1 (mirrored drives), so we lost no data, and just needed to replace hardware.

Configure-to-order Linux Cluster Solutions
Voltaire InfiniBand interconnect solutions for igh-speed, low-latency networking capabilities will be integrated into HP high-performance configure-to-order Linux cluster configurations.

02.02.05


Transfer SCO Acucobol To Linux

By A.P. Lawrence

I doubt I'll see too many more of these, but I had a call from someone with a crashed SCO 3.2v4.2 system.

This was an old DEC MP433 system with half a dozen small SCSI drives, and a 1 GB Tandberg tape drive, which had probably been running for 15 years or more. The root hard drive had apparently died. They had a backup of that, and emergency boot/root floppies, but no backups of the other drives. Fortunately all application data was on the other drives, so we had reasonable hope of recovering the system.

The customer also told me that everything was written in Acucobol, and that he had source code too, and he had already bought Acucobol run-time for Linux but hadn't been able to get it working. We decided to first get the SCO system back up and then look at the Linux.

A fresh root drive had already been installed, stolen from a DOS box of the same vintage that had been sitting around as a transplant source. They had the SCSI ID set wrong, but I reset it to 0 and booted from the emergency boot floppy. It asked for the root floppy as it should, and dumped me at a prompt. I confirmed that the tape was working with a "cpio -itv < /dev/rStp0 | head" and we were ready to begin.

First step was to run "fdisk -f /dev/hd0root" and create a Unix partition, followed by a "divvy -i /dev/hd0root" to create filesystems. Then, "mount /dev/hd0root /mnt" and we were ready to go. I did

cd /mnt
cpio -ickvABdu < /dev/rStp0


The files began to restore. I'd need to restore boot file before this would be fully ready to run again, but we were on our way.

(Restoring boot files)

dd if=/etc/hdboot0 of=/dev/hd0a
dd if=/etc/hdboot1 of=/dev/hd0a bs=1k seek=1
dparam -w


Unfortunately the happiness was short lived. I started looking at the Acucobol, and actually had it installed and working on the Linux box, when the DEC machine started spewing disk write errors. I had forgotten to run /etc/badtrk, so I started that while continuing to work with Acucobol on Linux.

Acucobol

We had no current backups, but there were some older sets. Although these were SCO cpio tapes, which would normally use the "c" option, that didn't work. I knew that Linux has a different idea about the c flag, but the only way I could restore was to leave all that out:

cpio -ivdu < /dev/st0

LinksManager manages reciprocal links, and helps increase website traffic through linking with other like-minded quality sites -> more info

The programs actually ran, with some screen issues - no line draw characters, screen clears inconsistent, some positioning off. Acucobol uses /etc/a_termcap, so the client felt certain he could clean that up with some experimentation.

Unfortunately, the SCO box wasn't doing as well. The badtrk ran with no problems, but another attempt to restore files crashed again at a different point. Trying cpio with leaving off "u" let it go farther, so it seemed plain that this was not a hard drive problem, but it did keep crashing.

As the Linux box obviously was working, and the client wanted to transition to that anyway, we decided to extract tapes from the SCO boxes other drives and restore them to Linux. Enough of the root file system had been restored to make this very easy: I checked /mnt/etc/default/filesys to see what devices had been mounted, and looked in /mnt/dev to get the right major/minor numbers. I then used "mknod" to create entries in /dev on the root floppy. The procedure would then be:

umount /mnt
fsck -y /dev/data1
mount /dev/data1 /mnt
tar cvf /dev/rStp0 /mnt/data1


This would be repeated for each disk, and the tapes then restored to the Linux box.

*Originally published at APLawrence.com


About the Author:
A.P. Lawrence provides SCO Unix and Linux consulting services http://www.pcunix.com

About LinuxDeveloperNews
Get the lastest information on current changes in the Linux Development World.

LinuxDeveloperNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxDeveloperNews.com WirelessProNews.com
CProgrammingTrends.com DevWebPro.com


-- LinuxDeveloperNews is an iEntry, Inc. publication --
iEntry, Inc. 880 Corporate Drive, Lexington, KY 40503
2005 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article

LinuxDeveloperNews News Archives About Us Feedback LinuxDeveloperNews Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact