From: Sergey Vlasov <vsu@altlinux.ru> To: community@altlinux.ru Subject: [Comm] Re: Что с моим /dev/hdc? Date: Tue, 10 Jun 2003 15:01:51 +0400 Message-ID: <20030610150151.1bcc7393.vsu@altlinux.ru> (raw) In-Reply-To: <3EE5627C.4070804@rmts.donpac.ru> On Tue, 10 Jun 2003 08:45:48 +0400 Прокопьев Евгений <john@rmts.donpac.ru> wrote: > Кто-нибудь может объяснить такой феномен: > > #cfdisk /dev/hdc > FATAL ERROR: Bad primary partition 0: Partition ends after end-of-disk > Press any key to exit cfdisk > > # fdisk /dev/hdc > The number of cylinders for this disk is set to 7476. > 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): p > > Disk /dev/hdc: 61.4 GB, 61492838400 bytes > 255 heads, 63 sectors/track, 7476 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Device Boot Start End Blocks Id System > /dev/hdc1 * 1 7477 60051568+ 83 Linux > > Command (m for help): При этом 7476.0 * 255 * 63 / 2 = 60050970.0, что действительно меньше, чем размер раздела в блоках. В то же время ((60051568.0*2 + 1)/63 + 1)/16 = 119150.0 - т.е. размер раздела ('+' в выводе fdisk обозначает лишний сектор) соответствует геометрии 119150/16/63, а не используемой 7476/255/63. > Собственно, так было после установки системы, раздел /dev/hdc1 был > создан в fdisk, а на нем была создана XFS. На разделе лежит немаленькая > БД и вроде нормально себя чувствует, хотя пока еще работает в отладочном > режиме. Вероятно, диск был совсем пустой, поэтому ядро не смогло определить правильные параметры CHS (данные BIOS читаются только для /dev/hda и /dev/hdb, для остальных IDE-устройств берутся без учёта преобразования в BIOS, а потом корректируется по данным таблицы разделов). Поэтому fdisk и создал раздел такого размера. Откуда потом взялась геометрия /255/63 - не знаю; возможно, таблицу разделов чем-то "подправили" (например, если диск при этом стоял на hda или hdb). Посмотрите в вывод hdparm -i /dev/hdc и сообщения ядра при загрузке (сначала распознаётся геометрия /16/63, а позже при Partition check корректируется, при этом пишется [PTBL]). > Кстати, абсолютно аналогично размечен /dev/hdc, но его видит и fdisk и > cfdisk. Не понял - и тут, и там hdc. Так где у вас диски? И в чём разница в выводе fdisk -l на работающем и неработающем? > И еще gkrellm отказывается рисовать графики по /dev/hdc, что тоже > настораживает. > > Какие проблемы я могу получить в будущем? Ядро использует LBA, так что вроде бы в Linux проблем возникнуть не должно, но кто его знает... Попробуйте запустить cfdisk -h 16 - если так запустится, вероятно, именно эта геометрия правильная для такой разбивки. Можно попробовать запустить fdisk -H 16 /dev/hdc и записать таблицу разделов - есть вероятность, что после этого распознавание геометрии встанет на место. А вот чтобы исправить на /255/63, придётся всё сносить и переразбивать, предвариельно убедившись, что fdisk использует правильную CHS-геометрию.
next prev parent reply other threads:[~2003-06-10 11:01 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-06-10 4:45 [Comm] " Прокопьев Евгений 2003-06-10 11:01 ` Sergey Vlasov [this message] 2003-06-10 12:14 ` [Comm] " Прокопьев Евгений 2003-06-10 13:16 ` Sergey Vlasov
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=20030610150151.1bcc7393.vsu@altlinux.ru \ --to=vsu@altlinux.ru \ --cc=community@altlinux.ru \ /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