rane 05/09/25 19:23:24
Modified: xml/htdocs/doc/en/articles partitioning-p1.xml
partitioning-p2.xml
Log:
reverting revision 1.2 for p1 and 1.3 for p2 (in english again)
Revision Changes Path
1.4 +133 -141 xml/htdocs/doc/en/articles/partitioning-p1.xml
file :
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/partitioning-p1.xml?rev=1.4&content-type=text/x-cvsweb-markup&cvsroot=gentoo
plain:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/partitioning-p1.xml?rev=1.4&content-type=text/plain&cvsroot=gentoo
diff :
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/partitioning-p1.xml.diff?r1=1.3&r2=1.4&cvsroot=gentoo
Index: partitioning-p1.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/partitioning-p1.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- partitioning-p1.xml 25 Sep 2005 13:44:55 -0000 1.3
+++ partitioning-p1.xml 25 Sep 2005 19:23:24 -0000 1.4
@@ -1,25 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
-<!-- $Header:
/var/cvsroot/gentoo/xml/htdocs/doc/en/articles/partitioning-p1.xml,v 1.3
2005/09/25 13:44:55 rane Exp $ -->
+<!-- $Header:
/var/cvsroot/gentoo/xml/htdocs/doc/en/articles/partitioning-p1.xml,v 1.4
2005/09/25 19:23:24 rane Exp $ -->
-<guide link="/doc/pl/articles/partitioning-p1.xml" lang="pl">
-<title>Dzielenie dysku na partycje, przenosiny /home</title>
+<guide link="/doc/en/articles/partitioning-p1.xml" lang="en">
+<title>Partitioning in action, Part 1</title>
-<author title="Autor">
+<author title="Author">
<mail link="[EMAIL PROTECTED]">Daniel Robbins</mail>
</author>
-<author title="Redaktor">
+<author title="Editor">
<mail link="[EMAIL PROTECTED]">Joshua Saddler</mail>
</author>
-<author title="Tumaczenie">
- <mail link="[EMAIL PROTECTED]">Mateusz Kotyrba</mail>
-</author>
<abstract>
-W tej nowej serii wskazówek Daniel Robbins pokazuje jak zmieniÄ organizacjÄ
-partycji w systemie. Ten dokument zawiera również kilka sztuczek za pomocÄ
-których można zminimalizowaÄ przestoje i zapobiec popeÅnieniu kosztownych
-bÅÄdów. Powie również jak przenieÅÄ katalog /home na innÄ
partycjÄ.
+In this new series of tips, Daniel Robbins shows you how to change partition
+layout on a running system. He'll also cover several tricks of the trade to
+minimize downtime and avoid making costly mistakes. In this particular tip,
+he'll show you how to move /home to another partition.
</abstract>
<!-- The original version of this article was first published on IBM
@@ -31,69 +28,66 @@
<date>2005-08-18</date>
<chapter>
-<title>Przenoszenie /home</title>
+<title>Moving /home</title>
<section>
-<title>Wprowadzenie</title>
+<title>Introduction</title>
<body>
<note>
-Oryginalna wersja tego artykuÅu byÅa najpierw opublikowana na IBM
-developerWorks i jest wÅasnoÅciÄ
Westtech Information Services. Ten dokument
-jest zaktualizowanÄ
wersjÄ
oryginalnego artykuÅu i zawiera różne
ulepszenia
-wykonane przez zespóŠdokumentacji Gentoo.
+The original version of this article was first published on IBM developerWorks,
+and is property of Westtech Information Services. This document is an updated
+version of the original article, and contains various improvements made by the
+Gentoo Linux Documentation team.
</note>
<p>
-Partycja <path>/home</path> jest jednÄ
z najczÄÅciej przenoszonych partycji.
-Czasami caÅa przestrzeÅ w <path>/home</path> zostaje wykorzystana i wymagany
-jest dodatkowy dysk twardy. Innym razem <path>/home</path> jest ustawiony jako
-czÄÅÄ partycji gÅównego systemu plików i może byÄ konieczne
przeniesienie go,
-aby zwiÄkszyÄ wydajnoÅÄ lub uÅatwiÄ stworzenie kopii zapasowej. W
którymkolwiek
-z tych przypadków pokaÅ¼Ä jak przenieÅÄ <path>/home</path> bezpiecznie i
-wydajnie.
+The partition <path>/home</path> is one of the most-often-moved partitions.
+Sometimes, all the space in <path>/home</path> becomes exhausted, and an
+additional hard drive is required. Other times, <path>/home</path> is set up as
+part of the root partition, and it may need to be moved to improve performance
+or facilitate backup. Whatever the case, I'll show you how to move
+<path>/home</path> safely and efficiently.
</p>
<warn>
-Omawiana technika opisuje sposób przeniesienia partycji. Jest ona tak
-zaprojektowana, aby użytkownik mógÅ wycofaÄ siÄ w każdym momencie, ale
-nie chroni ona przed bÅÄdem użytkownika. Innymi sÅowy w dowolnym momencie,
-kiedy formatujemy partycje lub kopiujemy duże iloÅci plików, istnieje
-możliwoÅÄ, że wpiszemy zÅe polecenie, powodujÄ
c tym samym zniszczenie
-dużej iloÅci danych. Z tego powodu gorÄ
co siÄ zaleca, aby <e>podjÄ
Ä
-odpowiednie kroki i przed przejÅciem dalej stworzyÄ kopiÄ zapasowÄ
wszystkich
-niezbÄdnych plików</e>.
+The following technique describes how to move a partition(s). Although this
+technique is designed so that you can "back out" of a failed partition move, it
+doesn't protect against user error. In other words, any time that you format
+partitions or copy large numbers of files, there's a possibility that you will
+type the wrong thing, causing lots of data to be destroyed. For this reason,
+it's highly recommended that you <e>take appropriate steps to back up all
+critical files before proceeding</e>.
</warn>
<p>
-Teraz jesteÅmy gotowi, aby zaczÄ
Ä przenosiny
-<path>/home</path>. Konkretne kroki zależÄ
od tego czy obecnie
-<path>/home</path> znajduje siÄ na osobnej partycji lub czy jest umieszczony
-na partycji gÅównego systemu plików. Należy mieÄ to na uwadze kiedy
bÄdziemy
-wykonywali odpowiednie kroki (zwrócÄ uwagÄ gdzie bÄdzie trzeba). Teraz,
jeÅli
-przenosimy <path>/home</path> na nowy dysk twardy, to powinien on byÄ
-zainstalowany w komputerze.
+Now that you're prepared, we're ready to start moving <path>/home</path>. The
+exact steps you will take depend on whether <path>/home</path> currently
+resides on its own separate partition, or whether it is located on the root
+partition. Keep this in mind as we go through the steps (I'll make notes where
+necessary). Right now, if you are moving <path>/home</path> to a new hard
+drive, it should be physically installed in your system.
</p>
<p>
-JeÅli przenosimy <path>/home</path> na istniejÄ
cÄ
partycjÄ (nie musi to
byÄ
-ext2, pod warunkiem, że istnieje docelowa partycja gÅówna lub rozszerzona),
to
-możemy przejÅÄ do <uri link="#step2">kroku 2</uri>.
+If you are moving <path>/home</path> to an existing partition (it doesn't need
+to be ext2, as long as the target primary or extended partition exists), you
+can proceed to <uri link="#step2">step 2</uri>.
</p>
</body>
</section>
<section>
-<title>JeÅli konieczne, tworzymy nowÄ
partycjÄ</title>
+<title>Create a new partition, if necessary</title>
<body>
<p>
-JeÅli nowa partycja jeszcze ne istnieje, wtedy należy jÄ
stworzyÄ za
pomocÄ
-<c>cfdisk</c> (zalecane) lub <c>fdisk</c>. JeÅli partycja nie znajduje siÄ
-na pierwszym dysku, należy pamiÄtaÄ, aby podaÄ nazwÄ odpowiedniego
urzÄ
dzenia
-jako pierwszy argument w poleceniu <c>cfdisk</c> lub <c>fdisk</c>. Po
-stworzeniu odpowiednich partycji, należy uruchomiÄ ponownie komputer, aby
-tablica partycji mogÅa byÄ poprawnie odczytana. To jest jedyny moment kiedy
-bÄdziemy musieli uruchomiÄ komputer ponownie.
+If the new partition doesn't exist yet, you'll need to create it using
+<c>cfdisk</c> (preferred) or <c>fdisk</c>. If the partition doesn't reside on
+your first drive, remember to specify the name of the device as the first
+argument to <c>cfdisk</c> or <c>fdisk</c>. After creating the appropriate
+primary or extended partition, you should reboot so that the partition table
+can be reread correctly. This is the only time you will need to reboot the
+system.
</p>
</body>
@@ -101,26 +95,25 @@
</chapter>
<chapter id="step2">
-<title>Tworzenie systemu plików na nowej partycji</title>
+<title>Create a filesystem on the new partition</title>
<section>
<body>
<p>
-Aby stworzyÄ system plików na nowej partycji, należy najpierw siÄ upewniÄ,
-że znamy dokÅadnÄ
nazwÄ urzÄ
dzenia na którym znajduje siÄ ta partycja
(na
-przykÅad, <path>/dev/sda5</path>). JeÅli nie jesteÅmy pewni jak siÄ ona
-nazywa, wtedy należy zatrzymaÄ siÄ w tym miejscu, aby to sprawdziÄ i to
-dwukrotnie! Po czym wpisujemy jako root:
+To create a filesystem on the new partition, first make sure you know the exact
+device name for the new partition (for example, <path>/dev/sda5</path>). If
+you're not sure of the exact device name, stop now and double-check! Then type
+the following, as root:
</p>
-<pre caption="Tworzenie systemu plików">
+<pre caption="Creating the filesystem">
# <i>mkfs.ext2 /dev/???</i>
</pre>
<p>
-W powyższym poleceniu, <path>???</path> powinno byÄ zastÄ
pione nazwÄ
docelowej
-partycji. Po wykonaniu tego polecenia, partycja docelowa bÄdzie zawieraÅa
-pusty system plików ext2.
+In the above and following code samples, <path>???</path> should be replaced
+with the target partition name. After executing this command, the target
+partition will contain an empty ext2 filesystem.
</p>
</body>
@@ -128,17 +121,17 @@
</chapter>
<chapter>
-<title>Montowanie nowego sysetmu plików w /mnt</title>
+<title>Mount the new filesystem in /mnt</title>
<section>
<body>
<p>
-Tworzymy katalog o nazwie <path>/mnt/nowapart</path>, a nastÄpnie montujemy
-tam naszÄ
nowÄ
partycjÄ:
+Create a directory called <path>/mnt/newpart</path>, and then mount the new
+partition there:
1.5 +143 -149 xml/htdocs/doc/en/articles/partitioning-p2.xml
file :
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/partitioning-p2.xml?rev=1.5&content-type=text/x-cvsweb-markup&cvsroot=gentoo
plain:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/partitioning-p2.xml?rev=1.5&content-type=text/plain&cvsroot=gentoo
diff :
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/partitioning-p2.xml.diff?r1=1.4&r2=1.5&cvsroot=gentoo
Index: partitioning-p2.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/partitioning-p2.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- partitioning-p2.xml 25 Sep 2005 13:44:55 -0000 1.4
+++ partitioning-p2.xml 25 Sep 2005 19:23:24 -0000 1.5
@@ -1,25 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
-<!-- $Header:
/var/cvsroot/gentoo/xml/htdocs/doc/en/articles/partitioning-p2.xml,v 1.4
2005/09/25 13:44:55 rane Exp $ -->
+<!-- $Header:
/var/cvsroot/gentoo/xml/htdocs/doc/en/articles/partitioning-p2.xml,v 1.5
2005/09/25 19:23:24 rane Exp $ -->
-<guide link="/doc/pl/articles/partitioning-p2.xml" lang="pl">
-<title>Dzielenie dysku na partycje, przenosiny /tmp i /var</title>
+<guide link="/doc/en/articles/partitioning-p2.xml" lang="en">
+<title>Partitioning in action, Part 2</title>
-<author title="Autor">
+<author title="Author">
<mail link="[EMAIL PROTECTED]">Daniel Robbins</mail>
</author>
-<author title="Redaktor">
+<author title="Editor">
<mail link="[EMAIL PROTECTED]">Joshua Saddler</mail>
</author>
-<author title="TÅumaczenie">
- <mail link="[EMAIL PROTECTED]">Mateusz Kotyrba</mail>
-</author>
<abstract>
-W drugiej czÄÅci wskazówek zmian organizacji partycji w systemie, Daniel
-Robbins pokazuje jak przenieÅÄ /tmp i /var na ich wÅasnÄ
, wspólnÄ
partycjÄ.
-Pokazuje on również kilka sztuczek za pomocÄ
, których można
zminimalizowaÄ
-przestoje i zapobiec popeÅnieniu kosztownych bÅÄdów.
+In this second tip on changing partition layout on a running system, Daniel
+Robbins shows you how to move /tmp and /var to their own shared partition. He
+also covers several tricks of the trade to minimize downtime and avoid making
+costly mistakes.
</abstract>
<!-- The original version of this article was first published on IBM
@@ -27,70 +24,68 @@
document is an updated version of the original article, and contains
various improvements made by the Gentoo Linux Documentation team -->
-<version>1.1</version>
+<version>1.2</version>
<date>2005-08-18</date>
<chapter>
-<title>ÅÄ
czenie danych</title>
+<title>Consolidating data</title>
<section>
-<title>Wprowadzenie</title>
+<title>Introduction</title>
<body>
<note>
-Oryginalna wersja tego artykuÅu byÅa najpierw opublikowana na IBM
-developerWorks i jest wÅasnoÅciÄ
Westtech Information Services. Ten dokument
-jest zaktualizowanÄ
wersjÄ
oryginalnego artykuÅu i zawiera różne
ulepszenia
-wykonane przez zespóŠdokumentacji Gentoo.
+The original version of this article was first published on IBM developerWorks,
+and is property of Westtech Information Services. This document is an updated
+version of the original article, and contains various improvements made by the
+Gentoo Linux Documentation team.
</note>
<p>
-W mojej <uri link="/doc/pl/articles/partitioning-p1.xml">ostatniej
-wskazówce</uri>, z powodzeniem przenieÅliÅmy katalog <path>/home</path> na
-nowÄ
partycjÄ. Teraz nadszedÅ czas, aby siÄ nauczyÄ jak przenieÅÄ
czÄsto
-modyfikowane pliki na nowÄ
partycjÄ. CzÄsto modyfikowane pliki znacznie siÄ
-przyczyniajÄ
do fragmentacji. JednÄ
z najlepszych możliwoÅci, aby temu
-zapobiec jest przechowywanie ich na osobnej partycji. W ten sposób
-fragmentacja wywoÅana przez czÄsto modyfikowane pliki nie ma wpÅywu na inne
-partycje. Jako sam pomysÅ, jest to Åatwe do zrozumienia, ale jak to siÄ ma
do
-wykonania?
+In my <uri link="/doc/en/articles/partitioning-p1.xml">last tip</uri>, we
+successfully moved <path>/home</path> to a new partition. Now, it's time to
+learn how to consolidate often-modified files onto a new partition. Why would
+we want to do this? Here's an example. Often-modified files contribute heavily
+to fragmentation. One of the best ways to contain fragmentation is to store
+often-modified files on their own partition. That way, the other partitions are
+unaffected by the fragmentation caused by the heavily modified files. In
+concept, this is easy to understand, but how do you actually go about doing it?
</p>
<p>
-Po pierwsze należy stworzyÄ nowÄ
partycjÄ dla naszego konkretnego celu --
-przechowywania czÄsto modyfikowanych plików. W celu zwiÄkszenia wydajnoÅci
-można umieÅciÄ tÄ partycjÄ na osobnym dysku. NastÄpnie wykonamy kilka
kroków
-wymaganych, aby przenieÅÄ <path>/tmp</path> i <path>/var</path> na tÄ nowÄ
-partycjÄ.
+First, you must create a new partition for the specific purpose of storing
+frequently modified files. You might want to locate this partition on a
+separate disk to enhance performance. Then, I'll walk you through the steps
+required to move both <path>/tmp</path> and <path>/var</path> to this new
+partition.
</p>
<warn>
-Omawiana technika opisuje sposób przeniesienia partycji. Jest ona tak
-zaprojektowana, aby użytkownik mógÅ wycofaÄ siÄ w każdym momencie, ale
-nie chroni ona przed bÅÄdem użytkownika. Innymi sÅowy w dowolnym momencie,
-kiedy formatujemy partycje lub kopiujemy duże iloÅci plików, istnieje
-możliwoÅÄ, że wpiszemy zÅe polecenie, powodujÄ
c tym samym zniszczenie
-dużej iloÅci danych. Z tego powodu gorÄ
co siÄ zaleca, aby <e>podjÄ
Ä
-odpowiednie kroki i przed przejÅciem dalej stworzyÄ kopiÄ zapasowÄ
wszystkich
-niezbÄdnych plików</e>.
+The following technique describes how to move a partition(s). Although this
+technique is designed so that you can "back out" of a failed partition move, it
+doesn't protect against user error. In other words, any time that you format
+partitions or copy large numbers of files, there's a possibility that you will
+type the wrong thing, causing lots of data to be destroyed. For this reason,
+it's highly recommended that you <e>take appropriate steps to back up all
+critical files before proceeding</e>.
</warn>
</body>
</section>
<section>
-<title>Tworzymy system plików na nowej partycji</title>
+<title>Create a filesystem on the new partition</title>
<body>
<p>
-W pierwszym kroku stworzymy nowÄ
partycjÄ, która bÄdzie dostatecznie duża,
-aby pomieÅciÄ <path>/var</path> i <path>/tmp</path>. BÄdziemy potrzebowali
-dodatkowy dysk lub wolnÄ
(nieużywanÄ
) partycjÄ, na której umieÅcimy
czÄsto
-modyfikowane pliki. JeÅli stworzymy partycjÄ za pomocÄ
<c>fdisk</c> lub
-<c>cfdisk</c>, wtedy konieczne bÄdzie ponowne uruchomienie systemu. NastÄpnie
-formatujemy nowÄ
partycjÄ (możemy to wykonywaÄ w trybie multiuser; dam
-znaÄ kiedy należy przejÅÄ do trybu single-user):
+The first step of this process is to create a new partition that's big enough
+to hold <path>/var</path> and <path>/tmp</path>, with a little extra space left
+over. You'll need either an additional drive, or a spare (unused) partition
+that will house the often-modified files. If you do need to use <c>fdisk</c> or
+<c>cfdisk</c> to create the partition, you'll need to reboot once. Then, it's
+time to format the new partition as follows (it's OK to be in multiuser mode
+while you do this; I'll let you know when to switch to single-user):
</p>
-<pre caption="Tworzenie systemu plików">
+<pre caption="Creating the filesystem">
# <i>mkfs.ext2 /dev/???</i>
</pre>
@@ -99,30 +94,31 @@
</chapter>
<chapter>
-<title>Montujemy to do /mnt/rwstorage</title>
+<title>Mount it to /mnt/rwstorage</title>
<section>
<body>
<p>
-Tak jak w mojej poprzedniej wskazówce <path>???</path> należy zastÄ
piÄ
nazwÄ
-urzÄ
dzenia nowej, pustej partycji. Przypadkowo wpisujÄ
c zÅÄ
nazwÄ
zniszczymy
-istniejÄ
ce dane, wiÄc należy byÄ ostrożnym! Po wpisaniu tego polecenia,
-otrzymamy system plików ext2 na zupeÅnie nowej partycji. JesteÅmy prawie
-gotowi, aby go zamonotowaÄ, ale najpierw stwórzmy punkt montowania.
+As in my previous tip, <path>???</path> should be replaced with the device name
+for the new, empty partition that you are creating. Accidentally typing the
+wrong name will destroy data on an existing partition, so be careful! After
+typing this command, you'll have a brand-new ext2 filesystem on the new
+partition. We're almost ready to mount it, but first, let's make a new mount
+point.
</p>
-<pre caption="Tworzenie punktu montowania">
-# <i>mkdir /mnt/odczytzapis</i>
+<pre caption="Creating the mount point">
+# <i>mkdir /mnt/rwstorage</i>
</pre>
<p>
-WybraÅem nazwÄ <path>odczytzapis</path>, aby przypomnieÄ, że ta partycja
-zostaÅa stworzona szczególnie po to, aby przechowywaÄ czÄsto modyfikowane
-pliki. Montujemy partycjÄ wpisujÄ
c:
+I chose the name <path>rwstorage</path> to remind us that this particular
+partition is going to be specifically used to house files that are read from
+and written to frequently. To mount the partition, type:
</p>
-<pre caption="Montowanie partycji">
-# <i>mount /dev/??? /mnt/odczytzapis</i>
+<pre caption="Mounting the partition">
+# <i>mount /dev/??? /mnt/rwstorage</i>
</pre>
</body>
@@ -130,17 +126,17 @@
</chapter>
<chapter>
--
[email protected] mailing list