Exam Questions

1.

Which of the following represents the kernel’s abbreviated name for every possible device on the system?

Image

A. Instance name

Image

B. Logical device

Image

C. Physical device name

Image

D. Pseudo device name

2.

Physical device files are found in which of the following?

Image

A. /kernel/drv

Image

B. /dev

Image

C. /platform

Image

D. /devices

3.

Which of the following displays device configuration information, including system hardware, pseudo devices, loadable modules, and selected kernel parameters?

Image

A. messages

Image

B. prtconf

Image

C. dmesg

Image

D. sysdef

4.

When you see the driver not attached message, it means which of the following?

Image

A. The device for this driver is not attached.

Image

B. A driver is unavailable for this device.

Image

C. No driver is currently attached to the device instance because there is no device at this node or the device is not in use.

Image

D. The kernel needs to be reconfigured to attach the device.

5.

The conf files reside in what file system?

Image

A. /kernel/drv

Image

B. /dev

Image

C. /devices

Image

D. /platform

6.

Which of the following are mapped to a physical device name in the /etc/path_to_inst file?

Image

A. Logical devices

Image

B. Instance names

Image

C. Physical devices

Image

D. Pseudo devices

7.

You can determine the mapping of an instance name to a physical device name by doing what? Choose all that apply.

Image

A. Looking at output from the dmesg command

Image

B. Viewing the /var/adm/messages file

Image

C. Looking at output from the sysdef command

Image

D. Looking at output from the prtconf command

8.

The system relies on information found in which of the following files to find the root, usr, or swap device?

Image

A. /etc/vfstab

Image

B. /etc/path_to_inst

Image

C. kernel

Image

D. /kernel/drv/

Image

A. /etc/driver

9.

Which of the following commands creates logical links to device nodes in the /dev and /devices directories?

Image

A. boot -r

Image

B. drvconfig

Image

C. devfsadm

Image

D. devlinks

10.

Which of the following commands is used to inform the system about newly installed device drivers?

Image

A. devlinks

Image

B. drvconfig

Image

C. add_drv

Image

D. devfsadm

11.

Which of the following is the daemon responsible for handling both reconfiguration boot processing and updating /dev and /devices in response to dynamic reconfiguration event notifications from the kernel?

Image

A. devfsadmd

Image

B. inetd

Image

C. devfsdadm

Image

D. svc.startd

12.

Your external CD-ROM was not turned on when the system was last booted with a reconfiguration reboot. To gain access to the CD-ROM, you could halt the system, turn on power to the CD-ROM, and start the system back up, or you could issue which of the following commands at the command prompt?

Image

A. drvconfig cdrom

Image

B. add_drv cdrom

Image

C. devfsadm

Image

D. drvconfig -d

13.

Which of the following indicates the general device driver for devices such as disk, tape, or serial line?

Image

A. Minor device number

Image

B. Major device number

Image

C. Device tree

Image

D. Pseudo device

14.

The minor device number:

Image

A. Indicates the general device driver for devices such as disk, tape, or serial line.

Image

B. Indicates the specific member within a driver.

Image

C. Uniquely defines a device and its device driver.

Image

D. Identifies the proper device location and device driver to the kernel.

15.

Logical device files in the /dev directory are symbolically linked to which of the following in the /devices directory?

Image

A. Instance names

Image

B. Pseudo device files

Image

C. Full device path names

Image

D. Physical device files

16.

Which of the following is a link from the /dev directory to the physical device name located in the /devices directory?

Image

A. Full device path name

Image

B. Pseudo device name

Image

C. Logical device name

Image

D. Instance name

17.

/dev/dsk/c0t0d0s7 is what type of device?

Image

A. Logical device name

Image

B. Pseudo device name

Image

C. Full device path name

Image

D. Instance name

18.

Which of the following commands creates entries in the /dev directory for disk drives attached to the system?

Image

A. devfsadm

Image

B. add_drv

Image

C. drvconfig

Image

D. boot -r

19.

Which directory contains the disk entries symbolically linked to the block device nodes in /devices?

Image

A. /kernel/drv

Image

