Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




8.2. Finding information about partitions

There are a number of ways to find out information on your hard disk drives, for information on mounted partitions also try df in Chapter 8

Using the proc

filesystem You can look through the information in the relevant area of the proc filesystem, under the directory of either /proc/ide/ or /proc/ide?/hd? where the first question mark is a number and the second is a letter (starting with 'a').

For example:

cd /proc/ide0/hda

Under this directory there will be various information on the hard drive or cdrom connected.

Using fdisk

Using fdisk with the -l option will output information on any hard drives connected to the system and information on their partitions (for example, the type of partition).

Information relating to using fdisk to partition hard disks can be found in your distributions documentation, the fdisk manual page or online.

Note Root Access Required

This command needs root access to work

  Published under the terms of the GNU General Public License Design by Interspire