LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-09-2012, 01:34 AM   #1
vicky007aggrwal
Member
 
Registered: Aug 2012
Posts: 95

Rep: Reputation: Disabled
Number of partitons


PLease suggest how to find number of partitions existing on a linux machine.
 
Old 08-09-2012, 01:36 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

as root:
Code:
fdisk -l
check the fdisk man page for details.

Evo2.
 
Old 08-09-2012, 01:37 AM   #3
AnG3L
LQ Newbie
 
Registered: Aug 2012
Posts: 3

Rep: Reputation: Disabled
Wink

run the following command to find the partitions in your Linux system:

sudo fdisk -l

if(fdisk is not installed, first install it with following command)

sudo apt-get install fdisk

then run the above first command again.
Hope it will help
 
Old 08-09-2012, 01:46 AM   #4
vicky007aggrwal
Member
 
Registered: Aug 2012
Posts: 95

Original Poster
Rep: Reputation: Disabled
Thanks for responding.. But is there any other way as i m not root & not allowed to run fdisk ???
 
Old 08-09-2012, 01:49 AM   #5
AnG3L
LQ Newbie
 
Registered: Aug 2012
Posts: 3

Rep: Reputation: Disabled
use this: sudo fdisk -l

---------- Post added 08-09-12 at 10:50 AM ----------

you can also use:

gparted

for this purpose as well.
 
Old 08-09-2012, 01:58 AM   #6
vicky007aggrwal
Member
 
Registered: Aug 2012
Posts: 95

Original Poster
Rep: Reputation: Disabled
Can we use /proc/partition info also as an alternative to fdisk?
 
Old 08-09-2012, 03:00 AM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,371
Blog Entries: 6

Rep: Reputation: Disabled
G-parted indeed. I used it last week and it is an efficient application.
Helpful in looking at all partitions on your computer.
 
Old 08-09-2012, 06:55 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
http://www.centos.org/docs/5/html/5....oc-mounts.html
 
Old 08-09-2012, 07:41 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You can use
Code:
cat /proc/partitions

#Or if the admin will give you access 
# to just this cmd
sudo fdisk -l
 
  


Reply


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
Identify and explain the major number, minor number, and revision number in Linux... turbomen Linux - Newbie 1 11-16-2010 03:48 AM
Merging two partitons ????? elsheepo Linux - Hardware 3 03-08-2008 11:49 AM
custom partitons imyself Linux - Software 1 08-01-2006 11:25 PM
Partitons (again) mykrob Linux - Newbie 8 08-02-2004 04:51 PM
RHE Partitons brentos Red Hat 14 07-26-2004 07:56 AM


All times are GMT -5. The time now is 11:47 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration