ufs - Unix FS
hsfs - High Sierra FS
pcfs - PC FS for DOS FAT32 FS
udfs - Universal Disk Format FS
nfs - Network FS
Pseudo FS - Memory based FS
tmpfs swapfs procfs mntfs
VTOC present in the first sector in the raw disk area.
VTOC - 512 sector
Boot Block - 1-15 sector
Super Block - 16-31
First Cylinder Group - 32
Creating File Systems
# newfs /dev/rdsk/c1d0s0 -- Creating FS
# newfs -i 16384 /dev/rdsk/c1d0s0 -- Creating FS with data block size 16KB
# mount /dev/dsk/c1d0s0 /p1 -- Mounting partition in /p1 directory
# fstyp -v /dev/rdsk/c1d0s0 grep minfree minfree 6% -- To know the reserved disk space
# tunefs -m 2 /dev/rdsk/c1d0s0 -- This will reduce the reserved space to 2%
# umount /p1 -- To umount a partition.
-- Never run the fsck command on a mounted FS. The /, /usr and /var FS should have the fsck command run on them on single user mode
# fsck /dev/rdsk/c0td0s7 -- To check the FS in interactive mode
# fsck -o f,p /dev/rdsk/c0t0d0s7 -- f - forces p - preen or Non interactive mode
# fsck -y /dev/rdsk/c0t0d0s7 -- It answers that to all questions we said yes with -y option
# newfs -N /dev/rdsk/c0t0d0s7 -- To view the locations of alternative backup superblocks
# fsck -o b=32 /dev/rdsk/c0t0d0s7 -- Will retrieve the corrupted partition.
# dd if=/dev/zero of=/dev/rdsk/c0d0s7 bs=512 count=32 -- It will corrupt the partition
# df -- Shows disk detail in blocks# df -k (in KB) # df -h -- Displays disk allocation in MB & GB# df -e -- Points only the number of files free
# du -k -- Displays disk use in KB# du -s -- Displays only the summary in 512 bytes blocks. Using the s and k options together shows summary in KB# du -h /opt -- Shows the disk usage by the directory
# quot -a -- Reports on all mounted file systems# quot -f -- Include the number of files# quot -h /export/home -- Shows disk usage userwise in the particular directory
No comments:
Post a Comment