12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

156CHAPTER 6Analyzing HardwareLISTING 6.5Continued** UNAVAILABLE **Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress 0x81 EP 1 INbmAttributes 3Transfer TypeInterruptSynch TypeNoneUsage TypeDatawMaxPacketSize 0x0008 1x 8 bytesbInterval 10Listing Storage DevicesTo list the drives connected to the system, use the fdisk -l command as root. Each diskis listed along with its capacity and partitions. In Listing 6.6, there is one disk, /dev/sda,with eight partitions. The top line shows the capacity of the disk: 120 GB.LISTING 6.6List of Connected Disks from fdiskDisk /dev/sda: 120.0 GB, 120034123776 bytes255 heads, 63 sectors/track, 14593 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System/dev/sda1 * 1 13 104391 83 <strong>Linux</strong>/dev/sda2 14 1925 15358140 83 <strong>Linux</strong>/dev/sda3 1926 2179 2040255 82 <strong>Linux</strong> swap/dev/sda4 2180 14593 99715455 83 <strong>Linux</strong>/dev/sda5 2180 2192 104391 83 <strong>Linux</strong>/dev/sda6 2193 2702 4096543+ 83 <strong>Linux</strong>/dev/sda7 2703 2715 104391 83 <strong>Linux</strong>/dev/sda8 2716 3097 3068383+ 83 <strong>Linux</strong>A list of partitions for a device can also be listed using the parted utility. Executing theparted command as the root user gives you a parted prompt on which toissue commands for the specified device. For example, to specify the first device on theSCSI bus, use the parted /dev/sda command. While in parted, use the print commandto list the disk geometry and partitions on the device. Listing 6.7 shows output fromparted for a 300 GB disk partitioned to use LVM.LISTING 6.7List of Partitions from partedGNU Parted 1.7.1Using /dev/sda

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!