ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Пирогов Алексей" <ipalex@ferplast.com.ua>
To: community@altlinux.ru
Subject: Re: [Comm] Два винта
Date: Fri, 22 Aug 2003 17:56:42 +0300
Message-ID: <200308221756.42439.ipalex@ferplast.com.ua> (raw)
In-Reply-To: <200308221602.36855.dikov@imbg.org.ua>

В сообщении от 22 Август 2003 16:02 Dmitry Kovalsky написал(a):
> Есть два винта
> ...
> Необходимо перенсести содержимое одного винта на другой и наоборот
>
> Возникает вопрос как копировать винду целиком и как потом устанавливать
> загрузчик на Винте1 где будет стоять тока винда???
любые разделы можно копировать dd (fat, ntfs, ext*, reiserfs, ...etc.)
$ dd if=/dev/hda1 of=/dev/hdc1

копирование загрузчика и таблицы разделов тоже можно выполнить командой dd
описание структуры MBR можно найти любым поисковиком,
например в http://sand.vov.ru/terms.htm она неплохо описана 

пример копирования всего MBR:
$ dd if=/dev/hda of=/dev/hdc bs=512 count=1

пример копирования только таблицы разделов:
$ dd if=/dev/hda of=/dev/hdc bs=1 skip=445 seek=445 count=64

пример копирования только загрузчика:
# сам загрузчик
$ dd if=/dev/hda of=/dev/hdc bs=1 count=445
# сигнатура 55AA, обозначающая загрузочный сектор
$ dd if=/dev/hda of=/dev/hdc bs=1 skip=510 seek=510 count=2

можно вообще копировать все устройство целиком (с загрузчиком, таблицей и 
всеми разделами), разумеется целевое устройство должно быть не меньше
$ dd if=/dev/hda of=/dev/hdc

после копирования таблицы разделов или всего устройства, ядру нужно перечитать 
таблицу разделов:
$ sfdisk -R /dev/hdc
при этом устройство должно быть не занято - для загрузочного устройства не 
прокатит, придется перегружаться

Причем dd выполняет копирование быстрее, чем, например PowerQuest DriveImage

З.Ы. если нужно менять размеры партиций - см. parted - не очень наглядно, но 
Линуховые партиции двигает эффективно. Но я предпочитаю копировать Линух 
просто файлами - это заметно быстрее, чем копировать образ.

-- 
Наилучшие пожелания,                      Registered         .--.
Пирогов Алексей                       Linux User #293162    |@_@ |
mailto:ipalex@ukr.net                                       |!_/ |
mailto:ipalex@ferplast.com.ua                              //   \ \
(AlekseyPirogov@ferplast.com.ua)                          (|     | )
UIN:172368093                                            /'\_   _/`\
                                       Powered by Linux  \___)=(___/

      parent reply	other threads:[~2003-08-22 14:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-22 13:02 Dmitry Kovalsky
2003-08-22 13:45 ` Maxim Ivanov
2003-08-22 15:18   ` Dmitry Kovalsky
2003-08-22 14:22 ` Alexandr Bezuglov
2003-08-25  4:45   ` Re[2]: [Comm] Äâà âèíòà Sergey Krivulja
2003-08-22 14:56 ` Пирогов Алексей [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200308221756.42439.ipalex@ferplast.com.ua \
    --to=ipalex@ferplast.com.ua \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git