ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Nikolay A. Fetisov" <naf@naf.net.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Fwd: Образ диска
Date: Fri, 21 Jul 2006 10:34:01 +0400
Message-ID: <20060721103401.78afefa6@naf177.naf.net.ru> (raw)
In-Reply-To: <200607211010.56977.ashen@nsrz.ru>

On Fri, 21 Jul 2006 10:10:56 +0400
Шенцев Алексей Владимирович wrote:

> Есть вопрос ни в доках, ни в faq ответа не нашёл. Суть: надо
> сделать образ диска, если всего, то понятно -
> # dd if/dev/hdX | bzip2 -9 -c > #имя#.img.bz2,
> но мне надо сделать образ не всего диска, а за
> исключением одного каталога. 
> ..

Никак. dd ничего не знает ни о каталогах на дисках, ни даже о файловой
системе. Приведённая команда работает с разделом диска целиком. Или
убирать каталог с раздела перед созданием образа, или использовать
не образ диска, а архив - на уровне файловой системы не включать
каталог, разумеется, можно.


И перед подобным созданием образа было бы неплохо выполнить что-либо
типа 
# dd if=/dev/zero of=/zero-filled-file 
# rm /zero-filled-file

А то в образ попадают блоки, заполненные остатками удалённых файлов.
Если их предварительно заполнить нулями, то размер img.bz2 может
существенно уменьшиться.

-- 
С уважением,	
Николай Фетисов


      reply	other threads:[~2006-07-21  6:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-21  6:10 Шенцев Алексей Владимирович
2006-07-21  6:34 ` Nikolay A. Fetisov [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=20060721103401.78afefa6@naf177.naf.net.ru \
    --to=naf@naf.net.ru \
    --cc=community@lists.altlinux.org \
    /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