OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Linux Directory Structure
TonyOlsen
post Nov 25 2004, 11:39 AM
Post #1





Group: Members
Posts: 554
Joined: 19-April 04
From: Keokuk, Iowa
Member No.: 2,897



What's the basic/general Linux directory structure? I'm still trying to figure it out and I keep forgetting where in the maze of directories to find certain things Im looking for. I've noticed the that directory structure appears to change slightly from one Linux Operating System flavor to another. Is there a link to an image of the directory structure and it's meanings? Which directory contains what subject, etc?

With this information I should be able to navigate through the Terminal screen better.

Thanks in advance! smile.gif
Go to the top of the page
 
+Quote Post
icey
post Nov 25 2004, 01:16 PM
Post #2





Group: Members
Posts: 7
Joined: 19-May 04
From: Scotland
Member No.: 3,343



Hope this helps you: Filesystem Hierarchy Standard. smile.gif

Edit:

That was a link to Filesystem Hierarchy Standard v2.3 but you're probably best checking the FHS v2.2 as that's more akin to the Zaurus filesystem: FHS v2.2 Requirements, check the table of contents for much more information.
Go to the top of the page
 
+Quote Post
TonyOlsen
post Nov 25 2004, 01:44 PM
Post #3





Group: Members
Posts: 554
Joined: 19-April 04
From: Keokuk, Iowa
Member No.: 2,897



Wow! That's great! Thanks! smile.gif

Are there any additional links talking about the /home/zaurus, /home/QtPalmtop, /home/sharp, and other Zaurus-specific diretories and sub-directory structures? (There seems to be a LOT of structure under these)

While looking around the links above, I found:
QUOTE
/home is a fairly standard concept, but it is clearly a site-specific filesystem.

...so maybe there's a sharp document/website that talks about the SL-C860 version of the /home/ directory.
Go to the top of the page
 
+Quote Post
TonyOlsen
post Nov 25 2004, 01:52 PM
Post #4





Group: Members
Posts: 554
Joined: 19-April 04
From: Keokuk, Iowa
Member No.: 2,897



/home/zaurus/Applications/.. appears to be the Linux equivalent of Window's C:\Program Files\... directory. It isn't needed (since you could simply place the executables in the /bin/ directory). Does that sound right?
Go to the top of the page
 
+Quote Post
icey
post Nov 25 2004, 02:54 PM
Post #5





Group: Members
Posts: 7
Joined: 19-May 04
From: Scotland
Member No.: 3,343



You're welcome! The distinction of /home/zaurus/Applications seems to be that it's specifically for Qtopia applications; it does function as an equivalent of "Program Files". The contents of bin (and sbin) directory would be analogous to the executables in Windows/System32/.

I haven't seen any documents specific to the Zaurus/Qtopia way of arranging files but with a fairly good understanding of the general Linux filesystem layout, I haven't been at all overwhelmed by the small additions and idioms which appear on the Zaurus. Qtopia add-ons seem to be reasonably simple and sensibly placed.

BTW, /home/zaurus is the home directory of the default user account on the zaurus. You are automatically logged in as the user "zaurus".

Edit:
I just found this!
Go to the top of the page
 
+Quote Post
TonyOlsen
post Nov 25 2004, 03:39 PM
Post #6





Group: Members
Posts: 554
Joined: 19-April 04
From: Keokuk, Iowa
Member No.: 2,897



Thanks! smile.gif The link is also very helpful! smile.gif
Go to the top of the page
 
+Quote Post
Stubear
post Nov 25 2004, 05:10 PM
Post #7





Group: Members
Posts: 1,164
Joined: 17-December 03
From: Melbourne, AUSTRALIA
Member No.: 1,219



QUOTE(TonyOlsen @ Nov 26 2004, 06:52 AM)
/home/zaurus/Applications/.. appears to be the Linux equivalent of Window's C:\Program Files\... directory. It isn't needed (since you could simply place the executables in the /bin/ directory). Does that sound right?

Close except you should chage "linux" to "zaurus" - only zaurus uses /home/zaurus/Applications that I've seen, and then only for configuration/save files rather than binary files - the binary fiels are usually in /home/Qtopia/bin on the Z.