B. /dev/rdsk

Image

C. /vol/dev/aliases

Image

D. /dev/dsk

20.

Which of the following best describes a physical device name?

Image

A. It represents the full device pathname of a device.

Image

B. It is equivalent to the SCSI target ID of a device.

Image

C. It represents the actual name of a device, such as a disk, tape, and so on.

Image

D. It represents the kernel’s abbreviated name for a device on the system.

21.

In the standard device file naming convention “cXtYdZ,” what does the “tY” portion of the filename identify?

Image

A. The controller card to which this device is attached

Image

B. The SCSI target address of the device

Image

C. The LUN of the device

Image

D. The function number as contained on the “Core I/O” board

22.

Which of the following is a character device name?

Image

A. /dev/dsk/c0t3d0s0

Image

B. /dev/rdsk/c0t3d0s0

Image

C. /dev/cua

Image

D. /devices/sbus@1,f8000000/esp@0,40000/sd@3,0:a

23.

What best describes an instance name?

Image

A. The kernel’s abbreviated name for every possible device on the system

Image

B. A symbolic link to a physical device file

Image

C. The full device pathname of a device

Image

D. The SCSI address of a disk drive

24.

Logical devices are organized in subdirectories under which directory?

Image

A. /dev

Image

B. /devices

Image

C. /kernel

Image

D. /

25.

What best describes a logical device name?

Image

A. It is a symbolic link to a physical device file.

Image

B. It represents the kernel’s abbreviated name for every possible device on the system.

Image

C. It represents the full device pathname of a device.

Image

D. It defines the SCSI address of a disk device.

26.

What statement is not true about disk slices on standard Solaris?

Image

A. Each slice can hold only one file system.

Image

B. A file system cannot span multiple disk slices.

Image

C. A file system cannot be increased or decreased.

Image

D. Slices can span multiple disks.

27.

Where is disk configuration information stored?

Image

A. On the disk label

Image

B. In several locations on the disk

Image

C. In the superblock

Image

D. In the partition table

28.

Which of the following stores the procedures used to boot the system?

Image

A. Boot block

Image

B. Superblock

Image

C. inode

Image

D. Disk label

29.

Which of the following commands will display partition information about a disk?

Image

A. prtvtoc

Image

B. sysdef

Image

C. df -k

Image

D. sysinfo

30.

Which of the following is not a virtual file system?

Image

A. /export/home

Image

B. Tmpfs

Image

C. Cachefs

Image

D. Procfs

31.

Which of the following tasks cannot be performed with the format utility?

Image

A. Repairing defective sectors

Image

B. Partitioning

Image

C. Retrieving corrupted disk labels

Image

D. Displaying disk usage

32.

Which of the following does the superblock not contain?

Image

A. Size and status of the file system

Image

B. Cylinder group size

Image

C. Pathname of the last mount point

Image

D. Boot information

33.

What information does the inode contain? Choose all that apply.

Image

A. The type of the file

Image

B. File directory information

Image

C. The number of bytes in the file

Image

D. Logical volume information

34.

What is not true about logical block sizes?

Image

A. The logical block size is the size of the blocks the Unix kernel uses to read or write files.

Image

B. By default, the logical block size is 8192 bytes.

Image

C. A larger logical block size increases efficiency for file systems in which most of the files are large.

Image

D. A small logical block size increases efficiency for file systems in which most of the files are large.

35.

What determines the number of inodes to be created in a new file system?

Image

A. The number of inodes depends on the amount of disk space that is allocated for each inode and the total size of the file system.

Image

B. 2048 inodes are created per 1GB of file system space.

Image

C. The number is dynamic and the kernel assigns inodes as required by the number of files in a file system.

Image

D. By default, one inode is allocated for each 2KB of data space.

36.

In Solaris, which of the following is referred to as the smallest allocable unit of disk space?

Image

A. Fragment

Image

B. Data block

Image

C. Logical block

Image

D. Byte

37.

What is another name for swap space and the total physical memory combined?

Image

A. Virtual memory

Image

B. Random Access Memory

Image

C. Partition C or Slice 2

Image

