LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to know how many partitions I have (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-know-how-many-partitions-i-have-221347/)

spooks 08-23-2004 11:25 AM

How to know how many partitions I have
 
Hi..

I would like to know a way to view the partitions I have in my hard disk, not using the command fdisk -l

I use Fedora Core 2

Regards

tuxrules 08-23-2004 11:38 AM

Just curious :scratch: why would you not want to use fdisk -l. Are you just looking for alternate to fdisk -l??

rjlee 08-23-2004 11:48 AM

Try
Code:

cat /proc/partitions/

Dialore 08-23-2004 11:49 AM

If you have KDE installed, System Tools -> More System Tools -> KDiskFree (or kdf in terminal) will show you partitions listed in fstab, with used/free space. There are also similar utilities in Gnome.

spooks 08-23-2004 11:49 AM

No. Just because when I use that command it appears the message:

bash: fdisk: command not found

tuxrules 08-23-2004 11:59 AM

If I am right? fdisk command and other system commands reside in /sbin and you are getting this error as that particular directory is not in your path.

do this,

# /sbin/fdisk -l

tuxrules 08-23-2004 12:02 PM

read up this link to do more with setting path and environment. You'll need to do this sooner or later so sooner the better.

WhiteChedda 08-23-2004 12:04 PM

I would assume its just an access restriction. You wouldn't want your users being able to partition the hard drive in a professional environment.

Try typing su, then give the root account password to elevate your access rights, after that type fdisk -l, it shoudl run. Then exit by typing exit after your done, to resume your normal user status.

michaelk 08-23-2004 12:05 PM

To use fdisk you need to be logged in as root.


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