ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Неправильная таблица разделов
Date: Fri, 12 Sep 2008 21:30:36 +0400
Message-ID: <20080912173036.GA4997@atlas.home> (raw)
In-Reply-To: <48CA9305.3040306@rambler.ru>

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

On Fri, Sep 12, 2008 at 10:04:21PM +0600, Александр Леутин wrote:
> [root@el ~]# lilo
> Added ALTLinux
> Added failsafe
> Warning: Device 0x0800: Inconsistent partition table, 2nd entry
>   CHS address in PT:  1023:254:63  -->  LBA (16450559)
>   LBA address in PT:  4212732  -->  CHS (262:58:49)
> Fatal: Either FIX-TABLE or IGNORE-TABLE must be specified
> If not sure, first try IGNORE-TABLE (-P ignore)
> [root@el ~]# lilo -P fix
> Added ALTLinux
> Added failsafe
> Warning: Device 0x0800: Inconsistent partition table, 2nd entry
>   CHS address in PT:  1023:254:63  -->  LBA (16450559)
>   LBA address in PT:  4212732  -->  CHS (262:58:49)
> Writing modified partition table to device 0x0800
> Added Vista
> Added 2618-std-smp-12
> Added 2624-std-def-8 *
> Added 2626-wks-smp-3
> Added 2625-std-def-9
> One warning was issued.

Вообще-то после lilo -P fix эта ошибка должна была исчезнуть - как
минимум, немедленный последующий вызов lilo после этого должен
отработать молча.  Если ошибка вновь появляется после перезагрузки,
вероятно, что-то ещё, кроме lilo, меняет MBR.

> [root@el ~]# fdisk -l
> 
> Disk /dev/sda: 120.0 GB, 120034123776 bytes
> 255 heads, 63 sectors/track, 14593 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0xe10782aa
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1               1         262     2098176   27  Unknown

Что это за раздел?  Используется какой-то ещё менеджер загрузки,
помимо lilo?

> /dev/sda2   *         263        2812    20481024    7  HPFS/NTFS

Возможно, проблему вызывает то, что этот раздел начинается до 1023
цилиндра, а кончается после него.  Обычно для значений за пределами
1023 цилиндра в поля CHS в таблице разделов пишется 1023:254:63
(максимально возможное значение); возможно, какая-то программа
считает, что такое значение нужно писать, если раздел даже частично
залезает за пределы 1023 цилиндра (поскольку в этом случае он не
доступен полностью при использовании CHS).

(Хм, хотя у себя в MBR наблюдаю в полях CHS просто cyl % 1024; а вот в
расширенных разделах действительно стоит C=1023...)

> /dev/sda3            2813        3722     7309575   83  Linux
> /dev/sda4            3723       14593    87321307+   f  W95 Ext'd (LBA)
> /dev/sda5            3723        4375     5245191   82  Linux swap / 
> Solaris
> /dev/sda6            4376       14593    82076053+   b  W95 FAT32
> [root@el ~]#
> 
> Разделы на жестком диске не пересекаются, ОС грузятся нормально. 
> Подскажите, пожалуйста, как исправить таблицу разделов, чтобы lilo
> не ругался?

Если lilo -P fix на самом деле ничего не исправляет, можно попробовать
просто сохранить таблицу разделов в fdisk /dev/sda, ничего там не
меняя.

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

  reply	other threads:[~2008-09-12 17:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-12 16:04 Александр Леутин
2008-09-12 17:30 ` Sergey Vlasov [this message]
2008-09-13  4:10   ` Александр Леутин
2008-09-29 11:12     ` Александр Леутин
2008-09-29 20:46       ` 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=20080912173036.GA4997@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