ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] mkfs.ext2: invalid blocks count
Date: Sun, 30 Nov 2008 23:49:57 +0300
Message-ID: <20081130204957.GF7425@atlas.home> (raw)
In-Reply-To: <91dc8dbf0811301114n24de4046mca8ee44c1951070d@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2592 bytes --]

On Mon, Dec 01, 2008 at 12:14:00AM +0500, Ilis wrote:
> Пробовал разные эксперименты с fdisk cfdisk sfdisk и parted, которые
> давали несколько разные результаты в части C/H/S. Остановился на
> sfdisk.

Для Linux различия в C/H/S не имеют значения, если только не
предполагается загружаться с этого диска (или держать на нём рядом
разделы, с которыми работает Windows <= 98).

> > Или пишите "mkfs -t ext3 -v /dev/hda1", или просто вызывайте mke2fs -j
> > напрямую (заодно посмотрев полный набор опций, доступных в mke2fs).
> >
> 
> Методом перебора дошёл и до этого :)
> 
> [root@altus ~]# mke2fs -j /dev/hda1
> mke2fs 1.40.5 (27-Jan-2008)
> Warning: 256-byte inodes not usable on older systems
> Filesystem label=
> OS type: Linux
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> 5005312 inodes, 20010815 blocks
> 1000540 blocks (5.00%) reserved for the super user
> First data block=0
> Maximum filesystem blocks=0
> 611 block groups
> 32768 blocks per group, 32768 fragments per group
> 8192 inodes per group
> Superblock backups stored on blocks:
>         32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
>         4096000, 7962624, 11239424
> 
> Writing inode tables: done
> Creating journal (32768 blocks): done
> Writing superblocks and filesystem accounting information: done
> 
> This filesystem will be automatically checked every 31 mounts or
> 180 days, whichever comes first.  Use tune2fs -c or -i to override.
> 
> Тут всё правильно получилось?

Ну если "256-byte inodes not usable on older systems" устраивает,
тогда всё правильно.  К старым в этом отношении системам относятся все
ядра Linux 2.4.x, старые версии 2.6.x (до 2.6.10 - хотя там вроде бы
ФС всё-таки монтируется, остаются недоступными расширенные атрибуты,
сохранённые в дополнительной области inode), некоторые версии
загрузчиков, умеющих читать ФС (например, GRUB без соответствующих
патчей - grub-0.97-alt5 вроде бы должен быть исправлен), а также
некоторые средства для доступа к ext2/3 из других ОС (например,
текущая версия ext2fs.sys с http://www.fs-driver.org/; у FreeBSD с
этим вроде бы тоже до сих пор проблемы).

Ещё при желании можно сразу задать метку, которую можно будет потом
использовать для монтирования (она же будет выводиться и при проверке
ФС вместо имени устройства).  Другие параметры ФС обычно настраивать
не требуется, за исключением специальных вариантов использования
(разве что изменить размер области, зарезервированной для root, но это
при необходимости можно сделать и на существующей ФС).

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2008-11-30 20:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-30 16:56 Ilis
2008-11-30 19:01 ` Sergey Vlasov
2008-11-30 19:14   ` Ilis
2008-11-30 20:49     ` Sergey Vlasov [this message]
2008-12-01  3:58       ` Ilis
2008-12-01 11:31         ` Michael Shigorin
2008-12-01 17:01         ` Andrey Rahmatullin
2008-12-01 17:32           ` Ilis
2008-12-01 17:37             ` Andrey Rahmatullin

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=20081130204957.GF7425@atlas.home \
    --to=vsu@altlinux.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