Self Test


The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully because there might be more than one correct answer. Choose all correct answers for each question.

1. 

The /etc/path_to_inst file maps the instance device names to which of the following? (Choose all that apply.)

  1. Physical devices

  2. Logical device names

  3. Physical device names

  4. Pseudo device names

image from book

2. 

Which of the following would refer to the slice number 0 of a disk with a direct IDE controller on an x86-based system with logical controller number 0 and drive number 0?

  1. /dev/rdsk/c0d0s3

  2. /dev/rdsk/c0t0d0s3

  3. /dev/rdsk/s3d0c0

  4. /dev/rdsk/s3t0d0c0

image from book

3. 

Which of the following would refer to the slice number 0 of a disk with a direct IDE controller on a SPARC-based system with logical controller number 0 and drive number 0?

  1. /dev/rdsk/c0d0s3

  2. /dev/rdsk/c0t0d0s3

  3. /dev/rdsk/s3d0c0

  4. /dev/rdsk/s3t0d0c0

image from book

4. 

Which of the following contains the procedures that are used to boot the system?]

  1. Inode

  2. Disk label

  3. Boot block

  4. Superblock

image from book

5. 

Which of the following actions would you take so that your Solaris 10 system will recognize the newly added device?

  1. Reboot the system.

  2. Execute the prtconf command.

  3. Edit the /etc/path_to_inst file.

  4. Execute the devfsadm command.

image from book

6. 

If you want to see which file systems are currently mounted, which of the following files would you look into?

  1. /etc/path_to_inst

  2. /etc/mnttab

  3. /etc/mounttab

  4. /etc/vfstab

  5. /var/adm/syslog

image from book

7. 

Which of the following mounted file systems will be unmounted as a result of executing the mountall command when the system is up and running? (Choose all that apply.)

  1. /home

  2. /usr

  3. /var

  4. /misc

  5. /

image from book

8. 

You mounted a floppy to your Solaris system by issuing the following command:

    mount -F pcfs /dev/diskette /floppy 

Which of the following commands will unmount the floppy? (Choose all that apply.)

  1. umount /floppy

  2. unmount /floppy

  3. umount /dev/diskette

  4. umount pcfs

image from book

9. 

Which of the following are valid Solaris 10 commands?

  1. mount /dev/rdsk/c0t0d0s0 /proj

  2. mount /dev/dsk/c0t0d0s0 /proj

  3. fsck /dev/dsk/c0t0d0s0

  4. fsck /dev/rdsk/c0t0d0s0

image from book

10. 

Which of the following commands allow you to see the mapping between the instance device names and physical device names?

  1. dmesg | more

  2. less /etc/path_to_inst

  3. prtconf

  4. sysdef

image from book

11. 

You were having difficulties accessing a CD-ROM, so you decided to manually mount the CD-ROM. Assume the file system on the CD-ROM is hsfs and it resides on slice 1 of the CD-ROM. Further assume that the CD-ROM is attached as the slave device to the primary IDE channel. After stopping the volume management (vold), which of the following commands would you issue to mount the CD-ROM?

  1. mount -F hsfs -o ro /cdrom

  2. mount -F hsfs /dev/dsk/c0t1d0s0 /cdrom

  3. mount -F hsfs /dev/dsk/c0t1d0s0

  4. mount -o ro /dev/dsk/c0t1d0s0 /cdrom

image from book

Answers

1. 

þ C. The mapping between the instance names and the physical device name is contained in the /etc/path_to_inst file.

ý A is incorrect because it is the physical device names and not the physical devices that are mapped. B and D are incorrect because instance names are not mapped to logical device names, and there is no such name for a disk as pseudo device name.

2. 

þ A. The bus target number is not used to name the disks with direct controllers on x86-based systems.

ý B is incorrect because it uses the bus target number in the logical name for disk with direct controller on an x86-based system. C and D are incorrect for the same reason; furthermore, the order of different elements of the name is not correct.

3. 

þ B. The bus target number is used to name the disks with direct controllers on x86-based systems.

ý A is incorrect because the bus target number is missing. C and D are incorrect because the order of different elements of the name is not correct.

4. 

þ C. The procedures to boot the system are stored in the superblock.

ý A is incorrect because an inode contains information about a file, not about booting. B is incorrect because the disk label contains the information about the disk geometry and partitions not about booting. D is incorrect because a superblock contains information about a file system, not about booting.

5. 

þ D. The devfsadm command with the -i <driverName> option will load the driver for the device and configure it without rebooting the system.

ý A is incorrect because Solaris 10 offers the devfsadm command that you can use to recognize the newly added device without rebooting the system. B is incorrect because the prtconf command is used to display the system configuration. C is incorrect because it is recommended that you do not edit the /etc/path_to_inst file unless you have to.

6. 

þ B. When a file system is mounted, its entry is automatically made by the system into the mnttab file, which is a read-only file.

ý A is incorrect because the /etc/path_to_inst file contains the mapping between the instant device names and the physical device names. C is incorrect because the correct file is spelled mnttab, not mounttab. D is incorrect because the /etc/vfstab file only specifies which file systems should be mounted at bootup time. E is incorrect because the /var/adm/syslog file is used to keep the log of the system messages.

7. 

þ A and D. The umountall command unmounts all the mounted file systems except root (/), /dev/fd, /proc, /usr, /var, var/adm, and /var/run.

ý B, C, and E are incorrect because the umountall command does not unmount these file systems: root (/), /dev/fd, /proc, /usr, /var, var/adm, and /var/run.

8. 

þ A and C. A file system can be unmounted with the umount command by specifying either the device name or the mount point.

ý B is incorrect because the command is umount, not unmount. D is incorrect because you cannot unmount a file system by specifying just the file type.

9. 

þ B and D. The command mount uses the block device, and the command fsck uses the raw device.

ý A is incorrect because the command mount uses the block device. C is incorrect because the command fsck uses the raw device and the raw device name in the answer is not specified.

10. 

þ A and B. The dmesg command displays the mapping between the instance device names and the physical device names, and the /etc/path_to_inst file also contains this mapping.

ý C and D are incorrect because the prtconf and sysdef commands display the instance device names but not their mapping to the physical device names.

11. 

þ B. The -f and -o options are required. The logical device name for the slave device on the primary IDE channel is c0t1d0, which makes the block device file including slice 1 as /dev/dsk/c0t1d0s1. The mount point used for the CD-ROM is the directory /cdrom.

ý A is incorrect because the device name is not given. C and D are incorrect because both the -F and -o options are required. In addition, C does not specify the mount point.




Sun Certified System Administrator for Solaris 10 Study Guide Exams 310-XXX & 310-XXX
Sun Certified System Administrator for Solaris 10 Study Guide Exams 310-XXX & 310-XXX
ISBN: N/A
EAN: N/A
Year: 2005
Pages: 168

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net