D. Static memory

38.

When should a file system be checked with fsck? Choose all that apply.

Image

A. If the file system was unmounted improperly

Image

B. After a power outage

Image

C. Whenever a file system cannot be mounted

Image

D. When data has been accidentally deleted

39.

What does fsck do when it preens a file system?

Image

A. Forces checking of the file system

Image

B. Checks and fixes the file system noninteractively

Image

C. Checks writeable file systems only

Image

D. Only checks to determine if a file system needs checking

40.

Which of the following files contains a list of file systems to be automatically mounted at bootup?

Image

A. /etc/fstab

Image

B. /etc/dfs/dfstab

Image

C. /etc/vfstab

Image

D. /etc/rc2.d/S74autofs

41.

The mountall command

Image

A. Mounts the CD-ROM and floppy automatically

Image

B. Mounts all file systems specified in the file system table

Image

C. Shares all files systems so that they can be mounted

Image

D. Mounts the tape in the tape drive

42.

What command(s) is/are used to display disk space information?

Image

A. du

Image

B. df

Image

C. quota

Image

D. repquota

Image

E. All of the above

43.

Which of the following mount options is used to mount file systems that have files larger than 2GB?

Image

A. largefiles

Image

B. nolargefiles

Image

C. lf

Image

D. nlf

44.

What should you do to disable UFS logging on a file system?

Image

A. Use the -o nologging option with the mount command.

Image

B. Use the -l option with the mount command.

Image

C. You don’t need to do anything; nologging is the default when mounting a file system.

Image

D. Use the logging feature in the newfs command when creating the file system.

45.

Which of the following represents the correct format for an entry in the /etc/vfstab file?

Image

A. device to mount, device to fsck, mount point, FS type, fsck pass, mount at boot, mount options

Image

B. device to fsck, device to mount, mount point, FS type, fsck pass, mount at boot, mount point

Image

C. mount point, device to mount, device to fsck, mount point, FS type, fsck pass, mount at boot

Image

D. mount point, device to fsck, device to mount, mount point, FS type, fsck pass, mount at boot

46.

Which of the following commands shows you the disk usage of each file in each subdirectory of a file system?

Image

A. du

Image

B. df

Image

C. ls

Image

D. printenv

47.

Which of the following commands displays disk space occupied by mounted file systems?

Image

A. df

Image

B. du

Image

C. ls

Image

D. printenv

48.

Which of the following causes high fragmentation?

Image

A. Creating large numbers of small files

Image

B. Creating large numbers of large files

Image

C. Not enough disk space

Image

D. A file’s disk blocks being inefficiently scattered across the whole file system

49.

Output from df -k does not contain which of the following fields?

Image

A. Total size in kilobytes

Image

B. Fragmentation

Image

C. Capacity

Image

D. Kilobytes available

50.

Which of the following is the recommended way to create a file system?

Image

A. mkfs

Image

B. format

Image

C. tunefs

Image

D. newfs

51.

Which of the following commands do you use to write or display labels on unmounted disk file systems?

Image

A. format

Image

B. prtvtoc

Image

C. newfs

Image

D. labelit

52.

Which of the following commands do you issue to determine whether a file system is a UFS?

Image

A. fstyp

Image

B. prtvtoc

Image

C. format

Image

D. newfs -v

53.

Which of the following commands is used to change the minfree value of a file system?

Image

A. mkfs

Image

B. tunefs

Image

C. newfs

Image

D. format

54.

Which of the following commands do you use to view a full listing of file system parameters?

Image

A. fstyp

Image

B. mkfs

Image

C. newfs

Image

D. prtvtoc

55.

A large file is a regular file whose size is greater than or equal to which of the following?

Image

A. 1TB

Image

B. 1GB

Image

C. 5GB

Image

D. 2GB

56.

Which of the following commands is not large file–aware?

Image

A. labelit

Image

B. vi

Image

C. mkfs

Image

D. mount

57.

Which of the following types of utility is able to handle large files as input and to generate large files as output?

Image

A. Large file–compatible

Image

B. Large file–safe

Image

C. Large file–aware

