Welcome, Guest. Please login or register.

Author Topic: AmigaOS filesystem layout  (Read 4685 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline AmigaFreakTopic starter

  • Sr. Member
  • ****
  • Join Date: Apr 2004
  • Posts: 291
    • Show only replies by AmigaFreak
AmigaOS filesystem layout
« on: March 24, 2015, 08:02:07 AM »
Hey everyone,

I'm looking for information on the filesystem layout on AmigaOS. What is where, why a particular file is in that place, Just general directory layout... Is there a book like that, or something on-line I can read?

I'm just kinda curious about the FS layout of the Amiga... I've used UNIX systems quite a bit and I'm used to the filesystem layout.. /bin , /usr etc... but even though I have used my fair share of Amigas, I never really opened up CLI to dig around in the actual filesystem beyond Workbench's windows.
-- Joshua E. Horn

"Um... I think my computer let out the blue smoke! What should I do?!?!?"
 

Offline danbeaver

Re: AmigaOS filesystem layout
« Reply #1 on: March 24, 2015, 08:43:04 AM »
For which OS (1.3, 3.1/3.9, or 4.1)?

Define "Layout."  

"Thomas Rapp" on the forums is an expert, see: "http://thomas-rapp.homepage.t-online.de/index.html"

Also search Google: http://en.wikipedia.org/wiki/Amiga_Fast_File_System
 

guest11527

  • Guest
Re: AmigaOS filesystem layout
« Reply #2 on: March 24, 2015, 08:43:30 AM »
Double post - ignore.
 

guest11527

  • Guest
Re: AmigaOS filesystem layout
« Reply #3 on: March 24, 2015, 08:44:12 AM »
Quote from: Thomas Richter;786672
Quote from: AmigaFreak;786670
Is there a book like that, or something on-line I can read?

There is the Bantam Books "Amiga Dos Manual" which contains this information, and there is the "Guru Book" by Ralph Babel. Of the two books, the latter is more recommended, though the former is the original reference.
 

Offline chris

Re: AmigaOS filesystem layout
« Reply #4 on: March 24, 2015, 10:54:25 AM »
Quote from: AmigaFreak;786670
Hey everyone,

I'm looking for information on the filesystem layout on AmigaOS. What is where, why a particular file is in that place, Just general directory layout... Is there a book like that, or something on-line I can read?

I'm just kinda curious about the FS layout of the Amiga... I've used UNIX systems quite a bit and I'm used to the filesystem layout.. /bin , /usr etc... but even though I have used my fair share of Amigas, I never really opened up CLI to dig around in the actual filesystem beyond Workbench's windows.


Briefly, the system partition is something like this (from memory - so may well have missed something):

C - Commands - executable commands.
Classes - BOOPSI Classes - gadget classes, datatypes, etc
Devs - Devices - Device drivers.  Also sub-divided into Printers (printer drivers), DataTypes (datatypes descriptors, not sure why these are in Devs though), and some other things I forget.
Fonts - Fonts - Fonts!
L - Filesystem Handlers (named Libraries due to TripOS legacy).  OS4 also has some charset information here for some reason (which ought to be in LOCALE: )
Locale - Localisation stuff - translations, country data, help files, etc
Libs - Libraries - Shared libraries
Prefs - Preferences - WB prefs programs.  Also contains Env-Archive, which is where permanent prefs and environmental variables are stored.
S - Startup - startup scripts
SObjs - Shared Objects - OS4 only, Linux-style shared libraries (.so)
System - System programs - Commands like Format which are required by WB
Utilities - Utilities - Dumping ground for software which comes with the OS
Tools - Tools - Dumping ground for software which traditionally comes on the Extras disk

The actual directory names don't really matter that much - AmigaOS references them all by assigns - DEVS:, C:, LIBS: etc.  I haven't tried renaming and manually setting the assigns to the new locations, but in theory that should work!
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline pVC

Re: AmigaOS filesystem layout
« Reply #5 on: March 24, 2015, 04:55:04 PM »
Quote from: chris;786681

S - Startup - startup scripts


I read that it's originally from "Sequence" word, and you'll put all kinds of scripts there, not just startup scripts.

Quote
The actual directory names don't really matter that much - AmigaOS references them all by assigns - DEVS:, C:, LIBS: etc.  I haven't tried renaming and manually setting the assigns to the new locations, but in theory that should work!


Yes and you can also add locations to the assigns. For example if you want to keep your SYS:Libs/ directory clean only containing the libraries which come with the OS, and you want to have 3rd party libraries in some other dir.. for example in SYS:UserLibs. You can add it with "Assign Libs: SYS:UserLibs ADD" command. Then the library to be opened from the Libs: will be looked from the both SYS:Libs/ and SYS:UserLibs/ paths.
Daily MorphOS user and Amiga active.
 

Offline kolla

Re: AmigaOS filesystem layout
« Reply #6 on: March 24, 2015, 06:03:05 PM »
This what MorphOS does in a very neat way. All the typical directories are pretty much empty, for example SYS:Libs, but LIBS: is assigned to SYS:Libs MOSSYS:Libs, and the lattet comtains all of MorphOS native libraries. Any libraries installed by programs or user, goes to SYS:Libs (since it is first in path of the Libs: assign), and libs in SYS:Libs will also be loaded before equally named libs in MOSSYS:Libs.

And all these directories came from TRIPOS btw.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline Oldsmobile_Mike

Re: AmigaOS filesystem layout
« Reply #7 on: March 24, 2015, 06:19:18 PM »
Quote from: pVC;786686
Yes and you can also add locations to the assigns. For example if you want to keep your SYS:Libs/ directory clean only containing the libraries which come with the OS, and you want to have 3rd party libraries in some other dir.. for example in SYS:UserLibs. You can add it with "Assign Libs: SYS:UserLibs ADD" command. Then the library to be opened from the Libs: will be looked from the both SYS:Libs/ and SYS:UserLibs/ paths.

And this is why AmigaOS is so great, even 30 years later.  :)
Amiga 500: 2MB Chip|16MB Fast|30MHz 68030+68882|3.9|Indivision ECS|GVP A500HD+|Mechware card reader + 8GB CF|Cocolino|SCSI DVD-RAM
Amiga 2000: 2MB Chip|136MB Fast|50MHz 68060|3.9|Indivision ECS + GVP Spectrum|Mechware card reader + 8GB CF|AD516|X-Surf 100|RapidRoad|Cocolino|SCSI CD-RW
 Amiga videos and other misc. stuff at https://www.youtube.com/CompTechMike/videos
 

