ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: cornet <cornet@zmail.ru>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: [mdk-re] созранить настроенную систему
Date: Wed Oct  3 10:08:12 2001
Message-ID: <3BBAAB96.359A402@zmail.ru> (raw)
In-Reply-To: <002901c14b76$7dca0420$4b860fd9@innet.yaroslavl.su>

Alexander Blagin wrote:
> 
> Подскажите, как правильно снять установленную и настроенную систему
> на cdrom, переразметить диск, а после вернуть все обратно
> 
> например hda1 (ntfs) и hda8 (fat32) - W2k, hda5  / (ext2) , hda7 /home
> (ext2)
> 
> а если точнее надо пересадить систему с одного раздела на другой
> в моем случае c hda5 на hda1, ну а убивать то дело нехитрое
> 

Если есть свободное место на ext2 или fat, то можно с сидюка
грузануться в rescue режиме и по одному партишену сбрасывать
через:
mount /dev/hda5 /mnt/disk
dd if=/dev/hda1 | bzip2 -9 -c > /mnt/disk/master_hdd1.img.bz2
перезагрузились рабочей системой - сбросили файл на болванку,
обратно другой раздел сбрасываем.
Вполне возможно, что cdrecord и в rescue режиме заведется, тогда
и перегружаться не придется.
Ну в общем в таком духе :-)

Обратная процедура в том же rescue режиме совсем проста -
считываем с сидюка и налету на диск разворачиваем.

Для сброса ext2 лучше юзать cpio
#mount /dev/hda5 /mnt/disk
#mount /dev/hda7 /mnt/disk1
#cd /mnt/disk1
#find ./ | cpio -o | bzip2 -9 -c > /mnt/disk/hda1.cpio.bz2
тогда размер партишена при восстановлении может не совпадать с
исходным, единственное условие - фактический обьем файлов которые
требуется развернуть.

Вполне возможно, что cdrecord умеет брать данные из трубы, а не
только из файла, в таком случае его можно подставить в конец
конвейера после bzip
...bzip2 -9 -c | cdrecord ....
и обойтись без промежуточного хранения образа.

-- 
******** FIRE & STEEL ********



  reply	other threads:[~2001-10-03 10:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-02 23:15 Alexander Blagin
2001-10-03 10:08 ` cornet [this message]
2001-10-03 12:01 ` Michael Shigorin

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=3BBAAB96.359A402@zmail.ru \
    --to=cornet@zmail.ru \
    --cc=mandrake-russian@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