What does the Linux command 'fdisk /dev/hda' do?

Prepare for the Computer Hacking Forensic Investigator v11 exam. Study with flashcards and multiple choice questions. Each question includes hints and explanations. Get exam-ready efficiently!

Multiple Choice

What does the Linux command 'fdisk /dev/hda' do?

Explanation:
fdisk is a partition table editor for a hard disk. When you run it on a device like /dev/hda, you’re working with the disk’s partition layout—the divisions that define where one partition ends and the next begins. Using fdisk lets you create, delete, or resize partitions, and set basic attributes like the bootable flag. It doesn’t format the drive or create filesystems by itself; that comes after you’ve defined partitions, using a separate tool (for example, mkfs) to format each partition. It also doesn’t delete files or fill the disk with zeros—/dev/hda is a device file representing the hardware, not a directory with files to wipe. So the action performed is partitioning the hard drive.

fdisk is a partition table editor for a hard disk. When you run it on a device like /dev/hda, you’re working with the disk’s partition layout—the divisions that define where one partition ends and the next begins. Using fdisk lets you create, delete, or resize partitions, and set basic attributes like the bootable flag. It doesn’t format the drive or create filesystems by itself; that comes after you’ve defined partitions, using a separate tool (for example, mkfs) to format each partition. It also doesn’t delete files or fill the disk with zeros—/dev/hda is a device file representing the hardware, not a directory with files to wipe. So the action performed is partitioning the hard drive.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy