Previous Page | Next Page

  1. Linux Manual
  2. Installation & Internet
  3. About the Author
  4. Content
  5. Installation
  6. Choosing a Linux Distribution
  7. Partition types
  8. Fdisk
  9. Understanding Mount Point /mnt
  10. Linux File Structure
  11. Creating a boot disk
  12. Welcome to Linux Installation
  13. Installation mode
  14. Partitioning
  15. Creating partitions with Druid
  16. Creating partitions manually
  17. Formatting Partitions
  18. Individual packages selection
  19. The root account
  20. Network configuration
  21. The time zone
  22. Configuring Services
  23. Configuring X
  24. Installing Mandrake 9.1 & 9.2
  25. Installation Class
  26. The Drake X Partitioning
  27. Package Selection
  28. Configuring X
  29. The Internet
  30. Creating a new user
  31. Getting online
  32. Configuring the connection (Dial UP)
  33. High Speed Internet
  34. DSL Modems and Cable modems
  35. Connecting DSL as DHCP
  36. Setting up a Plain Cable Modem (DOCSIS)
  37. Connecting an ISDN
  38. Using Routers
  39. Login Protocols
  40. PPPoE
  41. WAN IP Address
  42. Commercial Configuration
  43. Troubleshooting

Fdisk

SYNOPSIS
fdisk [-u] [ device ] fdisk -l [-u] [ device ... ] fdisk -s partition ... fdisk -v

DESCRIPTION
Hard disks can be divided into one or more logical disks called partitions. Linux needs at least one partition for its root file system (/root) but for efficiency we will learn which partitions are required to have it properly configured. Invoking Fdisk displays a menu driven program for creation and manipulation of partition tables. It handles DOS, BSD and SUN type disk-labels (also known as disk slices). In the UNIX world, device = (hard drive) uses the following convention for labeling the drive:

Examples:
IDE hard drives: /dev/hda, /dev/hdb, /dev/hdc

/ = root /dev = device/hda = hard drive A

For SCSI hard drives (/sda means SCSI drive A)
For ESDI hard drives ( /eda mans ESDI drive A)

Note a device name, is followed by a partition number when created. For example, /dev/hda1 is the first partition on the first IDE drive in the system. IDE disks can have up to 63 partitions, SCSI disks up to 15.

I want to make emphasis that when you work with Linux, The partitions can be done differently. Fdisk is not the only way to create partitions for Linux; as a matter of fact there are better options. After all you might end in a lot of trouble using fdisk. Instead of fdisk I will show you the best way how to partition a Linux box using a utility that comes with Linux called Disk Druid.