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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-09-2012, 01:34 AM
|
#1
|
Member
Registered: Aug 2012
Posts: 95
Rep:
|
Number of partitons
PLease suggest how to find number of partitions existing on a linux machine.
|
|
|
08-09-2012, 01:36 AM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
as root:
check the fdisk man page for details.
Evo2.
|
|
|
08-09-2012, 01:37 AM
|
#3
|
LQ Newbie
Registered: Aug 2012
Posts: 3
Rep:
|
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
|
|
|
08-09-2012, 01:46 AM
|
#4
|
Member
Registered: Aug 2012
Posts: 95
Original Poster
Rep:
|
Thanks for responding.. But is there any other way as i m not root & not allowed to run fdisk ???
|
|
|
08-09-2012, 01:49 AM
|
#5
|
LQ Newbie
Registered: Aug 2012
Posts: 3
Rep:
|
use this: sudo fdisk -l
---------- Post added 08-09-12 at 10:50 AM ----------
you can also use:
gparted
for this purpose as well.
|
|
|
08-09-2012, 01:58 AM
|
#6
|
Member
Registered: Aug 2012
Posts: 95
Original Poster
Rep:
|
Can we use /proc/partition info also as an alternative to fdisk?
|
|
|
08-09-2012, 03:00 AM
|
#7
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
G-parted indeed. I used it last week and it is an efficient application.
Helpful in looking at all partitions on your computer.
|
|
|
08-09-2012, 06:55 PM
|
#8
|
Moderator
Registered: Mar 2008
Posts: 22,178
|
|
|
|
08-09-2012, 07:41 PM
|
#9
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415
|
You can use
Code:
cat /proc/partitions
#Or if the admin will give you access
# to just this cmd
sudo fdisk -l
|
|
|
All times are GMT -5. The time now is 10:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|