Image

D. Large file–capable

58.

Which of the following options to the mount command provides total compatibility with previous file system behavior, enforcing the 2GB maximum file size limit?

Image

A. -o compat

Image

B. largefiles

Image

C. -nolargefiles

Image

D. -o nolargefiles

59.

Which of the following options do you type the mount command with to display a list of mounted file systems in /etc/vfstab format?

Image

A. -p

Image

B. -v

Image

C. -f

Image

D. -a

60.

Which of the following examples uses the mount command to map a directory to a file system as read/writeable, disallow setuid execution, and enable the creation of large files:

Image

A. mount -o rw,nosuid,large /dev/dsk/c0t0d0s0 /home2

Image

B. mount -o rw,nosuid,largefiles /dev/dsk/c0t0d0s0 /home2

Image

C. mount -o rw,nosuid,largefiles /dev/rdsk/c0t0d0s0 /home2

Image

D. mount -o rw,suid,largefiles /dev/dsk/c0t0d0s0 /home2

61.

When a file system is mounted, where are entries maintained?

Image

A. /etc/mnttab

Image

B. /etc/vfstab

Image

C. /etc/fstab

Image

D. /mnt

62.

Which of the following tasks can be performed on a mounted file system?

Image

A. labelit

Image

B. fsck

Image

C. tunefs

Image

D. newfs

63.

If something is causing the file system to be busy, which of the following commands can you use to list all the processes accessing the file system?

Image

A. fuser

Image

B. mount

Image

C. ps

Image

D. finger

64.

Which of the following commands stops all processes that are using the /home2 file system?

Image

A. fuser -c -k /home2

Image

B. fuser -k /home2

Image

C. kill -9 /home2

Image

D. umount /home2

65.

Which of the following is the mechanism that manages removable media, such as the CD-ROM and floppy disk drives?

Image

A. autofs

Image

B. NFS

Image

C. vold

Image

D. init

66.

vold does all of the following except for what?

Image

A. Gives other systems on the network automatic access to any disks and CDs the users insert into your system

Image

B. Automatically mounts disks and CDs

Image

C. Enables the user to access disks and CDs without having to be logged in as root

Image

D. Automatically mounts a file system located on another system when that file system is accessed

67.

Which of the following is the directory that provides character device access for the media in the primary floppy drive?

Image

A. /vol/dev/diskette0

Image

B. /dev/rdiskette

Image

C. /vol/dev/aliases/floppy0

Image

D. /floppy/floppy0

68.

Which of the following contains the volume management configuration information used by vold?

Image

A. /etc/init.d/volmgt

Image

B. /etc/vfstab

Image

C. /etc/vold.conf

Image

D. /etc/inittab

69.

Which of the following files can the system administrator modify to specify the program that should be called if media events happen, such as eject or insert?

Image

A. /etc/vold.conf

Image

B. /etc/rmmount.conf

Image

C. /etc/inittab

Image

D. /etc/mnttab

70.

Which of the following actions notifies the user if an attempt is made to access a CD or disk that is no longer in the drive?

Image

A. vold

Image

B. volcheck

Image

C. volmissing

Image

D. rmmount

71.

Which of the following commands is used to format a floppy disk and add a volume label?

Image

A. format -d

Image

B. labelit

Image

C. format

Image

D. fdformat

72.

Which of the following should you issue to stop the volume management daemon?

Image

A. vold stop

Image

B. /etc/init.d/volmgt stop

Image

C. ps -ef|grep vold, then kill the process ID for vold

Image

D. volcancel

73.

Which of the following commands displays capacity information on each mounted file system?

Image

A. du

Image

B. format

Image

C. prtvtoc

Image

D. df

74.

Which of the following commands is used to instruct the system to mount the floppy automatically?

Image

A. volcheck

Image

B. vold

Image

C. mount

Image

D. automount

75.

You can type mount /opt on the command line and not get an error message if which of the following conditions exits?

Image

A. /opt is listed in the /etc/rmtab.

Image

B. /opt is listed in the /etc/mnttab.

Image

C. /opt is listed in the /etc/vfstab.

