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 |
Just curious :scratch: why would you not want to use fdisk -l. Are you just looking for alternate to fdisk -l??
|
Try
Code:
cat /proc/partitions/ |
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.
|
No. Just because when I use that command it appears the message:
bash: fdisk: command not found |
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 |
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.
|
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. |
To use fdisk you need to be logged in as root.
|
All times are GMT -5. The time now is 05:05 AM. |