Filesystems and Disk Management

Intro to filesystems Filesystems commands.
How to add disk? other media

Intro to filesystems?

Managing filesystems is one of the important tasks of Systems Administrator. Unix filesystems when originally designed to favour its users. Unix filesystems look like an inverted tree, so that a root is at top and then branches underneath it. Major tasks for Systems administrators are:

When Unix operating systems is intalled, some directories depending upon the Unix being installed are creaed under / (or root), such as /usr /bin /etc /tmp /home /var. As you can attach many disks to Unix operating systems, it is recommended that when working in professional environment / and /usr /home are on separate disks.

So, for example if you have a new unix systems which has root directory (/) installed on say Physical disk /dev/dsk/c1tds0 and you want to attach a new physical disk /dev/dsk/c1tds5 which will house /home directory where all users have access.

To do that you login to system and create a home directory on / directory using mkdir command, i.e. mkdir home . Then using fsck which command is used to check the validity of filesystem, first check fsck /dev/dsk/c1tds5 and then if everything is ok, using mount /dev/dsk/c1tds5 /home will attach /home to / filesystems and make it usable. Before issuing this command make sure that you are in / directory.

The filesystem types must be built on a newly installed disk. Filesystems occupy a single decive, accessed with a special filename, usually in /dev/dsk directory. When a filesystem is made, certain data structures are written to disk that will be used to access and organize the physical disk space into files. These type of data structure include superblock which holds information about the filesystem itself, such as its label, size and total number of inodes, without it filesystem becomes unreadable.

back to top
Back to main page

Filesystems Admin Commands

Apart from the basic mkdir, cd, cp, mv, ln commands, there are several commands for systems administrators. You should always use admin tool provided with your system. By clicking this button you can find out the admintool provided with your version of Unix

These are recommended commands which you can use from command line
fsck,Umount,mount, fuser, init q,
Check other commands in commands page

back to top
Back to main page

How to add a disk?

To add a disk to system. Please follow following rules.

back to top
Back to main page

Physical media

back to top
Back to main page

Fundamentals of Unix Unix commands User Accounts Shell Programming
File Systems Networking Backups Security
Installing software Installing Hardware Performance and Tuning Some Useful Scripts

Your suggestions and comments are welcome. Please e-mail me
Copyright reserved with Sandeep S Bajwa.