1 |
Florian Philipp wrote: |
2 |
> Arnau Bria schrieb: |
3 |
>> Hi, |
4 |
>> |
5 |
>> My system runs on several ext3 partitions. Last times I restart it, it |
6 |
>> has fs errors, so I have to fsck it. |
7 |
>> Now, I have a new disk and I want to set a RAID1, but first, I'm |
8 |
>> wondering what to do to save my fs consistency. So, I want to copy data |
9 |
>> from old disk to new disk, but I'm not sure if I must do a cp -a or a |
10 |
>> dd. I mean, if I do a cp -a my new disk will have a new journaling, and |
11 |
>> if I do a dd, new disk will have same. Am I right? What do you |
12 |
>> recommend? |
13 |
>> |
14 |
>> And, following with this, any guide to configure a RAID1 with a system |
15 |
>> already installed? |
16 |
>> TIA, |
17 |
>> Arnau |
18 |
> |
19 |
> Just a small note: When you are using cp -a, keep in mind that |
20 |
> something like cp -a /home/user/* doesn't fetch files and folders that |
21 |
> are hidden (for example .vimrc). I've lost all my settings that way |
22 |
> when I migrated my /home :( |
23 |
|
24 |
|
25 |
That's odd, mine does. That's what I use to do back-ups on my system |
26 |
and it get all the .* files and directories. I have my back-up mounted |
27 |
at /mnt/gentoo and this is a list of my root user directory: |
28 |
|
29 |
root@smoker / # ls -al /mnt/gentoo/root/ |
30 |
total 1128 |
31 |
drwx------ 29 root root 4096 2007-09-29 00:54 . |
32 |
drwxr-xr-x 15 root root 4096 2007-09-29 01:26 .. |
33 |
-rw------- 1 root root 11467 2007-09-27 15:15 .bash_history |
34 |
-rw-r--r-- 1 root root 11 2006-10-01 21:39 .bash_login |
35 |
-rw-r--r-- 1 root root 11 2006-10-01 21:39 .bash_logout |
36 |
drwx------ 2 root root 4096 2007-05-03 07:21 .ccache |
37 |
-rwxr-xr-x 1 root root 4487 2004-05-10 07:37 CFLAGS-script |
38 |
-rw-r--r-- 1 root root 40304 2007-01-08 04:21 config |
39 |
drwx------ 3 root root 4096 2007-03-18 06:11 .config |
40 |
-rw-r--r-- 1 root root 43453 2007-06-25 23:09 config-2-6-20-r8 |
41 |
-rwxr-xr-x 1 root root 1045 2006-11-18 03:07 cruft.removal |
42 |
-rw-r--r-- 1 root root 279 2005-12-20 13:57 dalek.revoke |
43 |
-rw-r--r-- 1 root root 1360 2007-08-29 06:38 Data.kdar |
44 |
-rw-r--r-- 1 root root 55 2007-09-27 17:47 .DCOPserver_smoker__0 |
45 |
lrwxrwxrwx 1 root root 27 2007-09-29 00:54 .DCOPserver_smoker_:0 -> |
46 |
/root/.DCOPserver_smoker__0 |
47 |
-rw-r--r-- 1 root root 32520 2007-04-10 03:16 dead.letter |
48 |
drwx------ 2 root root 4096 2007-09-09 04:50 Desktop |
49 |
drwxr-xr-x 3 root root 4096 2007-01-19 04:56 .distcc |
50 |
-rwxr-xr-x 1 root root 10213 2006-09-04 04:03 elog |
51 |
-rwxr-xr-x 1 root root 3011 2006-10-30 03:25 elog-list |
52 |
-rw-r--r-- 1 root root 877 2006-09-10 15:38 emerge-script |
53 |
drwxr-xr-x 2 500 500 4096 2005-07-18 15:59 enotice-0.2.9.1_alpha |
54 |
-rwxr-xr-x 1 root root 25347 2006-04-20 22:46 etc-portclean |
55 |
-rwxr-xr-x 1 root root 768 2006-10-20 01:52 fahback |
56 |
-rwxr-xr-x 1 root root 153361 2006-10-18 01:43 finstall4.9 |
57 |
drwxr-xr-x 3 root root 4096 2006-10-20 01:52 foldingathome |
58 |
-rw-r--r-- 1 root root 854 2007-01-29 17:41 .fonts.cache-1 |
59 |
-rwxr-xr-x 1 root root 1256 2006-08-22 00:12 fragck.pl |
60 |
drwx------ 2 root root 4096 2007-08-07 13:45 .gconf |
61 |
drwx------ 2 root root 4096 2007-08-07 13:59 .gconfd |
62 |
-rwxr-xr-x 1 root root 8240 2006-09-05 18:50 genscript.sh |
63 |
drwxr-xr-x 21 root root 4096 2007-09-18 22:41 .gimp-2.2 |
64 |
drwx------ 3 root root 4096 2006-12-09 14:17 .gnome2 |
65 |
drwx------ 2 root root 4096 2006-12-09 14:17 .gnome2_private |
66 |
drwx------ 2 root root 4096 2006-12-11 22:51 .gphoto |
67 |
drwxr-xr-x 2 root root 4096 2006-11-29 00:49 .gstreamer-0.8 |
68 |
-rw-r--r-- 1 root root 67 2007-09-23 21:34 .hplip.conf |
69 |
-rw-r--r-- 1 root root 544 2007-07-31 06:58 .htoprc |
70 |
-rw------- 1 root root 2284 2007-09-27 17:47 .ICEauthority |
71 |
drwx------ 3 root root 4096 2006-11-27 00:03 .kde |
72 |
-rw-r--r-- 1 root root 0 2006-08-03 09:23 .keep |
73 |
-rw------- 1 root root 35 2007-07-30 04:05 .lesshst |
74 |
drwx------ 3 root root 4096 2006-09-14 04:03 .local |
75 |
drwx------ 3 root root 4096 2007-09-18 22:15 .macromedia |
76 |
drwxr-xr-x 3 root root 4096 2006-09-14 04:04 .mcop |
77 |
-rw------- 1 root root 31 2007-09-28 04:16 .mcoprc |
78 |
-rw-r--r-- 1 root root 35 2007-06-03 00:18 minicom.log |
79 |
drwx------ 3 root root 4096 2006-12-17 02:37 .mozilla |
80 |
drwxr-xr-x 2 root root 4096 2007-06-13 13:15 .mplayer |
81 |
drwx------ 3 root root 4096 2007-08-18 17:48 .ooo-2.0 |
82 |
-rwxr-xr-x 1 root root 23540 2004-05-10 08:20 prune-script |
83 |
drwxr-xr-x 2 root root 4096 2006-09-13 22:51 .qt |
84 |
-rw------- 1 root root 14491 2007-09-18 22:41 .recently-used |
85 |
-rwxr-xr-x 1 root root 31133 2007-05-02 13:18 recompile-remaining-packages |
86 |
drwxr-xr-x 2 root root 4096 2007-05-12 23:00 rep4.py |
87 |
-rw-r--r-- 1 root root 1232 2007-09-26 02:06 .revdep-rebuild.0_env |
88 |
-rw-r--r-- 1 root root 377327 2007-09-26 02:06 .revdep-rebuild.1_files |
89 |
-rw-r--r-- 1 root root 18877 2007-09-26 02:06 .revdep-rebuild.2_ldpath |
90 |
-rw-r--r-- 1 root root 105 2007-09-26 02:10 .revdep-rebuild.3_rebuild |
91 |
-rw-r--r-- 1 root root 20 2007-09-26 02:10 .revdep-rebuild.4_ebuilds |
92 |
-rw-r--r-- 1 root root 2 2007-09-26 02:10 .revdep-rebuild.5a_status |
93 |
-rw-r--r-- 1 root root 2 2007-09-26 02:10 .revdep-rebuild.5b_status |
94 |
-rw-r--r-- 1 root root 20 2007-09-26 02:10 .revdep-rebuild.5_order |
95 |
-rw-r--r-- 1 root root 2 2007-09-26 02:10 .revdep-rebuild.6_status |
96 |
-rw-r--r-- 1 root root 157 2006-12-13 18:09 .screenrc |
97 |
-rw-r--r-- 1 root root 2 2006-12-13 18:09 .screenrc~ |
98 |
drwxr-xr-x 3 root root 4096 2006-10-02 20:13 .scribus |
99 |
-rwxr-xr-x 1 root root 39712 2004-08-15 08:05 server.save |
100 |
drwx------ 2 root root 4096 2007-06-26 00:45 .ssh |
101 |
drwx------ 3 root root 4096 2007-09-29 00:53 .thumbnails |
102 |
-rwxr-xr-x 1 root root 506 2006-05-17 19:39 USE-vaild-script |
103 |
-rw-r--r-- 1 root root 1329 2007-08-29 05:25 Wallpapers.kdar |
104 |
drwxr-xr-x 2 root root 4096 2006-12-22 02:53 .wireshark |
105 |
-rw------- 1 root root 51 2007-06-26 23:16 .xauthClejoT |
106 |
-rw------- 1 root root 51 2007-06-26 16:43 .xauthHe7jsL |
107 |
-rw------- 1 root root 51 2007-04-10 01:08 .xauthhYnCuf |
108 |
-rw------- 1 root root 51 2006-12-27 17:19 .xauthiFJTYh |
109 |
-rw------- 1 root root 51 2007-09-06 03:32 .xauthIQEJV1 |
110 |
-rw------- 1 root root 51 2007-09-27 19:04 .xauthiXectC |
111 |
-rw------- 1 root root 51 2007-09-28 15:13 .xauthmpYx4r |
112 |
-rw------- 1 root root 0 2006-09-13 10:10 .Xauthority |
113 |
-rw------- 1 root root 51 2007-03-04 13:15 .xauthpdEPUu |
114 |
-rw------- 1 root root 51 2006-12-27 17:19 .xauthQ1QG5o |
115 |
-rw------- 1 root root 51 2007-03-18 23:21 .xauthvUHiuD |
116 |
-rw------- 1 root root 51 2007-09-27 17:47 .xauthWrAMse |
117 |
-rw------- 1 root root 51 2007-03-02 11:02 .xauthyTPJ6s |
118 |
drwxr-xr-x 2 root root 4096 2007-07-17 23:44 .xine |
119 |
root@smoker / # |
120 |
|
121 |
Ideas on why mine does and yours doesn't?? |
122 |
|
123 |
Dale |
124 |
|
125 |
:-) :-) |
126 |
-- |
127 |
gentoo-user@g.o mailing list |