LinuxQuestions.org
Visit Jeremy's Blog.
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-23-2004, 11:25 AM   #1
spooks
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
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
 
Old 08-23-2004, 11:38 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Just curious why would you not want to use fdisk -l. Are you just looking for alternate to fdisk -l??
 
Old 08-23-2004, 11:48 AM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Try
Code:
cat /proc/partitions/
 
Old 08-23-2004, 11:49 AM   #4
Dialore
Member
 
Registered: Aug 2004
Location: Toronto, Canada
Distribution: Debian, Mandrake, Fedora
Posts: 38

Rep: Reputation: 15
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.
 
Old 08-23-2004, 11:49 AM   #5
spooks
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
No. Just because when I use that command it appears the message:

bash: fdisk: command not found
 
Old 08-23-2004, 11:59 AM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
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
 
Old 08-23-2004, 12:02 PM   #7
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
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.
 
Old 08-23-2004, 12:04 PM   #8
WhiteChedda
Member
 
Registered: Aug 2003
Location: Florida
Distribution: Mandrake 9.1 for now
Posts: 205

Rep: Reputation: 30
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.
 
Old 08-23-2004, 12:05 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,568

Rep: Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865
To use fdisk you need to be logged in as root.
 
  


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
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 01:11 PM
How many partitions should I use? fishybawb Slackware - Installation 4 07-23-2004 02:53 AM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
Partitions twinkers Linux - General 26 08-24-2003 10:51 AM
How many partitions dark_light Linux - General 7 05-08-2002 04:37 PM

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

All times are GMT -5. The time now is 12:18 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