Image

D. /opt is listed in the /etc/dfs/dfstab.

76.

Volume Manager provides access to the CD-ROM and floppy devices through which of the following directories?

Image

A. /vol/dev

Image

B. /dev/vol

Image

C. /dev

Image

D. /vold

77.

Which of the following is not true about volume management?

Image

A. Volume Manager is started via the /etc/init.d/volmgt script.

Image

B. Volume Manager automatically mounts CDs and floppy disks.

Image

C. Volume Manager reads the /etc/vold.conf configuration file at startup.

Image

D. Volume Manager automatically checks and performs an fsck on file systems at bootup.

78.

Which directory contains configuration files used to define a machine’s identity?

Image

A. /dev

Image

B. /usr

Image

C. /etc

Image

D. /opt

Image

E. /var

79.

Which type of link cannot span file systems?

Image

A. Symbolic link

Image

B. Hard link

Image

C. Hardware link

Image

D. Software link

80.

Which type of link can point to a file that does not exist?

Image

A. Symbolic link

Image

B. Hard link

Image

C. Hardware link

Image

D. Software link

81.

You can remove a link using which of the following commands?

Image

A. unlink

Image

B. rm

Image

C. rmdir

Image

D. rm -1

Image

E. rmlink

82.

Which task cannot be performed by the SMC Disks Tool?

Image

A. View partition information.

Image

B. Format a disk.

Image

C. Partition a disk.

Image

D. Copy one disk’s partition scheme to another disk.

Answers to Review Questions

1.

A. The instance name represents the kernel’s abbreviation name for every possible device on the system. For more information, see the “Device Drivers” section.

2.

D. Physical device files are found in the /devices directory. For more information, see the “Physical Device Name” section.

3.

D. The sysdef command displays device configuration information, including system hardware, pseudo devices, loadable modules, and selected kernel parameters. For more information, see the “Physical Device Name” section.

4.

C. When you see the driver not attached message, it means no driver is currently attached to the device instance because there is no device at this node or the device is not in use. For more information, see the “Physical Device Name” section.

5.

A. The .conf files reside in the /kernel/drv directories. For more information, see the “Device Autoconfiguration” section.

6.

B. Instance names are mapped to a physical device name in the /etc/path_to_inst file. For more information, see the “Instance Names” section.

7.

A, B. You can determine the mapping of an instance name to a physical device name by looking at the dmesg output and by viewing the /var/adm/messages file. For more information, see the “Instance Names” section.

8.

A, B. The system relies on information found in both the /etc/vfstab file and the /etc/path_to_inst file to find the root, usr, and swap device. For more information, see the “Instance Names” section.

9.

C. The devfsadm command a creates logical links to device nodes in /dev and /devices and loads the device policy. For more information, see the “Instance Names” section.

10.

D. The devfsadm command is used to inform the system about newly installed device drivers. For more information, see the “Instance Names” section.

11.

A. The devfsadmd daemon is the daemon responsible for handling both reconfiguration boot processing and updating /dev and /devices in response to dynamic reconfiguration event notifications from the kernel. For more information, see the “Instance Names” section.

12.

C. An example of when to use the devfsadm command would be if the system has been started, but the power to the CD-ROM or tape drive was not turned on. During startup, the system did not detect the device; therefore, its drivers were not installed. The devfsadm command will perform these tasks. For more information, see the “Instance Names” section.

13.

B. The major device number indicates the general device driver for devices such as disk, tape, or serial line. For more information, see the “Major and Minor Device Numbers” section.

14.

B. The minor device number indicates the specific member within a driver. For more information, see the “Major and Minor Device Numbers” section.

15.

D. The logical device name is a link from the /dev directory to the physical device name located in the /devices directory. For more information, see the “Logical Device Name” section.

16.

C. The logical device name is a link from the /dev directory to the physical device name located in the /devices directory. For more information, see the “Logical Device Name” section.

17.

A. The logical device name is a link from the /dev directory to the physical device name located in the /devices directory. The following is an example of a logical device name: /dev/dsk/c0t0d0s7. For more information, see the “Logical Device Name” section.

