1 |
On 04/01/10 17:43, Mark Knecht wrote: |
2 |
>On Thu, Apr 1, 2010 at 4:02 PM, Paul Hartman |
3 |
><paul.hartman+gentoo@×××××.com> wrote: |
4 |
>> On Thu, Apr 1, 2010 at 5:48 PM, Joseph <syscon780@×××××.com> wrote: |
5 |
>>> I have two identical HD in the box and want to duplicate sda to sdb; |
6 |
>>> sdb is not even partitioned. |
7 |
>>> I think I could do: |
8 |
>>> dd if=/dev/sda of=/dev/sdb |
9 |
>>> but I need to boot from CD isn't it? |
10 |
>> |
11 |
>> Yes, basically, boot from USB or CD and use ddrescue to clone it, then |
12 |
>> edit your fstab and I think you should be good. |
13 |
>> |
14 |
>> RAID1 would help if a drive physically dies, but if you had any |
15 |
>> filesystem corruption or anything you'd just have an identically |
16 |
>> corrupt copy on the second disk. |
17 |
> |
18 |
>A big part of my struggles over the last few days has been with mdadm |
19 |
>& RAID1. I'm learning that we don't want to send someone down that |
20 |
>path unless he has the right sort of disks. I'm having to deal with |
21 |
>returns and reordering due to this. |
22 |
> |
23 |
>People should be aware of what is really required to do RAID before |
24 |
>they get started so they don't duplicate my trials. I wasn't and I'm |
25 |
>paying for it. (Almost literally if I don't get the drives in the |
26 |
>mail!) ;-) |
27 |
> |
28 |
>Cheers, |
29 |
>Mark |
30 |
|
31 |
So what you are folks saying is to stay away from RAID-1, beside as Paul mention if I get any corruption and/or configuration (due to ebuild) with RAID I'll |
32 |
be screwed anyhow. |
33 |
So my best option is bootable CD and: |
34 |
dd if=/dev/sda of=/dev/sdb |
35 |
|
36 |
But I'm kind of confused as to how to edit the "sdb" second drive. |
37 |
I know I'll have to edit at lest: grub.conf and fstab |
38 |
But how? |
39 |
|
40 |
1.) Both disk are bootable, (have a boot sector) if I disconnect first one sda, I think the second one will be recognize automatically as "sda" isn't it? |
41 |
2.) If configure second drive after copying as "sdb" will it still boot if fist disk is disconnected? |
42 |
|
43 |
-- |
44 |
Joseph |