Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • This is from Temi Oracle
  • Parallel DML Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • JSON/XML Types in Oracle Oracle
  • create user with unlimited quota Oracle
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • AWR settings- MMON is not taking snapshot. Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • 10g oem configuration Oracle
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • Handling LOB data in Oracle Oracle
  • sql_plan9i.sql Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • Set Role explaination. Oracle
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle

fdisk -l explaination about Primary-Logical-Extended Partitions

Posted on 06-Apr-2008 By Admin No Comments on fdisk -l explaination about Primary-Logical-Extended Partitions

# fdisk -l

Disk /dev/hda: 240 heads, 63 sectors, 1940 cylinders

Units = cylinders of 15120 * 512 bytes

Device Boot Start End Blocks Id System

/dev/hda 1 286 2162128+ c Win95 FAT32 (LBA)

/dev/hda2 * 288 1940 12496680 5 Extended

/dev/hda5 288 289 15088+ 83 Linux

/dev/hda6 290 844 4195768+ 83 Linux

/dev/hda7 845 983 1050808+ 82 Linux swap

/dev/hda8 984 1816 6297448+ 83 Linux

/dev/hda9 1817 1940 937408+ 83 Linux

The nomenclature /dev/hda to /dev/hdd in the partition table refers to IDE drives 1 through 5, with hda referring to drive 1, hdb referring to drive 2, and so on. Partitions within a drive are referred to by number, so that /dev/hda5 would be the fifth partition on the first IDE drive. For SCSI drives, a similar naming scheme is used: /dev/sda to /dev/sdd.

Partitions No. 1 through 4 are reserved for primary partitions, and 5 and up are used for logical partitions. So, for the partition tables shown above, there is one drive, hda, with one primary partition, hda1, and one extended partition, hda2, with five logical partitions, /dev/hda5 through /dev/hda9. The filesystem listed as shmfs represents the shared memory filesystem mounted as a special filesystem according to POSIX standards in Linux 2.4.

You may have noticed the LBA in parentheses in the fdisk listing. LBA stands for logical block addressing, which converts the cylinder, block, and sector schema of a hard disk into linear block numbers for processing.

In Linux, partitions are either primary, extended, or logical partitions. The term primary partition is a holdover from the limitation of four partitions on old x86 systems. Unlike DOS and Windows, Linux can boot from a primary or a logical partition. Primary partitions that serve as placeholders for logical partitions are referred to as extended partitions. An extended partition has its own partition table that points to one or more logical partitions, which are simply subdivisions of a primary partition. In the fdisk listing above, hda2 is an extended partition.

Linux/Unix, shell

Post navigation

Previous Post: Drop database in Oracle 10g
Next Post: ORA-8031 issue and solution if it is occuring due to truncate.

Related Posts

  • Find total file sizes Linux/Unix
  • To see mem usage and CPU usage system wide. Linux/Unix
  • grep multuple patterns Linux/Unix
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Sending email with file attachment. Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • V$CONTROLFILE_RECORD_SECTION reference notes. Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • How to calculate PROCESSES parameter Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • V$transaction notes for finding XID composition. Oracle
  • Single character replacement in Unix Linux/Unix
  • Process Map for CPU and Memory for OS processes Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme