[comp.unix.amiga] A3000UX help

jason@cbmami.UUCP (Jason Goldberg) (03/03/91)

Well now that I have my Amiga Network up and running I just have a few
stupid questions, that maybee someone could answer for me.  As you will no
doubt note from my questions, I am not too Unix proficient.

1.  Unix (on out A3000UX) seems to truncate names to 14 chars, this
presents a minor problem when using it as a file server for AmigaDos
machines, since any filename longer than 9 chars will have its icon
truncated.  Is there any solution/workaround for this.

2.  I'm sure that there is a file under SysVr4 Unix which is the equivelent
of S:startup-sequence.  I need a file which is executed when the machine
boots-up, not when someone logs in.  What I am really looking for is the
best way to execute the command:

	"Share /AmigaDos"

Everytime the machine is tuned on, so that it will serve as a fileserver
for out network.

3.  Often when I "cat" a file which turns out to contain binary, my
terminal gets confused and starts to display in all the strange ASCII
characters, is there a simple way to revert back to normal.

4.  At one point out A3000UX was turned off before it was shutdown, now
everytime we boot it, it goes through an 8 minute process of confirming the
integraty of the file system.  It looks something like:

	Phase 1...looking for loose files
	Phase 2...  [etc...]

all the way through Phase 8, then it continues with the normal boot
sequence, and finally is ready to go.  It did not do this before someone
turned off the power.

4b. On a related point, I have been shutting down with:

	shutdown -y -g0 -i0

and waiting until I get a logon prompt in init0 mode, before turning off
the power, is this the proper way?

Thanks very much for any help,


-Jason-

---------------------------------------------------------------------------
Jason Goldberg				UUCP: ucsd!serene!cbmami!jason
Del Mar, CA				

ford@amix.commodore.com (Mike "Ford" Ditto) (03/04/91)

jason@cbmami.UUCP (Jason Goldberg) writes:
> 1.  Unix (on out A3000UX) seems to truncate names to 14 chars, this
> presents a minor problem when using it as a file server for AmigaDos
> machines, since any filename longer than 9 chars will have its icon
> truncated.  Is there any solution/workaround for this.

Investigate the "ufs" filesystem type.  You will have to make a ufs
filesystem on a spare disk partition, and mount it.  ufs is the
Berkeley filesystem, which allows much longer filenames, among other
features.

Unfortunately, ufs is not completely bug-free, which is why we don't
use it by default.  Personally, I use it extensively with no problems
at all, but it has been known to crash when used for /usr/spool/news,
for example.

If you try it and it doesn't work, you will know it, because the
system will panic.  (I.e., you don't have to worry about silent disk
corruption, or anything; the only known failure mode is a total
crash.)  Obviously, this is high on our list of bugs to fix.

> What I am really looking for is the best way to execute the command:
> 	"Share /AmigaDos"
> Everytime the machine is tuned on, so that it will serve as a fileserver
> for out network.

That's what /etc/dfs/dfstab is for.

> 3.  Often when I "cat" a file which turns out to contain binary, my
> terminal gets confused and starts to display in all the strange ASCII
> characters, is there a simple way to revert back to normal.

tput sgr0

> everytime we boot it, it goes through an 8 minute process of confirming the
> integraty of the file system.
> 4b. On a related point, I have been shutting down with:
> 	shutdown -y -g0 -i0
> and waiting until I get a logon prompt in init0 mode, before turning off
> the power, is this the proper way?

Somehing is wrong; that should work.  There should be no prompt after
a shutdown -i0, other than "the system is down" or "you may reboot" or
equivalent.  Try shutdown -i6 once and see what happens.

					-=] Ford [=-

"The term most often used in this	(In Real Life:  Mike Ditto)
 manual is `implementation-defined'."	ford@amix.commodore.com
 - SVR4 Programmer's Guide: POSIX	uunet!cbmvax!ditto
					ford@kenobi.commodore.com

jafo@miranda.UUCP (Sean Reifschneider) (03/10/91)

I'm not well versed with SVR4 (Mostly HPUX), so remember that when reading
my response...

In article <18c48a19.ARN0eb8@cbmami.UUCP> jason@cbmami.UUCP (Jason Goldberg) writes:
>1.  Unix (on out A3000UX) seems to truncate names to 14 chars, this
>presents a minor problem when using it as a file server for AmigaDos
>machines, since any filename longer than 9 chars will have its icon
>truncated.  Is there any solution/workaround for this.

On the HP machines, they are able to use long file names.  As I recall,
you had to re-configure the kernel to get them, but I think they were 255
bytes long.  Look in the manual for re-configuring the kernel for long file
names.

>3.  Often when I "cat" a file which turns out to contain binary, my
>terminal gets confused and starts to display in all the strange ASCII
>characters, is there a simple way to revert back to normal.

I think there is an option to stty that will do this.  Just don't 'cat'
binary files.

>4.  At one point out A3000UX was turned off before it was shutdown, now
>everytime we boot it, it goes through an 8 minute process of confirming the
>integraty of the file system.  It looks something like:
>
>	Phase 1...looking for loose files
>	Phase 2...  [etc...]

Sounds like it's running fsck.  See below.

>4b. On a related point, I have been shutting down with:
>
>	shutdown -y -g0 -i0
>
>and waiting until I get a logon prompt in init0 mode, before turning off
>the power, is this the proper way?

On the HPUX machines, I do a 'reboot -h'.  The last message I see before
turning the computer off is 'syncing discs...halted'.  Then I power down.
If you don't halt the discs before powering down, a flag gets left on the
system saying that the system needs to run fsck to fix the file system
when it comes back up.

Sean
--
From the desk of Sean Reifschneider.  Isn't Amiga UUCP great?  Thanks Matt.

uunet.uu.net!ccncsu.colostate.edu!ncuug!miranda!jafo