Don't take the file structure of the Z to be anything like a standard of linux. I've been using linux since 1995 and the zaurus structure still confuse me - they have a whole lot of symlinks chained together to get around the fact that most of the / directories are read-only

Stu
Go to the top of the page
 
+Quote Post
lardman
post Nov 26 2004, 08:11 AM
Post #8





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



QUOTE
the binary fiels are usually in /home/Qtopia/bin


I reckon you mean /home/QtPalmtop/bin/.

This address (/home/QtPalmtop/) is symlinked to its correct location - /opt/QtPalmtop/, which makes more sense when looking at a standard Linux filesystem heirachy; the reason why it's in /home, is that only /home is writable and you want to be able to install things.

QUOTE
only zaurus uses /home/zaurus/Applications that I've seen, and then only for configuration/save files rather than binary files


This is my understanding too. Under Linux, configuration files are normally saved in subdirectories of the home directory.


Si
Go to the top of the page
 
+Quote Post
TonyOlsen
post Nov 26 2004, 12:58 PM
Post #9





Group: Members
Posts: 554
Joined: 19-April 04
From: Keokuk, Iowa
Member No.: 2,897



The link I was given above shed some nice light on the simlink confusion in the Zaurus Linux directory setup. You have a potential of 4 kinds of media on the Zaurus:
  • Read-Only Internal Memory or ROM Disk (/)
  • Read-Write Internal Memory or RAM Disk (/home/)
  • CF Card (/mnt/cf/)
  • SD/MMC Card (/mnt/card)
It's the interaction between the ROM Disk and RAM Disk that expalins why there are so many simlinks and duplicate diretories. The root system directories are on the ROM Disk, but some of the files in them need to be changed by the system from time to time, so instead most of the root level system directories are nothing more than simlinks to equivalent direcories in the RAM Disk (inside the /home/ directory structure).

That's the first level of simlinks.

The 2nd level of simlinks is based on trying to have as many of the system binaries in the ROM as possible. Most of the system binaries in the /home/ system directories are simlinks back to yet other directories off of the root. When a system file is overwritten, the simlinks in the /home/ system directories get overwritten with actual new binaries and files.

So, in short, ROM simlinks to RAM which simlinks back to ROM. The setup makes sense considering that this is an embedded Linux setup. I can imagine that other Embedded Linux setups are similar.
Go to the top of the page
 
+Quote Post
lardman
post Nov 27 2004, 03:27 AM
Post #10





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



QUOTE
I can imagine that other Embedded Linux setups are similar.


Some other Zaurus ROMs are completely normal though:

OZ, pdaXrom, etc. (as they have writable flashROMs) do away with both levels of symlink spaghetti and write files to their normal locations.


Si
Go to the top of the page
 
+Quote Post
TonyOlsen
post Nov 27 2004, 04:47 AM
Post #11





Group: Members
Posts: 554
Joined: 19-April 04
From: Keokuk, Iowa
Member No.: 2,897



Cool! smile.gif
Go to the top of the page
 
+Quote Post
wmadan
post Nov 29 2004, 01:01 PM
Post #12





Group: Members
Posts: 164
Joined: 12-May 04
Member No.: 3,254



This is a fantastic example of a very helpful thread that I so often find here on the ZUG. I have learned a lot by following this.

Thanks!

Bill
Go to the top of the page
 
+Quote Post
Dez
post Dec 17 2004, 03:17 PM
Post #13





Group: Members
Posts: 4
Joined: 14-December 04
Member No.: 5,919



Does the SL-C3000 standard ROM follow the same symlink structure? It seems like with the HD and RAM for dynamic use only, it could look more like a "traditional" desktop Linux installation...
Go to the top of the page
 
+Quote Post
t,munari
post Feb 23 2005, 06:58 AM
Post #14





Group: Members
Posts: 2
Joined: 12-January 05
Member No.: 6,199



Well... no,
cause the 3000 HD is divided in 3 partitions:
1st, mounted read only, it is used as a fake ROM,
2nd is rw and is equivalent to RAM,
and the 3rd is FAT32 to permit a "windows compatible" usb-slave mode.

It's a few weeks I've got a c-3000, I am really impressed by the hardware, but on the software part it's really lacking (but it's better than the other way round! =-)
Tomaso
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th October 2014 - 01:30 AM