18.

A. The devfsadm command can be used to create entries in the /dev directory for disk drives attached to the system. For more information, see the “Instance Names” section.

19.

D. The /dev/dsk directory contains the disk entries for the block device nodes in /devices. For more information, see the “Block and Raw Devices” section.

20.

A. A physical device name represents the full device pathname of the device. Physical device files are found in the /devices directory and have the following naming convention:

/devices/sbus@1,f8000000/esp@0,40000/sd@3,0:a

For more information, see the “Physical Device Name” section.

21.

B. The fields of the logical device name cXtYdZ are as follows:

Image   cX—Refers to the SCSI controller number

Image   tY—Refers to the SCSI bus target number

Image   dZ—Refers to the disk number (always 0, except on storage arrays)

For more information, see the “Logical Device Name” section.

22.

B. In the character device name /dev/rdsk/c0t3d0s0, the /rdsk directory refers to the character or raw device file. The r in rdsk stands for raw. For more information, see the “Block and Raw Devices” section.

23.

A. The instance name represents the kernel’s abbreviated name for every possible device on the system. For example, sd0 and sd1 represent the instance names of two SCSI disk devices. For more information, see the “Instance Names” section.

24.

A. Logical device names are used with most Solaris file system commands to refer to devices. Logical device files in the /dev directory are symbolically linked to physical device files in the /devices directory. For more information, see the “Logical Device Name” section.

25.

A. Logical device files in the /dev directory are symbolically linked to physical device files in the /devices directory. For more information, see the “Logical Device Name” section.

26.

D. On a standard Solaris file system, a file system cannot span multiple disks or slices. It’s only possible when using virtual file systems (that is, Solaris Volume Manager). For more information, see the “Disk Slices” section.

27.

A. Disk configuration information is stored on the disk label. For more information, see the “Displaying Disk Configuration Information” section.

28.

A. The boot block stores the procedures used in booting the system. Without a boot block, the system does not boot. For more information, see the “Components of the UFS” section.

29.

A. The slice information for a particular disk can be viewed by using the prtvtoc command. For more information, see the “Disk Slices” section.

30.

A. The following are virtual file systems: swapfs, procfs, lofs, cachefs, tmpfs, and mntfs. For more information, see the “Virtual File Systems” section.

31.

D. The format utility is used to retrieve corrupted disk labels, repair defective sectors, format and analyze disks, partition disks, and label disks. For more information, see the “Using the format Utility to Create Slices” section.

32.

D. Here are a few of the more important things contained in a superblock:

Image   Size and status of the file system

Image   Label (file system name and volume name)

Image   Size of the file system’s logical block

Image   Date and time of the last update

Image   Cylinder group size

Image   Number of data blocks in a cylinder group

Image   Summary data block

Image   File system state (clean, stable, or active)

Image   Pathname of the last mount point

For more information, see the “The Superblock” section.

33.

A, C. An inode contains all of the information about a file except its name, which is kept in a directory. The inode information is kept in the cylinder information block and contains the following:

Image   The type of the file (regular, directory, block special, character special, link, and so on)

Image   The mode of the file (the set of read/write/execute permissions)

Image   The number of hard links to the file

Image   The user id of the file’s owner

Image   The group id to which the file belongs

Image   The number of bytes in the file

Image   An array of 15 disk-block addresses

Image   The date and time the file was last accessed

Image   The date and time the file was last modified

Image   The date and time the file was created

For more information, see the “The inode” section.

34.

D. As a general rule, a larger logical block size increases efficiency for file systems in which most of the files are large. Use a smaller logical block size for file systems in which most of the files are small. For more information, see the “Logical Block Size” section.

35.

A. The number of inodes depends on the amount of disk space that is allocated for each inode and the total size of the file system. For more information, see the “The inode” section.

36.

A. The file system fragment size is the smallest allocable unit of disk space, which by default is 1024 bytes. For more information, see the “Information on File Systems” section.

37.

A. Swap space plus the total amount of physical memory is also referred to as virtual memory. For more information, see the “Virtual File Systems” section.

38.

