+ All Categories
Home > Documents > Filesystems&Mounts

Filesystems&Mounts

Date post: 06-Apr-2018
Category:
Upload: kaushik-prakash-sharma
View: 214 times
Download: 0 times
Share this document with a friend

of 14

Transcript
  • 8/3/2019 Filesystems&Mounts

    1/14

    FUJITSU CONFIDENTIAL

  • 8/3/2019 Filesystems&Mounts

    2/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    File System Types

    UFS Unix File System. The default file systemtype for Solaris

    HSFS High Sierra File System CDROM filesystem format based on the ISO 9660 standard

    PCFS Personal Computer File System DOSformatted floppies

    UDF Universal Disk Format mainly for reading

    DVD. Remember, a file system is a hierarchical

    collection of directories and files.

  • 8/3/2019 Filesystems&Mounts

    3/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    Creating New File Systems

    Disk partitions are like virtual disks. It is a way tosubdivide a single disk into several virtual disks.

    Naming convention:

    CxTyD0Sz

    Cx Controller X, X=0-7

    Ty SCSI ID Y, Y=0-15

    D0 always set this way

    Sz Slice(Partition) Z, Z=0-7

  • 8/3/2019 Filesystems&Mounts

    4/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    Creating New File Systems

    Identify the disk partition you want to use.

    Use the newfs command to create the file systemstructure on that partition.

    newfs /dev/dsk/c0t0d0s1

    3% of the actual available space is reserved forsystem maintenance.

    A lost+found directory is created for file system

    checks and repair

  • 8/3/2019 Filesystems&Mounts

    5/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    fsck

    fsck is the Unix file system repair command.

    Its very useful for checking and repairing problems

    with the disk, file system, superblocks and inodes.

    These problems are usually caused by a hardwarefailure or power loss.

  • 8/3/2019 Filesystems&Mounts

    6/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    du, df

    The du command displays the size of a directory in

    a file system.

    du s directory

    Displays the total size of the directory

    du directory

    Displays the sizes of the files inside the directory

    The df command displays all of the mounted file

    systems, their sizes and capacity.

  • 8/3/2019 Filesystems&Mounts

    7/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    quot

    The quot command will display how much disk

    space is being used by a particular user.

    2 flags

    -a report on all mounted file systems -f report the number of files owned by the user.

  • 8/3/2019 Filesystems&Mounts

    8/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    mount, umount

    File systems must be mounted before they can be

    accessed by users.

    The mount point is the anchor point for the

    directory tree structure. A mount point is basicallyan empty directory until you mount a file system on

    it.

    The umount command detaches the file system

    from the mount point and makes the FSunavailable to the users.

  • 8/3/2019 Filesystems&Mounts

    9/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    /etc/mnttab, /etc/vfstab

    2 files that control and list the mounted filessystems.

    /etc/mnttab is a system generated file listing thecurrently mounted file systems. This is not a text

    file anymore.

    /etc/vfstab is the file that tells the system which filesystems to mount at boot time.

  • 8/3/2019 Filesystems&Mounts

    10/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    /etc/vfstab

    /, /usr, /var, /opt, /proc, /tmp, /home or

    /export/home are automatically mounted at boot.

    /etc/vfstab contains the information needed to

    mount these file systems.Add your file systems to this file if you want them

    mounted at boot.

  • 8/3/2019 Filesystems&Mounts

    11/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    /etc/vfstab

    7 fields

    Device path to the file system

    Raw device path to the disk partition to fsck

    The mount point directory

    The file system type (ufs, pcfs, hsfs, uds)

    The order for fsck to run

    Mount at boot?

  • 8/3/2019 Filesystems&Mounts

    12/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    Whats in the file systems and System

    Directories

    / - top of the Unix directory tree. All directories arecomponents of this tree.

    /etc system configuration files, password filesand databases

    /opt default location of optional software. Thedefault location for most Sun software.

    /proc special system FS that contains a list ofactive processes on the system.

    /tmp scratch work area. Solaris uses this asswap space.

  • 8/3/2019 Filesystems&Mounts

    13/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    Whats in the file systems and System

    Directories

    /usr contains system binaries and libraries. Alsoused to contain freeware.

    /var used to store the system logs

    /home, /export/home default location of the userhome directories

    /var/run repository for temp system files that

    arent needed across system reboots.

  • 8/3/2019 Filesystems&Mounts

    14/14

    FUJITSU CONFIDENTIAL va-scanCopyright 2002, Marchany

    Reading from the CDROM

    Solaris Volume Management is enabled by defaultso its easy to load a cd.

    Once you load it in the drive, Solaris automaticallymounts it to /cdrom

    To look at the content of the CD:

    ls l /cdrom/cdrom0

    Use the cp command to copy files from the CD to

    disk. To unload the CD

    cd out of the cdrom directory

    Enter: eject cdrom


Recommended