From: Michael Shigorin <mike@osdn.org.ua>
To: community@altlinux.ru
Subject: [Comm] Re: restore
Date: Mon, 26 Sep 2005 21:24:14 +0300
Message-ID: <20050926182414.GG12476@osdn.org.ua> (raw)
In-Reply-To: <200509261635.20645.az@zolochevskie.net>
On Mon, Sep 26, 2005 at 04:35:19PM +0300, Artem Zolochevskiy wrote:
> т.е записать успели немного. а вот gpart видит только новые разделы
Ох... там не совсем "пуленепробиваемые" -- несколько
оптимизированные под небесконечное время на руках параметры
по умолчанию.
Вот что нагрепалось из записок:
restore/possible-2.txt:home:~/restore> sudo gpart -k 800000 -w xfs,1.5 -l gpart-hdc-2.log /dev/hdc
restore/possible-3.txt~:home:~/restore> sudo gpart -k 256 -w xfs,1.5 -l gpart-hdc-3.log /dev/hdc
restore/possible-3.txt:home:~/restore> sudo gpart -k 256 -w xfs,1.5 -l gpart-hdc-3.log /dev/hdc
restore/possible-4.txt:home:~/restore> sudo gpart -k 128 -n s -w xfs,1.5 -l gpart-hdc-4.log /dev/hdc
(это были логи нескольких забегов; могу прислать лично,
если чем-то поможет)
> а вот то, что видит gpart
> gpart /dev/hdg
> Begin scan...
> Possible partition(DOS FAT), size(6934mb), offset(0mb)
> Possible partition(Linux swap), size(125mb), offset(6934mb)
> Possible partition(Linux ext2), size(12017mb), offset(7059mb)
Это как сейчас? А хоть примерно помните, как было?
(у меня на одном из разделов была запасная копия MBR файликом)
> /dev/hdg1 * 1 884 7100698+ b W95 FAT32
> /dev/hdg2 885 900 128520 82 Linux swap / Solaris
> /dev/hdg3 901 2432 12305790 83 Linux
Да, похоже на текущее.
> Далее знаний не хватает, что из этого можно высосать.
Из этого -- скорее ничего.
Постарайтесь перед измывательствами сделать побайтовую копию
диска на такой же или в файл образа на большем. Сильно помогает
от дрожания рук и нервов на ровном месте.
Дальше _внимательно_, не спеша прочитайте man gpart от корки
до корки. Там в конце есть внятные примеры, только вот лучше
их понимать, прочитав всё остальное, чем тыкаться.
Он при обнаружении суперблока экономит время, прыгая через
пространство, которое там обозначено как размеченное данной ФС.
Соответственно сканирование надо начинать чуточку после начала ФС.
И так для каждого раздела.
Держитесь, не расстраивайтесь и если надо вытащить -- _достаньте_
диск, на который можно слить полный образ. Отдельно можно
выкопировать на всякий конкретно MBR:
dd if=/dev/hdc of=~/hdc.mbr bs=512 count=1
(2 community: да, bs и так по умолчанию 512, но в таких случаях
всегда лучше привычка сказать явно, чем напороться на съехавшие
дефолты...)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
---- visit our conference (Oct 1):
-- http://conference.osdn.org.ua
prev parent reply other threads:[~2005-09-26 18:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-23 20:08 [Comm] restore Artem Zolochevskiy
2005-09-23 20:35 ` "Андрей П. Гуськов"
2005-09-24 8:09 ` Vitaly Lipatov
2005-09-24 9:51 ` Artem Zolochevskiy
2005-09-24 10:30 ` Andrey Rahmatullin
2005-09-24 10:30 ` Andrey Rahmatullin
2005-09-24 10:52 ` Artem Zolochevskiy
2005-09-24 19:22 ` Vitaly Lipatov
2005-09-26 12:38 ` [Comm] restore Michael Shigorin
2005-09-26 13:35 ` Artem Zolochevskiy
2005-09-26 18:24 ` Michael Shigorin [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=20050926182414.GG12476@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=community@altlinux.ru \
--cc=shigorin@gmail.com \
/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