A, B, C. fsck should be run after a power outage, when a file system is unmounted improperly, or whenever a file system cannot be mounted. For more information, see the “Repairing File Systems” section.

39.

B. Normally, fsck is run noninteractively at bootup to preen the file systems after an abrupt system halt. Preening automatically fixes any basic file system inconsistencies and does not try to repair more serious errors. While preening a file system, fsck fixes the inconsistencies it expects from such an abrupt halt. For more serious conditions, the command reports the error and terminates. For more information, see the “Repairing File Systems” section.

40.

C. The /etc/vfstab file contains a list of file systems to be automatically mounted when the system is booted to the multiuser state. For more information, see the “Creating an Entry in the /etc/vfstab File to Mount File Systems” section.

41.

B. The mountall command mounts all file systems specified in the file system table (vfstab). For more information, see the “Mounting File Systems” section.

42.

E. The following commands can be used to display disk space usage: du, df, quota, repquota. For more information, see the “Displaying a File System’s Disk Space Usage” section.

43.

A. The largefiles mount option lets users mount a file system containing files larger than 2GB. For more information, see the “Mounting File Systems” section.

44.

A. Use the -o nologging option of the mount command to disable UFS logging on a file system. Logging is the default. For more information, see the “Mounting File Systems” section.

45.

A. The correct format for the /etc/vfstab file is as follows:

device to mount, device to fsck, mount point, FS type, fsck pass, mount at boot, mount options.

For more information, see the “Creating an Entry in the /etc/vfstab File to Mount File Systems” section.

46.

A. Use the du (directory usage) command to report the number of free disk blocks and files. For more information, see the “Displaying a File System’s Disk Space Usage” section.

47.

A. The df command with no options lists all mounted file systems and their device names. It also lists the total number of 512-byte blocks used and the number of files. For more information, see the “Displaying a File System’s Disk Space Usage” section.

48.

A. Typically, creating large numbers of small files causes high fragmentation. The solution is to either create a larger file system or to decrease the block size (finer granularity). For more information, see the “Displaying a File System’s Disk Space Usage” section.

49.

B. The df -k command does not display the percentage of fragmentation. For more information, see the “Displaying a File System’s Disk Space Usage” section.

50.

D. newfs is the friendly front end to the mkfs command. The newfs command automatically determines all the necessary parameters to pass to mkfs to construct new file systems. newfs was added in Solaris to make the creation of new file systems easier. It’s highly recommended that the newfs command be used to create file systems. For more information, see the “Creating a UFS” section.

51.

D. After you create the file system with newfs, you can use the labelit utility to write or display labels on unmounted disk file systems. For more information, see the “Creating a UFS” section.

52.

A. Use the fstyp command to determine a file system type. For example, use it to check whether a file system is a UFS. For more information, see the “The fstyp Command” section.

53.

B. Use the tunefs command to change the minfree value of a file system. For more information, see the “Tuning File Systems” section.

54.

A. Use the fstyp command to view file system parameters. Use the -v option to obtain a full listing of a file system’s parameters. For more information, see the “The fstyp Command” section.

55.

D. A large file is a regular file whose size is greater than or equal to 2GB. For more information, see the “Mounting a File System with Large Files” section.

56.

B. A utility is called large file–aware if it can process large files in the same manner that it does small files. A large file—aware utility can handle large files as input and can generate large files as output. The vi command is not large file–aware. For more information, see the “Mounting a File System with Large Files” section.

57.

C. As stated in the previous question and answer, a utility is called large file–aware if it can process large files in the same manner that it does small files. A large file–aware utility can handle large files as input and can generate large files as output. For more information, see the “Mounting a File System with Large Files” section.

58.

D. The -o nolargefiles option of the mount command provides total compatibility with previous file system behavior, enforcing the 2GB maximum file size limit. For more information, see the “Mounting a File System with Large Files” section.

59.

A. Type the mount command with the -p option to display a list of mounted file systems in /etc/vfstab format. For more information, see the “Creating an Entry in the /etc/vfstab File to Mount File Systems” section.

60.

