In this chapter, we’ve examined how to use various commands to determine the status of devices (particularly disk devices) that are attached to the system. In addition, we looked at how to match up Solaris logical device names to physical device references, which can be difficult for newcomers.
1. |
Which of the following is a valid device name for an IDE hard drive?
|
|
2. |
Which of the following is a valid “available device” selection for the format command?
|
|
3. |
The /etc/path_to_inst file contains what?
|
|
4. |
What error message might be displayed if a hardware device was not installed, but the kernel loaded its device driver?
|
|
5. |
What does prtconf not display?
|
|
6. |
What command would be used to create a loopback file system on /dev/rlofi/2?
|
|
7. |
What command would be used to create a MS-DOS file system on a floppy disk?
|
|
8. |
What command would be used to create a new file /tmp/newfile with a 2G capacity?
|
|
9. |
What command creates a new FAT file system?
|
|
10. |
Which of the following statements is true?
|
|
Answers
1. |
A. Only /pci@1f,0/pci@1,1/ide@3/dad@0,0 is a valid IDE drive name. |
2. |
A. Available device descriptions contain the disk name and label (c1t3d0 <<SUN2.1G cyl 2733 alt 2 hd 19 sec 80). |
3. |
D. The path_to_inst file contains a list of mappings between physical devices and instance names. |
4. |
C. Only “hostname smt: [ID 272566 kern.notice] device is not active. Initialization of this driver cannot be completed.” is valid. |
5. |
D. prtconf does not query virtual memory. |
6. |
A. newfs is always used to create file systems in this context. |
7. |
B. pcfs is the file system type and /dev/rdiskette is the floppy device. |
8. |
B. The mkfile command is used to make files of a specified capacity. |
9. |
C. The mkfs_pcfs command is valid in this context. |
10. |
D. The tunefs command must optimize for either speed or time. |