LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-26-2012, 03:02 PM   #1
proNick
Member
 
Registered: Apr 2005
Posts: 104

Rep: Reputation: 15
List of all available partitions?


Hello,

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!
 
Old 04-26-2012, 03:20 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
Launch as root
Code:
fdisk -l
That is a lower case L, not the number 1.
 
Old 04-26-2012, 04:31 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,555

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

Code:
$ 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.
 
Old 04-27-2012, 06:54 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

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


Reply

Tags
partitions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
List primary partitions wmasry Red Hat 3 12-13-2009 07:56 AM
Partitions List mah454 Linux - Software 9 10-30-2009 04:16 AM
Fdisk -l dosen't list partitions zael Linux - General 2 01-18-2006 07:39 AM
C : get drive/partitions list cantabile Programming 3 06-13-2005 09:57 AM
Ubuntu partitioner doesnt list all partitions ziphnor Ubuntu 1 04-14-2005 11:07 AM


All times are GMT -5. The time now is 05:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration