• Please review our updated Terms and Rules here

Xenix External Added Hard Disk Shutdown

aplmak

Experienced Member
Joined
Feb 13, 2012
Messages
132
Location
United States
Hello all... just thought I'd throw this out there. I have a few Altos machines.. The 886 will cleanly unmount the system's drives at shutdown. The other older system will not. Upon reboot it fsck's the second external drive each time... I have a feeling there needs to be some sort of modifications in this script I have attached. Any help is greatly appreciated. The drive's device name is: /dev/hd1a and that is the one not cleanly shutting down. The primary which is /dev/hd0b is properly unmounting and shutting down.

This is an old version of Xenix.. version 3.0 so it's different than the new systems today.. So it's basic I have a feeling it is in the lines "/etc/umount /dev/hd1a > /dev/null 2>&1" but I am not sure what to modify.

Thanks again to all!!!
 

Attachments

  • shutdown.txt
    2 KB · Views: 3
I think I figured it out by sleeping on it. The add.hd added a few things to the "rc" file... I have no idea why. On my other system it did not do this to the "rc" file...

echo "Checking the file system on the second hard disk" > /dev/console
fsck -y -t /dev/hd1.roc0 /dev/hd1a > /dev/console 2>&1

This below should have definitely been added and this is fine. I hashed out the two lines above and rebooted and no fsck! :)

/etc/mount /dev/hd1a /usr2
 
Those two lines are ok to hash out yes? I am not sure why it added it and wants to perform an fsck to the secondary drive every boot... it's not really needed unless I didn't properly shutdown or umount on powerdown.
 
This is a very old version of Xenix 3.0e so it doesn't have the updated stuff we have now.. I did notice that "mfs" is not in this version in the /etc folder.
 
Anyone know how to modify the shutdown script attached above to create a file upon each shutdown and then verify that upon reboot in the rc script (will need lines to enter)? If the file doesn't exist or it doesn't indicate a clean shutdown it will execute fsck? I'm not well versed on these scripts... any help is appreciated as always. :)
 
The posted shutdown script unmounts /dev/hd1a. It does so in line 66 (when it does single-user), and in line 93 (when it halts). This script will never run mount or fsck. It also does not need any modification.

It would be helpful to know why unmounting this device fails. I'd assume that there are either open files or running programs on that file system. But you don't give us enough information to actually help. (You are also not always clear which machine you talk about, when you say things like "my other system" or "why it added it".)

When you talk about "mfs" missing, do you actually mean "mkfs"?

Also funny seeing mount binary in /etc
Having these binaries in /etc was common for early UNIX versions, before /sbin existed.
 
I actually figured more of it out. The different systems (80286 & 8086) handle mounting and unmounting in different configuration files. This was the first time I ever added external hard disks to the system so it is all new to me.

On the 886 (80286) system the mounting is done in the "rc" file "/etc/mfs /dev/hd1b /usr2 </dev/console >/dev/console 2>&1" line, as well as the unmounting via the shutdown script file with the umount command "/etc/umount $i" at system shutdown.

The system will not allow you to copy directories between disk drives.
 
Back
Top