ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Александр Леутин" <leutin-lists@rambler.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Неправильная таблица разделов
Date: Sat, 13 Sep 2008 10:10:55 +0600
Message-ID: <48CB3D4F.2000703@rambler.ru> (raw)
In-Reply-To: <20080912173036.GA4997@atlas.home>

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

Sergey Vlasov пишет:
>> [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 *
>> One warning was issued.
> 
> Вообще-то после lilo -P fix эта ошибка должна была исчезнуть - как
> минимум, немедленный последующий вызов lilo после этого должен
> отработать молча.  Если ошибка вновь появляется после перезагрузки,
> вероятно, что-то ещё, кроме lilo, меняет MBR.
Вызов lilo после lilo -P fix точно так же ругается. Ошибка появляется после
перезагрузки. Что еще может менять MBR?
Раньше такого не было (когда появилось -- не заметил).
Речь идет про нотубук Fujitsu-Siemens V3405.
>>    Device Boot      Start         End      Blocks   Id  System
>> /dev/sda1               1         262     2098176   27  Unknown
> 
> Что это за раздел?  Используется какой-то ещё менеджер загрузки,
> помимо lilo?
Это recovery-раздел от производителя ноутбука. Используется загрузчик 
vista, но он вызывается из lilo (последний раз вызывался месяца 2 назад).
> 
>> /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, ничего там не
> меняя.
У меня после lilo -P fix ругань остается. Попробовал сохранить таблицу в 
fdisk:
el ~ $sudo fdisk /dev/sda

The number of cylinders for this disk is set to 14593.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
    (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or 
resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
el ~ $

Для надежности перезагрузился и попробовал lilo; lilo -P fix; снова 
сохранить
таблицу разделов fdisk-ом. Ситуация не меняется -- ругаются и lilo, и 
fdisk :(

На всякий случай прилагаю свой lilo.conf

-- 
Александр Леутин
Registered Linux user #295797
Жизнь -- смертельно интересная штука!

[-- Attachment #2: lilo.conf --]
[-- Type: text/plain, Size: 1126 bytes --]

#vga="0x314"
vga="0x360"
map="/boot/map"
lba32
prompt
timeout="100"
install="menu"
#default="ALTLinux"
default="2624-std-def-8"
#message="/boot/splash/desktop/message"
message="/boot/splash/message"
append="panic=30 splash=silent"
#boot="UUID=b86f01d0-aba3-448b-828a-5d2631e10b24"
boot=/dev/sda

image="/boot/vmlinuz"
	label="ALTLinux"
	initrd="/boot/initrd.img"
#	root="UUID=b86f01d0-aba3-448b-828a-5d2631e10b24"
	root=/dev/sda3
	addappend="acpi_sleep=s3_bios resume=/dev/sda5"
	read-only

image="/boot/vmlinuz"
	label="failsafe"
	initrd="/boot/initrd.img"
#	root="UUID=b86f01d0-aba3-448b-828a-5d2631e10b24"
	root=/dev/sda3
	addappend="failsafe"
	vga="normal"
	read-only

other=/dev/sda2
	label="Vista"
	table=/dev/sda

image="/boot/vmlinuz-2.6.18-std-smp-alt12"
	initrd="/boot/initrd-2.6.18-std-smp-alt12.img"
	label="2618-std-smp-12"
	addappend="acpi_sleep=s3_bios resume=/dev/sda5"
	root="/dev/sda3"
	read-only
	optional
image="/boot/vmlinuz-2.6.24-std-def-alt8"
	initrd="/boot/initrd-2.6.24-std-def-alt8.img"
	label="2624-std-def-8"
	addappend="acpi_sleep=s3_bios resume=/dev/sda5"
	root="/dev/sda3"
	read-only
	optional

  reply	other threads:[~2008-09-13  4:10 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
2008-09-13  4:10   ` Александр Леутин [this message]
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=48CB3D4F.2000703@rambler.ru \
    --to=leutin-lists@rambler.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