copying disk with dd

Для новичков как вообще в Linux, так и в конкретной теме, к которой относится вопрос.

Модератор: Bizdelnick

Igor
Сообщения: 2

copying disk with dd

Сообщение Igor »

The machine has two identical hard drives.
One is the system disk, other one should be one-to-one
backup copy. I don't want to put my system on RAID1, thus
just want to completely mirror the disk - including not only files but the whole partition structure, boot sectors etc.
I supposed dd if=/dev/sda of=/dev/sdb bs=512 count=XXX,
where XXX is the disk size in sectors, would do the job,
but after copying disk this way I:
a) Do see the right partition structure with df (primary partition table copyed)
B) Is able to mount and access files on the first partition /dev/sdb1
c) Is UNABLE to mount any other partitions:
mount: /dev/sdb2 is not a valid block device

What's wrong?
Спасибо сказали:
Аватара пользователя
madskull
Сообщения: 1019
Статус: Экс-металлюга

Re: copying disk with dd

Сообщение madskull »

Изумительно. Текст выглядит очень красиво. Теперь бы узнать, про что он...
Это русскоязычный форум и очень не хочется напрягаться с переводом.

Кроме того, достаточно было эту тему запостить один раз в одной теме.
ArchLinux / IceWM
Спасибо сказали:
Аватара пользователя
Vladislav
Сообщения: 383
ОС: Debian Sid

Re: copying disk with dd

Сообщение Vladislav »

count=XXX, - кол-во блоков входного файла, т.е. этим вы определяете размер копируемого устройства. Не пробывали не указывать этот параметр?
Спасибо сказали: