-   Linux - Newbie (
-   -   List of all available partitions? (

proNick 04-26-2012 03:02 PM

List of all available partitions?

How can I get a list of all available disks and partitions?

Is it possible to get using some command, or I have to check in /dev directory?

tnx in adv!

TobiSGD 04-26-2012 03:20 PM

Launch as root

fdisk -l
That is a lower case L, not the number 1.

lleb 04-26-2012 04:31 PM


df -h
will show you all mounted partitions, their mount point, and storage (used/free)


$ df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                98G  18G  80G  18% /
udev                  1.8G    0  1.8G  0% /dev
tmpfs                1.8G  2.0M  1.8G  1% /dev/shm
tmpfs                1.8G  692K  1.8G  1% /run
/dev/sda2              98G  18G  80G  18% /
tmpfs                1.8G  12K  1.8G  1% /sys/fs/cgroup
/dev/sdb2            155G  131G  17G  89% /home
/dev/sda3            135G  40G  88G  32% /stuff
/dev/sda2              98G  18G  80G  18% /tmp
/dev/sda2              98G  18G  80G  18% /var/tmp
/dev/sdb2            155G  131G  17G  89% /home
/dev/sda1            497M  89M  384M  19% /boot

just like that.

David the H. 04-27-2012 06:54 AM

For a quick'n'dirty listing of available devices, I like to use "cat /proc/partitions".

All times are GMT -5. The time now is 01:40 AM.