Chapter 1 Flashcards
Use the output from the following command to answer the next question.
[root@station root]$ cat /proc/partitions
major minor #blocks name
ng use aveq
8 0 8891650 sda 8 1 136521 sda1 8 2 3502170 sda2 8 3 2096482 sda3 8 4 1 sda4 8 5 2096451 sda5
-
Which of the following best explains why the partition sda4 is listed in /proc/partitions with only a size of 1?
The partition is being used as the extended partition, and therefore is not accessed directly.
Which of the following partitions could be an extended partition?
/dev/sdb4
Which of the following would be a logical partition?
/dev/sda5
Which of the following commands would list all known partitions?
fdisk -cul
Which of the following commands could be used to add the partition /dev/sda8?
None of the above
Use the following transcript to answer the next 3 questions.
[root@station root]$ fdisk -cul /dev/sdb
Disk /dev/sdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2f2333e8
Device Boot Start End Blocks Id System
/dev/sdb1 2048 206847 102400 83 Linux
/dev/sdb2 206848 16984063 8388608 83 Linux
/dev/sdb3 16984064 18032639 524288 82 Linux swap / Solaris
/dev/sdb4 18032640 20129791 1048576 83 Linux
-
Assuming that the system Id’s indicate the true use of the partitions, approximately how much partition space is allocated to swap space?
520 megabytes
Approximately how much space is left unallocated on the drive /dev/sdb?
420 megabytes
The administrator wants to use the space is left unallocated on the drive /dev/sdb. What options are avaialble?
The remaining space is not available for use
After editing the partition table with fdisk, what action must (usually) be taken for the kernel to recognize the new partitions?
The machine must be rebooted OR The partprobe command should be run
A or C
Which of the following fdisk commands is used to abandon all changes?
q