From: Sergei Epiphanov <serpiph@nikiet.ru> To: "Рассылка Sisyphus" <sisyphus@lists.altlinux.org> Subject: [sisyphus] Настройки grub2 Date: Mon, 27 Dec 2010 12:55:07 +0300 Message-ID: <201012271255.08257.serpiph@nikiet.ru> (raw) Добрый день! На выходных решил на домашнем компе сменить 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 В /etc/sysconfig/grub2 есть строка GRUB_AUTODETECT_DEVICES='(hd1)' Проблема: пока стоял lilo, то мне достаточно было выбрать загрузку Windows, чтобы получить желаемое. После установки grub конфигуратор груба не смог найти Windows и мне пришлось руками изменять файл /etc/grub.d/40-custom.conf с указанием нужного мне menuentry с параметрами (согласно info grub): insmod chain drivemap -s (hd0) (hd1) set root=(hd0) chainloader +1 В такой конфигурации приходится выбирать пункт загрузки Windows дважды, чтобы наконец-то получить желаемое (после первого раза почему-то снова идёт загрузка самого grub). Если убрать строку с drivemap, то никакие силы (без правки конфига) не позволяют загрузить Windows. Я уже запутался, прошу помощи: как и что надо прописать, чтобы всё заработало с первого раза, правиьно ли то, что я стал править 40-custom.conf? Кстати, в info grub вместо файла /etc/sysconfig/grub2 упоминается файл /etc/grub/grub (пишу по памяти). -- С уважением, Епифанов Сергей
next reply other threads:[~2010-12-27 9:55 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-27 9:55 Sergei Epiphanov [this message] 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 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=201012271255.08257.serpiph@nikiet.ru \ --to=serpiph@nikiet.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