LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-29-2002, 07:19 AM   #1
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Rep: Reputation: 30
To view the partitions in the machine


Hello
Is there any Linux command to see the partions and the files system in each partition

Regards
Saravanan
 
Old 05-29-2002, 07:36 AM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Code:
fdisk -l /dev/hda
Change the device as apropriate.

Example output:

Code:
root@cyberman:/home/david/> fdisk -l /dev/hda

Disk /dev/hda: 255 heads, 63 sectors, 7474 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      1216   9767488+   c  Win95 FAT32 (LBA)
/dev/hda2          1217      1824   4883760   83  Linux
/dev/hda3          1825      2432   4883760   83  Linux
/dev/hda4          2433      7474  40499865    5  Extended
/dev/hda5          2433      3648   9767488+  83  Linux
/dev/hda6          3649      4864   9767488+  83  Linux
/dev/hda7          4865      6688  14651248+  83  Linux
/dev/hda8          6689      6810    979933+  82  Linux swap
/dev/hda9          6811      7474   5333548+  83  Linux
 
Old 05-29-2002, 07:50 AM   #3
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Original Poster
Rep: Reputation: 30
Dear dorward
Thanks a lot for ur reply.I actually do not know my the name of my partition primary nor secondary....Is there any command which shows me the

1.space allocated for the primary partion.The file system in it.

2.List of seconday partitions and the space allocated for each one them and the filesystem type.


Regards
Saravanan
 
Old 05-29-2002, 07:54 AM   #4
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Assuming IDE devices:

/dev/hda - primary master
/dev/hdb - primary slace
/dev/hdc - secondary master
/dev/hdd - secondary slave

df will list mounted partitions and disk space total/used/available
 
Old 05-29-2002, 09:03 AM   #5
vfs
Member
 
Registered: Apr 2002
Location: Brazil
Distribution: Slackware
Posts: 184

Rep: Reputation: 30
and 'fdisk -l | less' will output ALL your partitions to 'less' so you can read it comfortably.

HTH

vfs
 
  


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
How do I view FAT partitions in FC4? Navyblue Linux - Newbie 13 07-19-2005 11:00 PM
How TO View Partitions ..:eMa:.. Debian 8 05-25-2004 09:26 AM
View Windows partitions wiggywag Libranet 8 11-24-2003 01:33 PM
how to view my raid device and partitions x2000koh Linux - Newbie 1 07-21-2002 08:55 PM
How can I view the Raid Device and Partitions x2000koh Linux - General 1 07-12-2002 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:20 PM.

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