List partitions in command line

Discussion in 'macOS' started by Tex-Twil, Sep 17, 2009.

  1. Tex-Twil macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #1
    Hello,
    I'm looking for the command that I can use to list all (even not mounted) partitions in OSX. The Linux command is
    Code:
    $ fdisk -l
    
    Thanks,
    Tex
     
  2. Angelo95210 macrumors 6502a

    Angelo95210

    Joined:
    Jan 7, 2009
    Location:
    Paris, France
  3. flatfoot macrumors 65816

    Joined:
    Aug 11, 2009
    #3
    diskutil is the command line program you need to use for this.
    Try "diskutil list".
     
  4. Tex-Twil thread starter macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #4
    ok thanks. that looks ok.

    "df" shows only mounted partitions.
     

Share This Page