From: Sergey Vlasov <vsu@altlinux.ru> To: sisyphus@lists.altlinux.org Subject: Re: [sisyphus] Настройки grub2 Date: Mon, 27 Dec 2010 18:14:52 +0300 Message-ID: <20101227151452.GA30803@newmaster.mivlgu.local> (raw) In-Reply-To: <201012271255.08257.serpiph@nikiet.ru> [-- Attachment #1: Type: text/plain, Size: 1941 bytes --] On Mon, Dec 27, 2010 at 12:55:07PM +0300, Sergei Epiphanov wrote: > На выходных решил на домашнем компе сменить lilo на grub2. Установил grub2, > снес lilo. Конфигурация железа такова: > > SATA0 - винт с Windows, даже загрузчик в MBR там от Windows > SATA1- винт с Linux, этот же винт стоит в BIOS как винт, с которго загружать > систему > > В lilo.conf строки про Windows были > other=/dev/hda > master-boot > chainloader +1 > > Сам grub (точнее, его программа grub-devicemap) прописывает устройства: > (hd0) - винт с Windows > (hd1) - винт с Linux В данном случае файл /boot/grub/device.map придётся исправлять вручную, поменяв местами (hd0) и (hd1). Дело в том, что grub-mkdevicemap не может определить, что в BIOS выставлен нестандартный порядок загрузки, и предполагает, что номера дисков BIOS назначаются в том же порядке, что и устройства /dev/sdX в Linux, однако в данной конфигурации это не так - устройство, выбранное в BIOS для загрузки, получает в BIOS номер 0x80, обозначаемый в GRUB как (hd0), но на порядок обнаружения дисков ядром Linux эта настройка BIOS никак не влияет. Хотя, если делать привязку к UUID разделов, а не к номерам дисков, исправлять device.map не обязательно - раздел с нужным UUID будет найден на любом диске, доступном для BIOS. > После установки grub конфигуратор груба не смог найти > Windows и мне пришлось руками изменять файл /etc/grub.d/40-custom.conf с > указанием нужного мне menuentry с параметрами (согласно info grub): > > insmod chain > drivemap -s (hd0) (hd1) > set root=(hd0) > chainloader +1 Как уже было замечено, нужно установить пакет os-prober - генерируемая им запись в меню использует UUID для поиска раздела с Windows, поэтому её работоспособность не зависит от порядка обнаружения дисков в BIOS. Правда, в этом случае управление будет передаваться непосредственно загрузочному сектору раздела Windows, без использования MBR. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2010-12-27 15:14 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-27 9:55 Sergei Epiphanov 2010-12-27 10:44 ` Vitaly Kuznetsov 2010-12-27 11:31 ` Sergei Epiphanov 2010-12-27 11:36 ` Vitaly Kuznetsov 2010-12-27 11:38 ` Игорь Андросов 2010-12-27 11:40 ` Vitaly Kuznetsov 2010-12-27 12:36 ` Sergei Epiphanov 2010-12-27 19:33 ` Sergey Vlasov 2010-12-28 11:09 ` Sergei Epiphanov 2010-12-27 11:43 ` Roman Lesnichenko 2010-12-27 12:38 ` Sergei Epiphanov 2010-12-27 15:14 ` Sergey Vlasov [this message] 2010-12-28 11:13 ` Sergei Epiphanov 2010-12-28 12:14 ` [sisyphus] [JT] " Ildar Mulyukov 2010-12-28 11:45 ` Sergei Epiphanov
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=20101227151452.GA30803@newmaster.mivlgu.local \ --to=vsu@altlinux.ru \ --cc=sisyphus@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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git