What's the proper way to add & remove SCSI devices in Irix 6.5 for mediad to work? -
weblacky - 09-01-2021
Yo,
As I've been load/reloading a test system...I keep running into phantom devices (since removed) and of course when I add a device it's often not fully understood or seen correctly by the disk manager or mediad to just work. No, I'm not talking duplicate SCSI IDs or termination...I literally mean the software interface in Irix 6.5 for desktop usage of SCSI storage peripherals - Drive icons, drive info, CDROM Eject, etc. Currently using Irix 6.5.19 media.
Stuff at time of install works fine. Stuff I add later, half works or doesn't get created automatically. Old stuff like floppy drives, still have entries during start even when they are gone.
I've tried some MAKEDEV stuff inside /dev, I've tried autoconfig...what's the skinny on when you're adding and removing devices very often on Irix. I need to temporarily add peripherals (SCSI CF reader, Floptical drive, second hard drive, etc) then later on remove it from the system.
I know the devices work but after first-install I have a hard time installing and then removing new peripherals in software.
So what's the secret to this?
RE: What's the proper way to add & remove SCSI devices in Irix 6.5 for mediad to work? -
Raion - 09-01-2021
Autoconfig is for the kernel -- it has no effect otherwise.
Here's the manpage:
https://nixdoc.net/man-pages/IRIX/man1/mediad.1.html
I've had plans to eventually reverse engineer this beast, but that's tabled until my backlog of shit is taken care of.
RE: What's the proper way to add & remove SCSI devices in Irix 6.5 for mediad to work? -
robespierre - 09-01-2021
You can chkconfig mediad on to activate the removable media daemon. This is basically for optical drives, to automatically mount volumes when a disc is inserted.
When you turn off power, disconnect or reconnect drives, and restart, the system automatically detects that there is a device, but it doesn't know that you wish to have it mounted somewhere. That is what fstab is for. So you can edit /etc/fstab and choose where you want your new device to get mounted during startup.
If you only want to mount a device during the current session you use mount(1) and umount(1).
RE: What's the proper way to add & remove SCSI devices in Irix 6.5 for mediad to work? -
jwhat - 09-02-2021
Hi Weblacky,
I suggest:
1. Stop mediad - /etc/init.d/mediad stop
2. Probe and/or reset scsi bus - scsiha -p <N> or <HW TREE NAME>
3. Restart mediad - /etc/init.d/mediad start
Please check man page on scsiha as I am not on machine to check command option details.
Cheers from Oz,
jwhat/John