B. The following command uses the mount command to map a directory to a file system as read/writeable, disallow setuid execution, and enable the creation of large files (more than 2GB in size):

mount -o rw,nosuid,largefiles /dev/dsk/c0t0d0s0

/home2

For more information, see the “Mounting a File System with Large Files” section.

61.

A. When a file system is mounted, an entry is maintained in the mounted file system table called /etc/mnttab. This file is actually a read-only file system and contains information about devices that are currently mounted. For more information, see the “Mounting File Systems” section.

62.

C. D. Do not use the following commands on a mounted file system: fsck, and labelit. newfs cannot be run on a mounted file system—it generates an error. For more information, see the “Unmounting a File System” section.

63.

A. If something is causing the file system to be busy, you can use the fuser command to list all of the processes accessing the file system and to stop them if necessary. For more information, see the “The fuser Command” section.

64.

A. The following command stops all processes that are using the /home2 file system by sending a SIGKILL to each one: fuser -c -k /home2. For more information, see the “The fuser Command” section.

65.

C. The vold daemon is the mechanism that manages removable media, such as the CD-ROM and floppy disk drives. For more information, see the “Volume Management” section.

66.

D. vold does not automatically mount a file system located on another system when that file system is accessed. The facility responsible for that task is AutoFS. For more information, see the “Volume Management” section.

67.

B. /dev/rdiskette and /vol/dev/rdiskette0 are the directories providing character device access for the medium in the primary floppy drive, usually drive 0. For more information, see the “Volume Management” section.

68.

C. vold reads the /etc/vold.conf configuration file at startup. The vold.conf file contains the Volume Manager configuration information used by vold. For more information, see the “Volume Management” section.

69.

A. The “Actions” section of the vold.conf file specifies which program should be called if a particular event (action) occurs such as eject or insert. For more information, see the “Volume Management” section.

70.

C. The volmissing action in the vold.conf file notifies the user if an attempt is made to access a CD or diskette that is no longer in the drive. For more information, see the “Volume Management” section.

71.

D. Use the fdformat command to format a floppy disk, and then add a volume label. For more information, see the “Troubleshooting Volume Manager” section.

72.

B. Run the following run control script to stop the volume management daemon: /etc/init.d/volmgt stop. For more information, see the “Troubleshooting Volume Manager” section.

73.

D. The df command gives you capacity information on each mounted file system. For more information, see the “Displaying a File System’s Disk Space Usage” section.

74.

A. The volcheck command instructs vold to look at each device and determine if new media has been inserted into the drive. The system administrator issues this command to check the drive for installed media. By default, it checks the drive to which /dev/diskette points. For more information, see the “Volume Management” section.

75.

C. You can type mount /opt on the command line and not get an error message if /opt is listed in the /etc/vfstab file. For more information, see the “Creating an Entry in the /etc/vfstab File to Mount File Systems” section.

76.

A. Volume Manager provides access to the floppy disk and CD-ROM devices through the /vol/dev directory. For more information, see the “Volume Management” section.

77.

D. Volume management does not automatically fsck file systems at bootup. It does, however, automatically mount CD-ROM and file systems when removable media containing recognizable file systems are inserted into the devices. For more information, see the “Volume Management” section.

78.

C. The /etc directory contains configuration files that define a system’s identity. For more information, see the “The Root (/) File System” section.

79.

B. A hard link cannot span file systems, but a symbolic link can. For more information, see the “Hard Links” section.

80.

A. An advantage of a symbolic link over a hard link is that you can create a symbolic link to a file that does not yet exist. For more information, see the “Soft (Symbolic) Links” section.

81.

B. Remove a link using the rm command. For more information, see the “Soft (Symbolic) Links” section.

82.

B. The SMC Disks Tool cannot be used to format a disk. For more information, see the “Using the Solaris Management Console Disks Tool” section.

Suggested Readings and Resources

Image   Calkins, Bill. Inside Solaris 9. New Riders Publishing, 2002.

Image   Solaris 10 System Administration Guide: Devices and File Systems, 2005, Sun Microsystems, Part number 817-5093-11. This manual is available online at docs.sun.com.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset