about summary refs log tree commit diff stats
path: root/tools/storage.html
blob: 97b73b064fd9bac25e98b798bebd776c51c1b881 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html dir="ltr" lang="en">
    <head>
        <meta charset='utf-8'>
        <title>Storage</title>
    </head>
    <body>

        <a href="index.html">Tools Index</a>

        <h1>Storage</h1>

        <h2 id="mv">1. Moving partitions</h2>

        <p>Reboot into single-user mode where services aren't started and networking is offline.<p>
        <pre>
        # init 1
        </pre>

        <p>Copy the data:</p>

        <pre>
        # cp -apx /srv/* /mnt/srv
        </pre>

        <p>Rename directory, for later backup;</p>

        <pre>
        # mv /srv /srv.old
        # mkdir /srv
        </pre>

        <p>Edit the <a href="../conf/etc/fstab">/etc/fstab</a>file:</p>

        <pre>
        # Server Data /srv
        UUID=6fadcb98-e442-4af7-a5f2-1ddb6100a8c4 /srv            ext4    defaults        0       2
        </pre>

        <p>Reboot in normal mode.</p>

        <a href="index.html">Tools Index</a>
        <p>
        This is part of the c9-doc Manual.
        Copyright (C) 2016
        c9 team.
        See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
        for copying conditions.</p>
    </body>
</html>