LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 12: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, 12:36 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

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

Evo2.
 
Old 08-09-2012, 12: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, 12: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, 12: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, 12: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, 02:00 AM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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, 05:55 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
http://www.centos.org/docs/5/html/5....oc-mounts.html
 
Old 08-09-2012, 06:41 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

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

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


Reply



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 02:48 AM
Merging two partitons ????? elsheepo Linux - Hardware 3 03-08-2008 10:49 AM
custom partitons imyself Linux - Software 1 08-01-2006 10:25 PM
Partitons (again) mykrob Linux - Newbie 8 08-02-2004 03:51 PM
RHE Partitons brentos Red Hat 14 07-26-2004 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 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
Open Source Consulting | Domain Registration