Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Chandigarh, India
    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
    West Yorks
    In your first post, you listed two of them i.e.
    cat /proc/partitions
    fdisk -l
    "fdisk -l" shows a lot more detail than "cat /proc/partitions". A personal favourite of mine is
    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
  5. #4

    Thumbs up

    Thanks for replys.

  6. #5

    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:

    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