Find the answer to your Linux question:
Results 1 to 5 of 5
Hi All, on RHEL how to list all disk drives ? fdisk -l /cat /proc/partitions or is there any command ? when to use pvscan ?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    2

    how to list all disk drives ?


    Hi All,
    on RHEL how to list all disk drives ?
    fdisk -l /cat /proc/partitions

    or is there any command ?

    when to use pvscan ?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !


    fdisk -l will give you all necessary info.

    pvscan is for listing disk volume of LVM.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    In your first post, you listed two of them i.e.
    Code:
    cat /proc/partitions
    and
    Code:
    fdisk -l
    "fdisk -l" shows a lot more detail than "cat /proc/partitions". A personal favourite of mine is
    Code:
    parted -l
    Unfortunately the "-l" flag is only available in newer versions of parted, so if you are using parted 1.6 and below you may not have this option.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Dec 2008
    Posts
    2

    Thumbs up

    Thanks for replys.

  6. #5
    Just Joined!
    Join Date
    Nov 2004
    Posts
    2

    This thread is old but still..

    When you use lvm, fdisk will display a lot of garbage if you type "fdisk -l" but you can use it as following, in order to show you only what you really need:

    Code:
    fdisk -l /dev/[sh]d?
    This apply if you have sdX/hdX disks. You can adapt it according to your driver specifications in case you are using some hardware raid.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •