old-www/LDP/GNU-Linux-Tools-Summary/html/x4892.htm

305 lines
4.1 KiB
HTML

<HTML
><HEAD
><TITLE
>Finding information about partitions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="GNU/Linux Command-Line Tools Summary"
HREF="book1.htm"><LINK
REL="UP"
TITLE="Finding information about the system"
HREF="c4268.htm"><LINK
REL="PREVIOUS"
TITLE="Finding information about the system"
HREF="c4268.htm"><LINK
REL="NEXT"
TITLE="Controlling the system"
HREF="c4975.htm"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>GNU/Linux Command-Line Tools Summary</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="c4268.htm"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 8. Finding information about the system</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="c4975.htm"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="HARD-DISK-PARTITION-INFO"
></A
>Finding information about partitions</H1
><P
>There are a number of ways to find out information <A
NAME="AEN4895"
></A
>on your hard disk <A
NAME="AEN4897"
></A
>drives, for information on mounted <A
NAME="AEN4899"
></A
>partitions also try<SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
> df <A
NAME="AEN4902"
></A
></I
></SPAN
>in <A
HREF="c4268.htm"
>Chapter 8</A
></P
><P
></P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>Using&nbsp;the&nbsp;proc&nbsp;filesystem</DT
><DD
><P
>You can look <A
NAME="AEN4911"
></A
>through the information <A
NAME="AEN4913"
></A
>in the relevant<A
NAME="AEN4915"
></A
> area of the proc <A
NAME="AEN4917"
></A
>filesystem,<A
NAME="AEN4919"
></A
><A
NAME="AEN4921"
></A
> under the directory <A
NAME="AEN4923"
></A
>of either /proc/ide/ or /proc/ide?/hd? where the first question <A
NAME="AEN4925"
></A
>mark is a number <A
NAME="AEN4927"
></A
>and the second is a letter <A
NAME="AEN4929"
></A
>(starting with 'a'). </P
><P
>For example:</P
><PRE
CLASS="SCREEN"
>cd /proc/ide0/hda</PRE
><P
>Under this directory there will be various information on the hard drive<A
NAME="AEN4934"
></A
> or cdrom <A
NAME="AEN4936"
></A
>connected.</P
></DD
><DT
>Using&nbsp;fdisk<A
NAME="USING-FDISK"
></A
></DT
><DD
><P
>Using <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>fdisk</I
></SPAN
><A
NAME="AEN4944"
></A
> with the <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>-l<A
NAME="AEN4947"
></A
></I
></SPAN
> option will output information on any hard drives <A
NAME="AEN4949"
></A
>connected <A
NAME="AEN4951"
></A
>to the system and information on their partitions <A
NAME="AEN4953"
></A
>(for example, the type of partition).</P
><P
>Information relating to using <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>fdisk</I
></SPAN
> to partition <A
NAME="AEN4957"
></A
>hard disks <A
NAME="AEN4959"
></A
>can be found <A
NAME="AEN4961"
></A
>in your distributions <A
NAME="AEN4963"
></A
>documentation,<A
NAME="AEN4965"
></A
> the <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>fdisk</I
></SPAN
> manual <A
NAME="AEN4968"
></A
>page or online.<A
NAME="AEN4970"
></A
></P
><DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>Root Access Required: </B
> This command needs root access to work </P
></BLOCKQUOTE
></DIV
></DD
></DL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="c4268.htm"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.htm"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="c4975.htm"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Finding information about the system</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c4268.htm"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Controlling the system</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>