From: "Konstantin S. Uvarin" <khedin@mail.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] bad block на загрузочном секторе usb-драйва
Date: Sat, 22 Mar 2008 09:58:44 +0300
Message-ID: <200803220958.44707.khedin@mail.ru> (raw)
In-Reply-To: <200803220857.49884.khedin@mail.ru>
Приветствую!
> # for i in `seq 1 1000`; do echo -n "$i:"; dd if=/dev/sdc bs=512 count=2
> skip=$i | file -; done 2>/dev/null | grep -v ': data'
Ещё раз перепроверил -- на некоторых дисках требуется увеличить размер "пробы"
до 3 секторов (count=3). Может, даже и 4 не лишне будет. Но выдает все те же
32256.
А, еще можно вместо echo -n $i: написать так: echo -n $((512*$i)):
Итого
# for i in `seq 1 1000`; do echo -n $((512*$i)): ; dd if=/dev/sdb bs=512
count=3 skip=$i | file -; done 2>/dev/null | grep -v ': data'
--
Konstantin S. Uvarin
Команда ICQ решила не отставать от команды ljtalk и снова поломала сервер.
Ура, товарищи!
next prev parent reply other threads:[~2008-03-22 6:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-14 20:46 Andrey Kutuzov
2008-03-15 6:08 ` Konstantin S. Uvarin
2008-03-15 6:25 ` Konstantin S. Uvarin
2008-03-21 19:48 ` Andrey Kutuzov
2008-03-22 5:57 ` Konstantin S. Uvarin
2008-03-22 6:58 ` Konstantin S. Uvarin [this message]
2008-03-29 20:20 ` Andrey Kutuzov
2008-03-15 8:59 ` ABATAPA
2008-03-21 19:52 ` Andrey Kutuzov
2008-03-29 10:19 ` ABATAPA
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=200803220958.44707.khedin@mail.ru \
--to=khedin@mail.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