Offline Tenacious

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show only replies by Tenacious
Re: AmigaOS filesystem layout
« Reply #8 on: March 24, 2015, 07:12:30 PM »
Quote from: Oldsmobile_Mike;786691
And this is why AmigaOS is so great, even 30 years later.  :)

Agreed!  Actually 1 of many reasons.

You didn't mention which Amiga or version of the OS you have.  If you still have the books that came with an OS1.3 Amiga, the small book "Enhancer Software" has a complete list of all the traditional directories and all the files they contain on the standard disks (starting at B-1).  As already said, most of the AmigaDos manuals explain this well, too.

One of my favorite references is Rob Peck's "The Amiga Companion".  It is clearly written and available online as a PDF.

@ Chris
"..L - Filesystem Handlers (named Libraries due to TripOS legacy).."  I used to wonder about how L got its name.
« Last Edit: March 24, 2015, 07:17:31 PM by Tenacious »
 

Offline broadblues

Re: AmigaOS filesystem layout
« Reply #9 on: March 24, 2015, 07:37:44 PM »
Quote from: chris;786681


The actual directory names don't really matter that much - AmigaOS references them all by assigns - DEVS:, C:, LIBS: etc.  I haven't tried renaming and manually setting the assigns to the new locations, but in theory that should work!


I'm not so convinced of that. Yes you can add paths to the assigns, and even remove and reassign them else where, but if the standard dirs aren't there, you might have trouble booting in the first place, to run the script that does that.

The absense of SYS:S and SYS:C in particular may cause a headache.
 

Offline chris

Re: AmigaOS filesystem layout
« Reply #10 on: March 24, 2015, 07:53:03 PM »
Quote from: pVC;786686
I read that it's originally from "Sequence" word, and you'll put all kinds of scripts there, not just startup scripts.

Yes, I think you're right.

Quote from: kolla;786690
And all these directories came from TRIPOS btw.

Only the single-letter ones AFAIK.

Quote from: Tenacious;786693
"..L - Filesystem Handlers (named Libraries due to TripOS legacy).."  I used to wonder about how L got its name.

I only found out fairly recently, when somebody posted a link to the TripOS manual.

Quote from: broadblues;786695
I'm not so convinced of that. Yes you can add paths to the assigns, and even remove and reassign them else where, but if the standard dirs aren't there, you might have trouble booting in the first place, to run the script that does that.

The absense of SYS:S and SYS:C in particular may cause a headache.

Yes, fair point.  It was more a thought exercise than something I'd expect anybody to try!
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show only replies by itix
Re: AmigaOS filesystem layout
« Reply #11 on: March 24, 2015, 08:22:31 PM »
Quote from: broadblues;786695
I'm not so convinced of that. Yes you can add paths to the assigns, and even remove and reassign them else where, but if the standard dirs aren't there, you might have trouble booting in the first place, to run the script that does that.

The absense of SYS:S and SYS:C in particular may cause a headache.


If SYS:C is missing would AmigaOS look Startup-Sequence from the root?
My Amigas: A500, Mac Mini and PowerBook
 

guest11527

  • Guest
Re: AmigaOS filesystem layout
« Reply #12 on: March 24, 2015, 09:58:52 PM »
Quote from: kolla;786690
And all these directories came from TRIPOS btw.

Actually, no. Only the one-letter directories are tripos. L: for "Libraries", this is were Tripos keeps its "Library stuff", we call it "Handlers" today. "S:" for scripts, "C:" for commands.  DEVS: and LIBS: are exec/Sassenrath names that came in through ramlib. T: is also a Tripos name. FONTS: came a lot later.
 

Offline Matt_H

Re: AmigaOS filesystem layout
« Reply #13 on: March 24, 2015, 11:14:53 PM »
For reference, here is the Tripos manual. I paged through it a number of years ago. It's a fascinating read, especially for me, since I think the Amiga's logical, human-readable file hierarchy is one of its greatest assets - but it comes almost verbatim from an older system!
 

Offline pVC

Re: AmigaOS filesystem layout
« Reply #14 on: March 25, 2015, 05:59:43 AM »
Quote from: broadblues;786695
I'm not so convinced of that. Yes you can add paths to the assigns, and even remove and reassign them else where, but if the standard dirs aren't there, you might have trouble booting in the first place, to run the script that does that.

The absense of SYS:S and SYS:C in particular may cause a headache.

Some people have made boot disks etc with reassigned system assigns, and I haven't heard any complaints of them. So I'd guess it should work that you first remove S: assign, and then assign it elsewhere. Although I don't remember trying it myself, but nobody (at least programmers) should never use fixed paths in these situations... probably at least most of the stuff would work happily.

Maybe only the startup-sequence has to be where kickstart looks it at first place, but then you can reassign other dirs first thing in it...
« Last Edit: March 25, 2015, 06:01:52 AM by pVC »
Daily MorphOS user and Amiga active.