old-www/HOWTO/Filesystems-HOWTO-2.html

359 lines
10 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
<TITLE>Filesystems HOWTO: Volumes</TITLE>
<LINK HREF="Filesystems-HOWTO-3.html" REL=next>
<LINK HREF="Filesystems-HOWTO-1.html" REL=previous>
<LINK HREF="Filesystems-HOWTO.html#toc2" REL=contents>
</HEAD>
<BODY>
<A HREF="Filesystems-HOWTO-3.html">Next</A>
<A HREF="Filesystems-HOWTO-1.html">Previous</A>
<A HREF="Filesystems-HOWTO.html#toc2">Contents</A>
<HR>
<H2><A NAME="s2">2.</A> <A HREF="Filesystems-HOWTO.html#toc2">Volumes</A></H2>
<H2><A NAME="ss2.1">2.1</A> <A HREF="Filesystems-HOWTO.html#toc2.1">PC Partitions</A>
</H2>
<P>
<UL>
<LI>
<A HREF="http://www.win.tue.nl/~aeb/partitions/">http://www.win.tue.nl/~aeb/partitions/</A>
Partition types document by Andries Brouwer &lt;
<A HREF="mailto:aeb@cwi.nl">aeb@cwi.nl</A>&gt;</LI>
</UL>
</P>
<H3>GNU parted</H3>
<P>
<UL>
<LI> Homepage:
<A HREF="http://www.gnu.org/software/parted">http://www.gnu.org/software/parted</A></LI>
<LI> Download:
<A HREF="ftp://ftp.gnu.org/gnu/parted/">ftp://ftp.gnu.org/gnu/parted/</A></LI>
<LI> Authors: Andrew Clausen &lt;
<A HREF="mailto:clausen@gnu.org">clausen@gnu.org</A>&gt;,
Lennert Buytenhek &lt;
<A HREF="mailto:buytenh@dsv.nl">buytenh@dsv.nl</A>&gt; and
Matt Wilson &lt;
<A HREF="mailto:msw@redhat.com">msw@redhat.com</A>&gt;. </LI>
<LI> Bug reports: &lt;
<A HREF="mailto:bug-parted@gnu.org">bug-parted@gnu.org</A>&gt;, </LI>
<LI> Access: varies for each filesystem, see below.</LI>
<LI> License: GPL</LI>
</UL>
GNU Parted is a program for creating, destroying, resizing, checking and
copying partitions, and the filesystems on them.</P>
<P>This is useful for creating space for new operating systems, reorganising
disk usage, copying data between hard disks, and "disk imaging" - replicating
installations over many computers.</P>
<P>Parted has support for these operations:
<PRE>
Filesystem detect create resize copy check
ext2 * * *1 *2 *3
fat * * *4 *4 *
linux-swap * * * * *
</PRE>
</P>
<P><B>NOTES:</B></P>
<P>(1) The start of the partition must stay fixed for ext2.</P>
<P>(2) The partition you copy to must be bigger (or exactly the same size)
as the partition you copy from.</P>
<P>(3) Limited checking is done when the filesystem is opened. This is the
only checking at the moment. All commands (including resize) will gracefully
fail, leaving the filesystem in tact, if there are any errors in the file
system (and the vast majority of errors in general).</P>
<P>(4) The size of the new partition, after resizing or copying, is restricted
by the cluster size for fat (mainly affects FAT16). This is worse than you
think, because you don't get to choose your cluster size (it's a bug in
Windows, but you want compatibility, right?).</P>
<P>So, in practise, you can always shrink your partition (because Parted
can shrink the cluster size), but you may not be able to grow the partition
to the size you want. If you don't have any problems with using FAT32, you
will always be able to grow the partition to the size you want.</P>
<P>Summary: you can always shrink your partition. If you can't use
FAT32 for some reason, you may not be able to grow your partition.</P>
<H3>Repairing corrupted partition table</H3>
<H3>Fixdisktable</H3>
<P>
<UL>
<LI> Homepage:
<A HREF="http://bmrc.berkeley.edu/people/chaffee/fat32.html">http://bmrc.berkeley.edu/people/chaffee/fat32.html</A></LI>
<LI> Download: ?</LI>
<LI> Author: ?</LI>
<LI> Access: ?</LI>
<LI> License: ?</LI>
</UL>
This is a utility that handles ext2, FAT, NTFS, ufs, BSD disklabels
(but not yet old Linux swap partitions); it actually will rewrite
the partition table, if you give it permission. </P>
<H3>gpart</H3>
<P>
<UL>
<LI> Homepage:
<A HREF="http://home.pages.de/~michab/gpart/">http://home.pages.de/~michab/gpart/</A></LI>
<LI> Download: ?</LI>
<LI> Author: ?</LI>
<LI> Access: ?</LI>
<LI> License: ?</LI>
</UL>
GPART is a utility
that handles ext2, FAT, Linux swap, HPFS, NTFS, FreeBSD and
Solaris/x86 disklabels, minix, reiser fs; it prints a proposed
contents for the primary partition table, and is well-documented.</P>
<H3>rescuept</H3>
<P>
<UL>
<LI> Homepage: util-linux ?</LI>
<LI> Download: ?</LI>
<LI> Author: ?</LI>
<LI> Access: ?</LI>
<LI> License: ?</LI>
</UL>
Recognizes ext2 superblocks,
FAT partitions, swap partitions, and extended partition tables;
it may also recognize BSD disklabels and Unixware 7 partitions.
It prints out information that can be used with fdisk or sfdisk
to reconstruct the partition table.
It is in the non-installed part of the util-linux distribution.</P>
<H3>findsuper</H3>
<P>
<UL>
<LI> Homepage: e2progs ?</LI>
<LI> Download: ?</LI>
<LI> Author: ?</LI>
<LI> Access: ?</LI>
<LI> License: ?</LI>
</UL>
Small utility that finds blocks with the ext2
superblock signature, and prints out location and some info.
It is in the non-installed part of the e2progs distribution.</P>
<H2><A NAME="ss2.2">2.2</A> <A HREF="Filesystems-HOWTO.html#toc2.2">Other partitions</A>
</H2>
<P>Because I use <B>only</B> Intel x86 machines, any contributions (or non-x86
machine donation ;-) ) are <B>very</B> welcome. If you can provide any useful
information, don't hesitate to mail
<A HREF="mailto:mhi@penguin.cz">me</A>.</P>
<H3>ADFS partitions</H3>
<H3>Amiga partitions</H3>
<H3>ATARI partitions</H3>
<H3>Macintosh partitions</H3>
<H3>OSF partitions</H3>
<H3>Sun partitions</H3>
<H3>Ultrix partitions</H3>
<H2><A NAME="ss2.3">2.3</A> <A HREF="Filesystems-HOWTO.html#toc2.3">Unix disklabels</A>
</H2>
<P>(todo)</P>
<H3>BSD disklabel</H3>
<P>(todo)</P>
<H3>UnixWare disklabel</H3>
<P>UnixWare VTOC (Volume Table Of Contents) divides disk partition to 16 logical
partitions. Linux kernel supports UnixWare VTOC, you must check
"UnixWare slices support (EXPERIMENTAL)" and recompile your kernel.
Another way of reading UnixWare disklabel is using GPL port of prtvtoc(1)
command, which is in
<A HREF="Filesystems-HOWTO-9.html#vxtools">vxtools</A> package.</P>
<H3>SCO OpenServer disklabel</H3>
<P>(todo)</P>
<H3>Sun Solaris disklabel</H3>
<P>(todo)</P>
<H2><A NAME="ss2.4">2.4</A> <A HREF="Filesystems-HOWTO.html#toc2.4">Windows NT volumes</A>
</H2>
<P>
<UL>
<LI> Homepage:
<A HREF="http://www.penguin.cz/~mhi/fs/vol/">http://www.penguin.cz/~mhi/fs/vol/</A></LI>
<LI> Author: Martin Hinner &lt;
<A HREF="mailto:mhi@penguin.cz">mhi@penguin.cz</A>&gt;</LI>
<LI> Access: Read-only, supports OS/2 Volumes, Windows NT Stripe sets and
volumes.</LI>
<LI> Download:
<A HREF="ftp://ftp.penguin.cz/pub/users/mhi/vol/">ftp://ftp.penguin.cz/pub/users/mhi/vol/</A></LI>
<LI> License: GPL</LI>
</UL>
This linux-kernel driver allows you to access and mount linear and stripe set
volumes.</P>
<H3><A NAME="ntfs_ftedit"></A> Repairing "fault tolerant" NTFS disks using FTEdit</H3>
<P>
<UL>
<LI> Homepage: ? MS ARTICLE ID: Q131658</LI>
<LI> Download:
<A HREF="ftp://ftp.rhrz.uni-bonn.de/pub/pc/winnt/intel/ftedit.zip">ftp://ftp.rhrz.uni-bonn.de/pub/pc/winnt/intel/ftedit.zip</A></LI>
<LI> Author: Microsoft Corp.</LI>
<LI> License: ?</LI>
</UL>
If you have a Windows NT Workstation or Server configured for fault
tolerant (FT) partitions (such as stripes with parity and volume sets), and
those partitions are inaccessible and appear in Disk Administrator as type
Unknown, you can possibly make them accessible again by using the utility
FTEDIT.</P>
<H2><A NAME="ss2.5">2.5</A> <A HREF="Filesystems-HOWTO.html#toc2.5">MD - Multiple Devices driver for Linux</A>
</H2>
<P>
<UL>
<LI> Homepage:?</LI>
<LI> Author: Marc Zyngier &lt;
<A HREF="mailto:maz@wild-wind.fr.eu.org">maz@wild-wind.fr.eu.org</A>&gt;</LI>
<LI> Access: Read-write, supports linear mode, RAID-1, RAID-4 and RAID-5.</LI>
<LI> Download: Linux kernel, tools are available at
<A HREF="ftp://sweet-smoke.ufr-info-p7.ibp.fr/public/Linux/">ftp://sweet-smoke.ufr-info-p7.ibp.fr/public/Linux/</A></LI>
<LI> License: GPL</LI>
</UL>
This driver lets you combine several hard disk partitions into one
logical block device. This can be used to simply append one
partition to another one or to combine several redundant
hard disks to a RAID1/4/5 device so as to provide protection against
hard disk failures. This is called "Software RAID" since the
combining of the partitions is done by the kernel.</P>
<H2><A NAME="lvm"></A> <A NAME="ss2.6">2.6</A> <A HREF="Filesystems-HOWTO.html#toc2.6">LVM - Logical Volume Manager (HP-UX LVM?)</A>
</H2>
<P>Linux implementation is available here:</P>
<P>
<UL>
<LI> Homepage:
<A HREF="http://linux.msede.com/lvm/">http://linux.msede.com/lvm/</A></LI>
<LI> Author: Heinz Mauelshagen &lt;
<A HREF="mailto:mauelsha@ez-darmstadt.telekom.de">mauelsha@ez-darmstadt.telekom.de</A>&gt;</LI>
<LI> Access: ?</LI>
<LI> Download:
<A HREF="ftp://linux.msede.com/lvm/v0.6/">ftp://linux.msede.com/lvm/v0.6/</A></LI>
<LI> License: GPL</LI>
</UL>
</P>
<H2><A NAME="ss2.7">2.7</A> <A HREF="Filesystems-HOWTO.html#toc2.7">VxVM - Veritas Volume Manager</A>
</H2>
<P>
<A NAME="vxvm"></A>
For more information about Veritas Volume Manager see
<A HREF="http://www.veritas.com/">http://www.veritas.com/</A>.</P>
<P>See also:
<A HREF="Filesystems-HOWTO-9.html#vxfs">VxFS (Veritas Journaling Filesystem)</A>.</P>
<H2><A NAME="ss2.8">2.8</A> <A HREF="Filesystems-HOWTO.html#toc2.8">IBM OS/2 LVM</A>
</H2>
<P>Logical Volume Manager is available in OS/2 WarpServer 5. It allows you to
create linear volumes on several disks/partitions. Some people say that it's
compatible with IBM AIX Logical Volume Manager. </P>
<P>See also:
<A HREF="Filesystems-HOWTO-4.html#hpfs">HPFS</A>,
<A HREF="Filesystems-HOWTO-9.html#jfs">JFS</A></P>
<H2><A NAME="ss2.9">2.9</A> <A HREF="Filesystems-HOWTO.html#toc2.9">StackVM</A>
</H2>
<P>StackVM is CrosStor's volume manager. Using StackVM the
administrator can combine multiple physical disk slices into a single
logical device know as a vdisk. Vdisk is short for virtual disk. The
physical disks can be combined to form a concatenation, RAID 0 (stripe),
RAID 1 (mirror), RAID 4 or RAID 5. In addition a single disk partition can
be subdivided into multiple simple vdisks. For more information see CrosStor
homepage at
<A HREF="http://www.crosstor.com/">http://www.crosstor.com/</A>.</P>
<H2><A NAME="nwvol"></A> <A NAME="ss2.10">2.10</A> <A HREF="Filesystems-HOWTO.html#toc2.10">Novell NetWare volumes</A>
</H2>
<P>NetWare volumes are used for NWFS-386 filesystem.</P>
<HR>
<A HREF="Filesystems-HOWTO-3.html">Next</A>
<A HREF="Filesystems-HOWTO-1.html">Previous</A>
<A HREF="Filesystems-HOWTO.html#toc2">Contents</A>
</BODY>
</HTML>