Solaris Interview Questions and Answers http://solarisinterview.blogspot.com/
Mounts & Unmounts
# mount - Lists all of the mounted FS in the /etc/mnttab file
VFSTAB -Virtual File System Tab /etc/vfstab
device to mount device to fsck mount point FS type fsck pass mount at boot mount options
- /etc/mnttab file is an mntfs file that provides read-only info about mounted FS on the local host
- The /etc/vfstab file lists all the FS to be automatically mounted at system boot time, with the exception of the /etc/mnttab and /var/run FS
# mount /dev/dsk/c0t0d0s7 /export/home
Mount Options : read/write, setuid, intr, nologging and largefiles, xattr and onerror.
# mount –o option,option,… device_name mount_point
# mount -o ro /dev/dsk/c0d0s7 /p3 - Mount the partition read only.
# mount –o ro,nosuid /dev/dsk/c0t0d0s7 /export/home - Prohibit execution of setuid pgm.
In solaris 2GB is the large file limit. Use of nolargefiles option fails if the FS to be mounted contains large files.
# mount -o nolargefiles,noatime /dev/dsk/c0d0s7 /p3
nolargefiles - Won’t allow large files in this partition
noatime - Modification time stamp won’t get updated.
# mountall - Mounted local FS listed in the /etc/vfstab file
# mountall –l - If any FS has entry in the fsck pass field as – or 0 then it will get mounted without fsck checking. Otherwise fsck carried out before mounting
# fstype /dev/rdsk/c0t0d0s7 - To know the FS type
# mount –F hsfs –o ro /dev/dsk/c0t6d0s0 /cdrom - To mount CD-Drive
# mount –F pcfs /dev/diskette /pcfs
# umount /export/home or umount /dev/dsk/c0t0d0s7
# umountall - Will unmount local FS listed in /etc/mnttab except /, /usr, /proc, /dev/fd, /var, /var/run & /tmp
# umountall –l - To verify the FS listed in the /etc/mnttab
# fuser –c /p3 - Will show the process running on the partition
# fuser –ck /p3 Will kill the user processes
# umount –f /p3 Force the partition to unmount
# TERM=sun
# export TERM - Executes this 2 command to enable the VI editor to work properly
# ps –ef
grep vold
Vold is the daemon taking care of auto mounting CD-Rom.
# volcheck - Will check any media present in CD-Rom or Floppy drive
# /floppy/floppy0 - Floppy get mounted here automatically
# /cdrom/cdrom0 - CD-Rom get mounted here automatically
# /etc/init.d/volmgt stop (or) start
# eject cdrom - Will eject the CD-Rom if the vold is running
# fdformat –t dos /dev/rdiskette - To format a floppy with DOS mode
# fdformat - To format the floppy in Solaris Format.
No comments:
Post a Comment