Redhat 6.4 - grub.conf entry to boot Windows?
Dear Experts,
I have a server and three hard disks.
One disk has Redhat 5.5 on it.
One disk has Windows 7.
The third has Redhat 6.4.
I've been trying to configure grub to boot any one of the three I choose.
To begin with, all disks work perfectly fine stand alone.
If you disconnect all cables except for the one disk, that one disk will boot perfectly fine.
Redhat 5.5 grub.conf:
default=0
timeout=9
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Redhat 5.5 Enterprise Linux-base (2.6.18-194.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-194.el5.img
title Windows 7
rootnoverify (hd1,0)
makeactive
chainloader +1
boot
Redhat 5.5 boots Windows 7 perfectly fine.
What was really nice about this method, is that I no longer have to modify the Windows MBR, and the two disks are no longer married to each other.
Then I installed Redhat 6.4. But it's been a struggle since then.
Redhat 6.4 grub.conf:
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Redhat 6.4 Kernel (2.6.32-358.el6.x86_64)
root (hd0,1)
kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=UUID=d624839b-32e7-4e8a-8454-5a837cecd947 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet numa=off
initrd /initramfs-2.6.32-358.el6.x86_64.img
title Redhat 5.5 Enterprise Linux-base (2.6.18-194.el5)
root (hd1,0)
kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-194.el5.img
title Windows 7
rootnoverify (hd2,0)
makeactive
chainloader +1
boot
hd* is changed to reflect the new boot order in the BIOS.
Using this grub.conf on Redhat 6.4,
Redhat 6.4 and Redhat 5.5 will boot perfectly fine.
However, when attempting to boot Windows 7,
the process begins to start windows.
However, this error then occurs:
File: \boot\bcd
Status: 0x0000001
Info: An error occurred while attempting to read the boot configuration data.
There is also a message about using a boot repair disk.
However, this is a bogus message.
If I disconnect all other drives, Windows still boots perfectly fine.
More info:
rpm -qa | grep -i "grub"
Redhat 5.5:
grub-0.97-13.5
Redhat 6.4:
grub-0.97-81.0.1.el6.x86_64
For most of last night and today,
I've been googling, and trying grub shell commands.
To no avail.
Any ideas on how I can get Redhat 6.4 to boot Windows?
Thanks a lot!
Based on my experience which this topic, issues are often due to mixing GPT and MBR partitioned disks and boot loaders, which are incompatible technologies. Your computer might be able to choose BIOS or uEFI for booting, but it to my knowledge no system can dynamically choose between them unless you install a very special bootloader.
I think dual boot is obsolete and generally provides no advantage over virtualization, such as Oracle VM VirtualBox. Most modern systems support type 2 hardware virtualization and are adequately equipped. Perhaps that is something to consider, which can add value to your computing experience.
Similar Messages
-
Dual Booting Windows and Solaris
Hi
how do i dual boot windows and solaris
Do i install windows first and then solaris or do it the other way around..?
how do i make sure that Windows and Solaris appear in my boot options..?
Is their a guide on doing this...?
Thanks
LiamHey I did a quick google search for you. So I havent tried this method myself but it sounds reasonable.
The text below is from the following link:
http://www.hccfl.edu/pollock/AUnix1/DualBoot.htm
"Solaris boot loader
Partition the drive to leave at least 2GB of space available for Solaris;
more drive space is desirable.
As with Linux, install Windows first then Solaris.
Do not use the Installation CD but boot and install
from Software CD 1.
If you accept the default partitioning scheme which
the installer provides you will soon run out of space in
your / and /usr partitions since only enough space is
allocated to install the system.
All extra space is allocated to /export/home.
A typical installation on a 4.5GB partition might look
something like this:
Filesystem Size Used Avail Use% Mounted on
/dev/dsk/c0d0s0 900M 536M 310M 64% /
/dev/dsk/c0d0s1 334M 109M 192M 36% /var
swap 671M 8.0k 671M 1% /var/run
swap 671M 8.0k 671M 1% /tmp
/dev/dsk/c0d0s5 845M 222M 565M 29% /opt
# (FAT32 partition):
/dev/dsk/c0d0p0:1 5.0G 3.3G 1.6G 66% /c
/dev/dsk/c0d0s7 1.1G 92M 954M 9% /export/home
/dev/dsk/c0d0s4 752M 225M 474M 33% /usr/local
The Solaris boot selector enables you to choose either
Solaris or Windows with Solaris as the default.
(I prefer grub or lilo!)
To mount FAT under Solaris:
# mount -F pcfs /dev/dsk/c0d0p0:c /dos (or �:1�?)
And the vfstab file:
/dev/dsk/c0d0p0:c - /dos pcfs - yes -
To create a GRUB boot floppy, follow these steps:
$ mkfs -t ext2 /dev/fd0
$ mount /dev/fd0 /mnt/fd0
$ mkdir /mnt/fd0/boot /mnt/fd0/boot/grub
$ cp /boot/grub/stage[12] /boot/grub/grub.conf \
> /mnt/fd0/boot/grub
$ /sbin/grub --batch <
Hope this helps!
/Oscar -
Unable to boot Windows XP in a dual boot setup
I have Windows XP installed on my desktop, and decided to install Arch onto the desktop's second hard drive (space considerations), and installed Grub2 as the bootloader onto the second hard drive. I'm not able to boot Windows XP from the Grub2 menu on boot (I can boot the other entries, and can still boot XP by switching the order of the hard drives around in BIOS).
I've used Grub2 on my laptop for over a year now, and I've never had problems using it to triple boot Ubuntu, Arch and Windows Vista.
I created a custom entry for Windows XP (from various forum posts on this site and elsewhere):
40_custom:
menuentry "Windows XP (loader)" {
insmod ntfs
insmod part_msdos
insmod chain
set root=(hd1)
drivemap -s hd0 hd1
chainloader +1
When I select the Windows XP entry, all I get is a black screen, and all I can do is reboot with ctrl+alt+del.
I went ahead and installed os-prober from the AUR:
### BEGIN /etc/grub.d/09_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sdb1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 50ACE008ACDFE68E
drivemap -s (hd0) ${root}
chainloader +1
### END /etc/grub.d/09_os-prober ###
But I get the same black screen when I select this entry from the grub menu. Can anyone tell me what the correct entry to boot Windows XP should be?
Last edited by Ploink (2011-10-27 08:26:33)I'd honestly just recommend installing legacy grub, or better yet LILO, the people who work on GRUB/A lot of gnu software seem to think it's a great idea to just add and add and add pointless and bloated features to things that don't need it, GRUB is a perfect example of this, and so is the coreutils, 750 lines of code is used for 'cat' whereas on an operating system such as plan9 about 40 lines of code is used to do exactly the same thing.
On legacy grub it's as simple as
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1
Which would be able to let you boot into windows on /dev/sda1
Last edited by boydey1 (2011-10-31 06:04:13) -
[SOLVED] How to dual boot windows on separate drive with syslinux
I'm trying to follow the directions from the arch syslinux wiki to add a windows dual boot option to my current syslinux.
I have two hard drives: sda (windows MBR) and sdc (arch linux GPT). My BIOS is set to boot sdc, and syslinux is currently installed fine to boot arch linux off of sdc. I would like to add an entry to boot windows.
I added an entry to /boot/syslinux/syslinux.cfg that looks like
LABEL windows
MENU LABEL Windows
COM32 chain.c32
APPEND mbr:0xf00f1fd3 # my actual identifier for sda from fdisk is here
When I rebooted, I saw the new entry in the syslinux menu. When I went to arch linux, it booted fine. When I rebooted again and selected windows, it hung with a blinking underscore. The next time I rebooted, it didn't even get to the syslinux menu and just hung with a blinking underscore.
I booted from my rescue arch usb drive. In fdisk, sdc's partition table now mirrored sda's! In other words, it looked like I had windows partitions on my linux drive, and it had the same MBR identifier even though it was supposed to be GPT. I ran gdisk /dev/sdc, it detected both GPT and MBR, and I asked it to use the GPT table and wrote out the partitions, and my drive looked normal again. I ran arch-chroot, syslinux-install_update, and everything was fine the next time I booted.
Any advice on how I can set up windows dual boot with syslinux?
Last edited by mikemintz (2013-08-17 18:25:46)I am assuming that you use Bios and not UEFI (I am not that quite familiar with UEFI).
1) You must configure the Bios to boot from the disk where syslinux is installed, having a correct mbr and with syslinux correctly installed.
2) The disk where windows reside must be bootable by itself with a valid mbr.
It may be possible that windows try to boot from the linux disk (and of course fails), try to add the swap option to the chain command.
To check if Windows is correctly installed, try to boot it directly from the Bios.
The mbr of the syslinux disk should be gptmbr.bin:
dd if=/usr/lib/syslinux/gptmbr.bin of=/dev/sd<letter of the linux disk> bs=440 count=1
Warning: Be very careful with what you do with dd, it is very easy to destroy all your data!
Last edited by olive (2013-08-17 08:31:44) -
Grub failing to read newest grub.conf [Solved]
I have been working on installing archlinux and xen to run a xenserver with archlinux as my dom0. The installation of the grub went fine. A potential problem was me trying to install grub to my boot partition the first time on accident. Following are the commands I used to install grub.
# grub-install /dev/sda1
As you'd expect, I was informed that installing this way was a bad idea, and that the installation would not continue. I meant to use the following command instead:
# grub-install /dev/sda
Which completed successfully.
After that, I created the grub.conf
# grub-mkconfig -o /boot/grub/grub.config
Completed successfully.
The actual output of these commands are exactly what I would have expected from them. If desired, I can post the output, but they were what would be expected form a successfully completed command.
After running through the installation and creation of the grub.conf file, I rebooted and was presented with the grub menu selection screen. While the xen entry was certainly found and put in the grub.conf (which I checked afterwords), there were only two entries: Archlinux and Archlinux booting from the backup ramfs. Thinking that this may have been the correct behavior for a server that is running a baremetal hypervisor, I choose the normal Archlinux entry and was greeted with an error screen informing me that a UUID for a partition that does not exist was not able to be found. Trying the bakup archlinux entry gave me the same result.
I am now unable to boot the system. Rebooting into live media, remounting partitions, arch-chroot into the /mnt directory, and reinstalling grub and recreating the grub.conf file has gotten me nowhere.I have several questions about this:
Is it possible that the UUIDs and grub.conf from my previous install could have been preserved somehow? The previous install used gpt partitioning while this one used mbr.
Is there something that I am missing to get grub to create the file and use it?
Do special procedures have to be followed to clear gpt formatted disks before using mbr?
Last edited by ephreal (2015-03-15 05:42:40)Having no luck, I looked into syslinux a bit and gave it a try, and am now booting just fine. This doesn't solve the initial issue of having grub consistently show the wrong UUID, but it is a workaround.
Thank you Head_On_A_Stick for the clarification.
EDIT: The information for setting up xen with syslinux was found here and here. I'd just like to remind anyone using syslinux for the first time that the default root partition is /dev/sda3 and has to be changed in the config file. Got me 5 times in a row!
Last edited by ephreal (2015-03-15 05:52:24) -
Boot Windows 8.1 in MBR mode from UEFI GRUB
Hi,
i installed Windows 8.1 in BIOS/MBR mode to my second hardisk /dev/sdb.
On my first disk /dev/sda is Archlinux with GRUB 2.0 in UEFI mode.
Is it possible to boot Windows 8.1 from the UEFI GRUB?
The description in the wiki is only for MBR systems...
https://wiki.archlinux.org/index.php/Gr … S-MBR_mode
Thank youActually, rEFInd can switch from EFI-mode to BIOS-mode booting; however, on PCs it's usually restricted to booting the BIOS-mode boot loader in the MBR of the first disk. Thus, you might need to physically swap your disk cables to get it to work. You'll also need to uncomment the "scanfor" line in refind.conf and add "hdbios" to its boot options list.
Oh, you also need a version of rEFInd compiled with Tianocore, not GNU-EFI. My own main binaries are so compiled (I'm rEFInd's author), and I believe that Arch's are, too, but some others are built with GNU-EFI.
Last edited by srs5694 (2014-03-15 20:10:29) -
Arch & Windows 8 Dual Boot -- Windows Boot Loader loads grub-rescue
Arch works fine,but as it always happens Windows boot went down. Both OS are EFI.
Note that boot secure and fast boot were disabled for Windows 8.
I used os-prober, but did not fix anything; so, I removed it. I tried to hack things out using boot-repair from Ubuntu, but it requires a repository, grub-efi, from Ubuntu that Arch doesn't have.
I am trying to modify files in grub.d and grub.cfg and hopefully fix something.
Exact description:
- archgrub loads and shows 3 entries. Two for Arch that load the sys succesfully and one for Windows 8 that fails.
- When I try to execute Windows from grub, it brings me to a grub rescue>
and shows error /boot/grub/x86_64-efi/normal.mod not found
As far as I am concerned this .mod is from Linux, so I don't know why it is being called into Windows loading procedures.
lsblk returns:
[jav@localhost ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
|-sda1 8:1 0 1000M 0 part
|-sda2 8:2 0 260M 0 part
|-sda3 8:3 0 1000M 0 part
|-sda4 8:4 0 128M 0 part
|-sda5 8:5 0 605.3G 0 part
|-sda6 8:6 0 5.4G 0 part /boot/efi
|-sda7 8:7 0 25G 0 part
|-sda8 8:8 0 20G 0 part
|-sda9 8:9 0 244.1G 0 part /
`-sda10 8:10 0 29.3G 0 part
sr0 11:0 1 1024M 0 rom
Here's the output of fdisk. Another weird thing is that sometimes ubuntu would show on my terminal. See the first line below, "jav@ubuntu"?!
[jav@ubuntu ~]$ sudo fdisk -l
[sudo] password for jav:
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: [i deleted this]
Device Start End Size Type
/dev/sda1 2048 2050047 1000M Windows recovery environment
/dev/sda2 2050048 2582527 260M EFI System
/dev/sda3 2582528 4630527 1000M unknown
/dev/sda4 4630528 4892671 128M Microsoft reserved
/dev/sda5 4892672 1274335231 605.3G Microsoft basic data
/dev/sda6 1847777280 1859151871 5.4G EFI System
/dev/sda7 1859151872 1911580671 25G Microsoft basic data
/dev/sda8 1911580672 1953523711 20G Windows recovery environment
/dev/sda9 1335775232 1847777279 244.1G Linux filesystem
/dev/sda10 1274335232 1335775231 29.3G Microsoft basic data
And, bootinfoscript output:
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> No boot loader is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda2: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 7: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi
/efi/ubuntu/grubx64.efi
sda3: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 7: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi
/efi/ubuntu/grubx64.efi /bootmgr /boot/bcd
sda4: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
sda5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
sda6: __________________________________________________________________________
File system: vfat
Boot sector type: SYSLINUX 6.02 ... :..(:,:0:4:8:....D:H:L:[.T:[.\:`:d:[.l:p:t:x:|:.:.:.:.:.:.:.:.....................
Boot sector info: Syslinux looks at sector 99102 of /dev/sda6 for its
second stage. SYSLINUX is installed in the /syslinux
directory. No errors found in the Boot Parameter Block.
Operating System:
Boot files: /grub/grub.cfg /syslinux/syslinux.cfg
/syslinux/ldlinux.sys
sda7: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda8: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda9: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Arch Linux ()
Boot files: /etc/fstab
sda10: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 1,953,525,167 1,953,525,167 ee GPT
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 2,050,047 2,048,000 Windows Recovery Environment (Windows)
/dev/sda2 2,050,048 2,582,527 532,480 EFI System partition
/dev/sda3 2,582,528 4,630,527 2,048,000 -
/dev/sda4 4,630,528 4,892,671 262,144 Microsoft Reserved Partition (Windows)
/dev/sda5 4,892,672 1,274,335,231 1,269,442,560 Data partition (Windows/Linux)
/dev/sda6 1,847,777,280 1,859,151,871 11,374,592 EFI System partition
/dev/sda7 1,859,151,872 1,911,580,671 52,428,800 Data partition (Windows/Linux)
/dev/sda8 1,911,580,672 1,953,523,711 41,943,040 Windows Recovery Environment (Windows)
/dev/sda9 1,335,775,232 1,847,777,279 512,002,048 Data partition (Linux)
/dev/sda10 1,274,335,232 1,335,775,231 61,440,000 Data partition (Windows/Linux)
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 CE62D9F062D9DCF1 ntfs WINRE_DRV
/dev/sda10 150a8788-6049-45ed-85af-ded92a2c0801 ext4
/dev/sda2 16DC-8816 vfat SYSTEM_DRV
/dev/sda3 7CDD-0403 vfat LRS_ESP
/dev/sda4
/dev/sda5 40E4E0CFE4E0C7EC ntfs Windows8_OS
/dev/sda6 9C3F-2A9E vfat
/dev/sda7 7240E43740E40427 ntfs LENOVO
/dev/sda8 422CE5EA2CE5D945 ntfs PBR_DRV
/dev/sda9 1a765403-f251-43d8-8edf-c191475d3837 ext4
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda6 /boot vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda6 /boot/efi vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda9 / ext4 (rw,relatime,data=ordered)
============================= sda6/grub/grub.cfg: ==============================
# DO NOT EDIT THIS FILE
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 1a765403-f251-43d8-8edf-c191475d3837
else
search --no-floppy --fs-uuid --set=root 1a765403-f251-43d8-8edf-c191475d3837
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-1a765403-f251-43d8-8edf-c191475d3837' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 9C3F-2A9E
else
search --no-floppy --fs-uuid --set=root 9C3F-2A9E
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=1a765403-f251-43d8-8edf-c191475d3837 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-1a765403-f251-43d8-8edf-c191475d3837' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 9C3F-2A9E
else
search --no-floppy --fs-uuid --set=root 9C3F-2A9E
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=1a765403-f251-43d8-8edf-c191475d3837 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
### END /etc/grub.d/10_linux ###
## Attempt at fixing grub
# insmod fat
# set root='hd0,gpt6'
### BEGIN /etc/grub.d/30_os-prober ###
#menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-16DC-8816' {
# insmod part_gpt
# insmod fat
# set root='hd0,gpt2'
# if [ x$feature_platform_search_hint = xy ]; then
# search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 16DC-8816
# else
# search --no-floppy --fs-uuid --set=root 16DC-8816
# fi
# chainloader /EFI/Microsoft/Boot/bootmgfw.efi
menuentry "Windows 8 UEFI" {
set root='(hd0,gpt2)'
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###
========================= sda6/syslinux/syslinux.cfg: ==========================
# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
# Comboot modules:
# * menu.c32 - provides a text menu
# * vesamenu.c32 - provides a graphical menu
# * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
# * hdt.c32 - hardware detection tool
# * reboot.c32 - reboots the system
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples
DEFAULT arch
PROMPT 0 # Set to 1 if you always want to display the boot: prompt
TIMEOUT 50
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP de.ktl
# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux
UI menu.c32
#UI vesamenu.c32
# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Arch Linux
#MENU BACKGROUND splash.png
MENU COLOR border 30;44 #40ffffff #a0000000 std
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
MENU COLOR help 37;40 #c0ffffff #a0000000 std
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
# boot sections follow
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
LABEL arch
MENU LABEL Arch Linux
LINUX ../vmlinuz-linux
APPEND root=/dev/sda3 rw
INITRD ../initramfs-linux.img
LABEL archfallback
MENU LABEL Arch Linux Fallback
LINUX ../vmlinuz-linux
APPEND root=/dev/sda3 rw
INITRD ../initramfs-linux-fallback.img
#LABEL windows
# MENU LABEL Windows
# COM32 chain.c32
# APPEND hd0 1
LABEL hdt
MENU LABEL HDT (Hardware Detection Tool)
COM32 hdt.c32
LABEL reboot
MENU LABEL Reboot
COM32 reboot.c32
LABEL poweroff
MENU LABEL Poweroff
COM32 poweroff.c32
=================== sda6: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
================= sda6: Location of files loaded by Syslinux: ==================
GiB - GB File Fragment(s)
============== sda6: Version of COM32(R) files used by Syslinux: ===============
syslinux/cat.c32 : not a COM32/COM32R module
syslinux/chain.c32 : not a COM32/COM32R module
syslinux/cmd.c32 : not a COM32/COM32R module
syslinux/config.c32 : not a COM32/COM32R module
syslinux/cptime.c32 : not a COM32/COM32R module
syslinux/cpuid.c32 : not a COM32/COM32R module
syslinux/cpuidtest.c32 : not a COM32/COM32R module
syslinux/debug.c32 : not a COM32/COM32R module
syslinux/disk.c32 : not a COM32/COM32R module
syslinux/dmitest.c32 : not a COM32/COM32R module
syslinux/elf.c32 : not a COM32/COM32R module
syslinux/ethersel.c32 : not a COM32/COM32R module
syslinux/gfxboot.c32 : not a COM32/COM32R module
syslinux/gpxecmd.c32 : not a COM32/COM32R module
syslinux/hdt.c32 : not a COM32/COM32R module
syslinux/hexdump.c32 : not a COM32/COM32R module
syslinux/host.c32 : not a COM32/COM32R module
syslinux/ifcpu.c32 : not a COM32/COM32R module
syslinux/ifcpu64.c32 : not a COM32/COM32R module
syslinux/ifmemdsk.c32 : not a COM32/COM32R module
syslinux/ifplop.c32 : not a COM32/COM32R module
syslinux/kbdmap.c32 : not a COM32/COM32R module
syslinux/kontron_wdt.c32 : not a COM32/COM32R module
syslinux/ldlinux.c32 : not a COM32/COM32R module
syslinux/libcom32.c32 : not a COM32/COM32R module
syslinux/libgpl.c32 : not a COM32/COM32R module
syslinux/liblua.c32 : not a COM32/COM32R module
syslinux/libmenu.c32 : not a COM32/COM32R module
syslinux/libutil.c32 : not a COM32/COM32R module
syslinux/linux.c32 : not a COM32/COM32R module
syslinux/ls.c32 : not a COM32/COM32R module
syslinux/lua.c32 : not a COM32/COM32R module
syslinux/mboot.c32 : not a COM32/COM32R module
syslinux/meminfo.c32 : not a COM32/COM32R module
syslinux/menu.c32 : not a COM32/COM32R module
syslinux/pcitest.c32 : not a COM32/COM32R module
syslinux/pmload.c32 : not a COM32/COM32R module
syslinux/poweroff.c32 : not a COM32/COM32R module
syslinux/prdhcp.c32 : not a COM32/COM32R module
syslinux/pwd.c32 : not a COM32/COM32R module
syslinux/pxechn.c32 : not a COM32/COM32R module
syslinux/reboot.c32 : not a COM32/COM32R module
syslinux/rosh.c32 : not a COM32/COM32R module
syslinux/sanboot.c32 : not a COM32/COM32R module
syslinux/sdi.c32 : not a COM32/COM32R module
syslinux/sysdump.c32 : not a COM32/COM32R module
syslinux/vesainfo.c32 : not a COM32/COM32R module
syslinux/vesamenu.c32 : not a COM32/COM32R module
syslinux/vpdtest.c32 : not a COM32/COM32R module
syslinux/whichsys.c32 : not a COM32/COM32R module
syslinux/zzjson.c32 : not a COM32/COM32R module
=============================== sda9/etc/fstab: ================================
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda9
UUID=1a765403-f251-43d8-8edf-c191475d3837 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda6
#UUID=9C3F-2A9E /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
UUID=9C3F-2A9E /boot vfat defaults 0 2
UUID=9C3F-2A9E /boot/efi vfat defaults 0 1
============== sda9: Version of COM32(R) files used by Syslinux: ===============
boot/syslinux/cat.c32 : not a COM32/COM32R module
boot/syslinux/chain.c32 : not a COM32/COM32R module
boot/syslinux/cmd.c32 : not a COM32/COM32R module
boot/syslinux/config.c32 : not a COM32/COM32R module
boot/syslinux/cptime.c32 : not a COM32/COM32R module
boot/syslinux/cpuid.c32 : not a COM32/COM32R module
boot/syslinux/cpuidtest.c32 : not a COM32/COM32R module
boot/syslinux/debug.c32 : not a COM32/COM32R module
boot/syslinux/disk.c32 : not a COM32/COM32R module
boot/syslinux/dmitest.c32 : not a COM32/COM32R module
boot/syslinux/elf.c32 : not a COM32/COM32R module
boot/syslinux/ethersel.c32 : not a COM32/COM32R module
boot/syslinux/gfxboot.c32 : not a COM32/COM32R module
boot/syslinux/gpxecmd.c32 : not a COM32/COM32R module
boot/syslinux/hdt.c32 : not a COM32/COM32R module
boot/syslinux/hexdump.c32 : not a COM32/COM32R module
boot/syslinux/host.c32 : not a COM32/COM32R module
boot/syslinux/ifcpu.c32 : not a COM32/COM32R module
boot/syslinux/ifcpu64.c32 : not a COM32/COM32R module
boot/syslinux/ifmemdsk.c32 : not a COM32/COM32R module
boot/syslinux/ifplop.c32 : not a COM32/COM32R module
boot/syslinux/kbdmap.c32 : not a COM32/COM32R module
boot/syslinux/kontron_wdt.c32 : not a COM32/COM32R module
boot/syslinux/ldlinux.c32 : not a COM32/COM32R module
boot/syslinux/libcom32.c32 : not a COM32/COM32R module
boot/syslinux/libgpl.c32 : not a COM32/COM32R module
boot/syslinux/liblua.c32 : not a COM32/COM32R module
boot/syslinux/libmenu.c32 : not a COM32/COM32R module
boot/syslinux/libutil.c32 : not a COM32/COM32R module
boot/syslinux/linux.c32 : not a COM32/COM32R module
boot/syslinux/ls.c32 : not a COM32/COM32R module
boot/syslinux/lua.c32 : not a COM32/COM32R module
boot/syslinux/mboot.c32 : not a COM32/COM32R module
boot/syslinux/meminfo.c32 : not a COM32/COM32R module
boot/syslinux/menu.c32 : not a COM32/COM32R module
boot/syslinux/pcitest.c32 : not a COM32/COM32R module
boot/syslinux/pmload.c32 : not a COM32/COM32R module
boot/syslinux/poweroff.c32 : not a COM32/COM32R module
boot/syslinux/prdhcp.c32 : not a COM32/COM32R module
boot/syslinux/pwd.c32 : not a COM32/COM32R module
boot/syslinux/pxechn.c32 : not a COM32/COM32R module
boot/syslinux/reboot.c32 : not a COM32/COM32R module
boot/syslinux/rosh.c32 : not a COM32/COM32R module
boot/syslinux/sanboot.c32 : not a COM32/COM32R module
boot/syslinux/sdi.c32 : not a COM32/COM32R module
boot/syslinux/sysdump.c32 : not a COM32/COM32R module
boot/syslinux/vesainfo.c32 : not a COM32/COM32R module
boot/syslinux/vesamenu.c32 : not a COM32/COM32R module
boot/syslinux/vpdtest.c32 : not a COM32/COM32R module
boot/syslinux/whichsys.c32 : not a COM32/COM32R module
boot/syslinux/zzjson.c32 : not a COM32/COM32R module
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown GPT Partiton Type
e7afbfbf4fa38a449a5b6213eb736c22
========= Devices which don't seem to have a corresponding hard drive: =========
sdb
=============================== StdErr Messages: ===============================
cat: /tmp/BootInfo-p9ML2Cte/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-p9ML2Cte/Tmp_Log: No such file or directory
/dev/cdrom: open failed: No medium found
/dev/sdb: open failed: No medium found
No volume groups found
mdadm: No arrays found in config file or automatically
Any ideas?
Here's my grub.cfg:
# DO NOT EDIT THIS FILE
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 1a765403-f251-43d8-8edf-c191475d3837
else
search --no-floppy --fs-uuid --set=root 1a765403-f251-43d8-8edf-c191475d3837
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-1a765403-f251-43d8-8edf-c191475d3837' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 9C3F-2A9E
else
search --no-floppy --fs-uuid --set=root 9C3F-2A9E
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=1a765403-f251-43d8-8edf-c191475d3837 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-1a765403-f251-43d8-8edf-c191475d3837' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 9C3F-2A9E
else
search --no-floppy --fs-uuid --set=root 9C3F-2A9E
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=1a765403-f251-43d8-8edf-c191475d3837 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-16DC-8816' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 16DC-8816
else
search --no-floppy --fs-uuid --set=root 16DC-8816
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###
Last edited by knowNothing23 (2013-12-30 00:17:02)Hi,
New to this forum, joined today in anticipation of trying an install of AL...For whatever this may be worth:
I have an HP Pavillion desktop that came with Windows 8 (now 8.1), & has, of course, a UEFI boot system. I tried earlier to install Ubuntu Studio (which I currently run) on the same disk as Windows (/dev/sda), I made (I believe) a huge mistake in trying to install as LVM/ext4... wiped out my Windows install & made the UEFI unavailable... I had to do a complete re-install of Windows (fortunately, I did the recommended system backup, using 4 DVD's!) so then I tried a (non LVM) install on an external usb 3.0, with the Grub 2 on the external disk (great access time, & it worked fine... IMO)...
One other item: as I have been trying to find the right flavor of Linux for my main purposes, I have been trying various distros. & having to try to learn to negotiate the UEFI, secure/legacy procedures (still learning)... As I was unsure of installing rEFind... I did down load the .iso, burn it to a CD...
http://www.rodsbooks.com/refind/getting.html
& in legacy mode, found that simply putting it (rEFind CD into the CD/DVD player, which in the UEFI it is labeled something like HP/UEFI CD/DVD), & then launching it, rEFind worked for some other distros...that is, I was able to boot into my Linux distros, even bypassing Grub), as well as having the option of booting Windows. It may seem trivial that I say this (it maybe is), but I have not seen anywhere (I have scoured the internet rather well) this mentioned as a possibility (though it, of course, would not make such a good permanent solution, especially for computers like mine that have only one CD/DVD player).
HenryP -
GRUB not booting windows?
Hi, I installed Arch a few days ago, and despite me being a pretty big linux newb I'm loving the distro. I've only gotten very minor problems with it, but this is really the only one I need to fix soon.
When I boot and GRUB asks me which OS to boot up, it detects both arch and windows, but when I try to boot windows it displays...
booting 'Windows'
# (2) windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1
On the screen. My windows partition is on sda1, so (hd0,0) is the correct path, but it just gets stuck on that screen and after outputting the code from /boot/grub/menu.lst file it just stops doing anything.
Help?hokstein wrote:
I'm having exactly the same problem. This is the second time I've installed Arch, and the other time I had the same problem as well. My Grub entry looks just like the ones above:
# (1) Windows
title Windows
rootnoverify (hd1,0)
makeactive
chainloader +1
As the OP said, grub just prints this entry on the screen and sits there. No real error message.
Someone sugested that maybe Windows is picky about having another bootloader in the MBR. Maybe, but I also had grub on the MBR on my Debian instalation and I still could boot Windows there. I have Linux and Windows installed on diferent drives, Windows being in a single-partition SATA drive.
Any ideas?
Windows can only boot directly from the 1st hdd.
As you have rootnoverify (hd1,0) it seems you have the windows drive as SECOND hdd in your system.
Fortunately grub has a map command that can be used to switch the order of drives
Try putting the lines below in your menu.lst (the 2 map commands make windows believe the drive it's installed on is the first hdd.)
# (3) Windows
title Microsoft Windows XP Professional
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1 -
[SOLVED] Grub error 18 - cannot boot to Windows
Earlier today I tried to install Arch 64bit (I had 32bit earlier) with kdemod to test new KDE4.2. However, after installation I could not boot neither Arch nor Windows. Grub appeared, but every single option gave me an error. I can't remember anymore which error it was, but It doesn't matter anymore. I thought I had made a really stupid and basic mistake while installing, I just didn't know what.
I wanted to test KDE4.2 so much so I installed Kubuntu (yeah, this topic is not related to Arch Linux, I hope that somebody can help me though, move this topic to somewhere else if it doesn't belong here ). Installation was fine, booting to Kubuntu was fine (and upgrading to KDE4.2 was fine), but booting to Windows was not. It gave me a following error:
Error 18: Selected cylinder exceeds maximum supported by BIOS
I googled a bit and found this: http://wiki.linuxquestions.org/wiki/GRUB#Error_18 I reinstalled Kubuntu using /dev/sdb1 as /boot and /dev/sdb2 as / (/dev/sdb3 is windows and /dev/sdb4 is my game partition, ntfs). Before this I had /dev/sdb1 as / and /dev/sdb2 as swap (now I have no swap at all, my 4GB RAM should be enough). The only difference was that at first grub gave me error 15 (I fixed it with Kubuntu LiveCD). After that - no difference.
I need Windows for playing. That's why it's very important that I can use it. [SOLVED] In addition, I should say that /dev/sda is a separated hard drive which is encrypted with Truecrypt. (I said this because I think that Kubuntu tried to install grub on (hd0)...) When I tried to mount this hard drive with Kubuntu, it couldn't do it. I wanted to test mounting on Windows to check if it is just Kubuntu's problem. If not, I'm fucked because this hard drive contains VERY VERY VERY IMPORTANT files. [/SOLVED]
I really need help, please. If somebody can help me, (s)he is my hero.
Last edited by Exitium (2009-01-29 14:42:32)Oops, I forgot:
menu.lst:
(Yup, a lot of comments, Ubuntu style)
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
# examples
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=e85e83e5-0f7c-419e-8cad-1fe5d9128e8f ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=504fab5b-7bb6-4b20-af58-83677386de37
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.10, kernel 2.6.27-11-generic
uuid 504fab5b-7bb6-4b20-af58-83677386de37
kernel /vmlinuz-2.6.27-11-generic root=UUID=e85e83e5-0f7c-419e-8cad-1fe5d9128e8f ro quiet splash
initrd /initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 504fab5b-7bb6-4b20-af58-83677386de37
kernel /vmlinuz-2.6.27-11-generic root=UUID=e85e83e5-0f7c-419e-8cad-1fe5d9128e8f ro single
initrd /initrd.img-2.6.27-11-generic
title Ubuntu 8.10, memtest86+
uuid 504fab5b-7bb6-4b20-af58-83677386de37
kernel /memtest86+.bin
quiet
title Wintoosa
root (hd1,2)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
fdisk -l
(Note: These results are mainly in Finnish. It could be hard to you to read it... But whatever... I'll translate these only if necessary)
Levy /dev/sda: 640.1 Gt, 640135028736 tavua
255 päätä, 63 sektoria/ura, 77825 sylinteriä
Yksiköt = 16065 * 512 = 8225280 -tavuiset sylinterit
Levyn tunniste: 0xcc5d88e2
Laite Käynn Alku Loppu Lohkot Id Järjestelmä
/dev/sda1 * 244091 485122 1936074870+ b8 BSDI sivutus
Osion 1 loppu ei ole sylinterin rajalla.
/dev/sda2 176430 394864 1754572509+ 43 Tuntematon
Osion 2 loppu ei ole sylinterin rajalla.
/dev/sda3 177329 413105 1893868925 29 Tuntematon
Osion 3 loppu ei ole sylinterin rajalla.
/dev/sda4 57435 309703 2026342066 5c Priam Edisk
Osion 4 loppu ei ole sylinterin rajalla.
Osiotaulumerkinnät eivät ole levyjärjestyksessä
Levy /dev/sdb: 500.1 Gt, 500107862016 tavua
255 päätä, 63 sektoria/ura, 60801 sylinteriä
Yksiköt = 16065 * 512 = 8225280 -tavuiset sylinterit
Levyn tunniste: 0x0007a52a
Laite Käynn Alku Loppu Lohkot Id Järjestelmä
/dev/sdb1 1 128 1028128+ 83 Linux
/dev/sdb2 129 13185 104880352+ 83 Linux
/dev/sdb3 13186 26239 104856255 7 HPFS/NTFS
/dev/sdb4 26240 60801 277619265 7 HPFS/NTFS
Last edited by Exitium (2009-01-28 21:05:33) -
How to configure Grub or enable dual boot Windows7 & Oracle Enterprise Linux6
Hi,
I had Windows 7 installed on my PC and later on I have installed Oracle Linux6 (Server).
While installation I didn't get any option to configure dual boot and now I am unable to boot Windows7.
If I do fsdik -l command on Linux prompt, I get the result:
# fdisk -l
Disk /dev/sda: 160.0 GB, 1600041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum.optimal): 512 bytes / 512 bytes
Disk identifier: 0x9143f05b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1305 10482381 83 Linux
/dev/sda2 1306 6405 40960000 7 HPFS/NTFS
/dev/sda3 6405 12779 51200000 7 HPFS/NTFS
/dev/sda4 12779 19458 53646336 7 HPFS/NTFS
I check the grub config file at /boot/grub/menu.lst but I do not see any entry for windows here.
Please advise how to configure grub or other way to make the dual boot options enable and use windows and linux.
Thanks in Advance.
AnandCould you post your menu.lst file?
It's not clear which exact partition Windows 7 is on from fdisk -l, but you could try adding this to your menu.lst file:
title Microsoft Windows 7
root (hd0,1)
savedefault
makeactive
chainloader +1 -
Firewire module install with rpm not updating "/etc/grub.conf" file
Hello,
Thank you in advance! I am trying to setup Oracle10g RAC on RedHat Enterprise Linux ES 4.0. As a part of that process, I am trying to install the shared disk (Firewire) module on the node using 'rpm' as follows:
rpm -ivh --force oracle-firewire-modules-2.6.9.EL-1286-1.i686.rpm
It is getting installed perfectly. However, I am expecting with "-ivc" option, it is supposed to update "/etc/grub.conf" file. But it is not updating this file. Therefore reboot could NOT load this module and can not proceed further. Any help on this is really appreciated!
Thanks again,
Kishorekarol's link did the deed! I had gone to the page that shows the most up to date mirrors and used that for the install. But when I used the link that karol gave it not only gave me the same URL as I used earlier to install, it gave me some additional suffixes that didn't appear on the page that provided the updated links. When I added /$repo/os/$arch, pacman took off and started burning rubber. So many thanks!
Now I can go ahead and install reflector, which is the first thing I try and do when I get an Arch install up and running. Thanks again.
After seeing karol's script in post#4, I see that the /$repo/os//4arch was showing up there also. I didn't see anything like that when I copied the link to install.
Last edited by pottzie (2012-03-14 02:42:28) -
[Solved]Grub ignores commands in /etc/xen/grub.conf
I have the following lines in the file /etc/xen/grub.conf, however it completely ignores the changes I have made
#XEN_HYPERVISOR_CMDLINE="dom0_mem=-4096M dom0_vcpus_pin=true iommu=1 xsave=1"
#XEN_LINUX_CMDLINE="console=tty0"
after running
grub-mkconfig -o /boot/grub/grub.cfg
and then rebooting and runnning
sudo xl list
I get
Domain-0 0 7643 8 r----- 167.9
Last edited by TheLowEndTheory (2014-04-19 08:57:49)Sometimes it's the simple things, I can't believe I didn't bother to check if that was a comment. I just face palmed so hard, thank you.
-
[SOLVED] Unable to Boot Windows 7 from GRUB
I recently reinstalled Arch onto my laptop (Lenovo Thinkpad t520) and have been having problems with Grub. For the last week I've been having trouble getting it to run grub at boot at all, only being able to run windows 7 by flagging it as the bootable drive. The other day I finally got it to boot into grub, and from grub I can boot into Arch. However, I can not boot into windows 7 through grub. When I attempt to, it throws an error:
Invalid EFI file path
I'm somewhat new to arch, and especially new to efi bootloading and such. Right now the only way I can get into windows is either booting from the arch install disk > boot other os and specifying partition 2 (where I have windows installed) or by pressing f12 at boot. When I do this (not sure what the term is, if anyone knows please tell me), it brings up a menu asking where I want to boot with "arch_efi" "cd drive" "Hard drive" etc. I choose hard drive and it will then boot to windows by default. Booting normally takes me to grub where I can boot into arch but not windows. If there's any more info you need please let me know and I'll try to provide it. Thanks in advance.
Also, here is my current partition setup
/dev/sda1 /boot/efi
/dev/sda2 Windows7
/dev/sda3 Extended partition containing sda 5,6, & 7
/dev/sda4 swap
/dev/sda5 /boot
/dev/sda6 /
/dev/sda7 /home
UPDATE
Terminator seems to be right (still on a roll!), so I wiped the partition I had grub on, removed grub, and installed syslinux. Now I have another problem that I'm hoping can be solved in the same thread to avoid another. It boots to syslinux no problem, and I can boot to windows from there all good, but when I select arch I get:
Root device mounted successfully but /sbin/init does not exist
I haven't been able to look for solutions too much on my own, but any help would be appreciated, thank you.
Last edited by IamFuzzles (2012-08-22 04:20:56)Terminator wrote:If I understand it correctly, what you are trying is impossible: you are trying to boot windows using UEFI on a disk with MBR partitioning. Windows 7 only supports UEFI on discs with GPT partitioning but AFAIK, extended partitions only exist in MBR partitioning.
i also saw this in the arch wiki, but i have a brand new lenovo ideapad y570 running windows 7 64-bit that i'm in the process of setting up for someone, and it has what i think is an efi system partition but the disk uses mbr partitioning. does anyone know why this might be, or is there a way i can verify that the system is actually being booted via bios-mbr?
Last edited by e_tank (2012-08-21 11:56:15) -
[SOLVED] dual booting windows 7 with btrfs on grub-bios -- core.img
I am trying to install arch in a dual boot configuration with an existing windows 7 partition. I have everything from the beginner's guide done but the bootloader. When I run grub-install it tells me that core.img is too big.
Some googling tells me that this is relatively common with btrfs, and it seems the only work around is to switch to gpt mode and use a grub bios partition. But the info I've seen indicates that I need to use MBR mode to dual boot windows.
Is it safe to do this with windows? Is there another workaround? Or will I have to settle for ext4?
Last edited by jorenko (2013-06-09 03:53:24)Well there's your problem, your first partition starts at sector 63. With recent versions of windows and fdisk (and every other partitioning tool I can think of off the top of my head) things now align themselves correctly. Also because there is now GPT, the first partition typically starts later as the GPT partition table will typically sit between the MBR and the first partition.
On a MBR partitioned system, grub2 will actually use the first 446 bytes like normal, but will then also use the space that is empty where GPT would sit. This is why when you have a GPT partitioned system, it will require you to create a 1-2MB grub boot partition, as it needs somewhere else to put its bloat. GPT actually still uses the MBR section, but simply creates one large partition covering the whole disk. This is so that tools that are not GPT aware will not think that they have a whole free disk to use as they please.
For comparison, here is whe I get from fdisk:
# fdisk -l /dev/sda
sudo fdisk -l /dev/sda
[sudo] password for curtisshima:
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
# Start End Size Type Name
1 2048 2099199 1G EFI System EFI System
2 2099200 252166798 119.2G Linux filesyste arch-btrfs-1
3 252168192 488397134 112.7G Linux filesyste arch-btrfs-3
Note that I do use GPT. But that is not the point here. What I am trying to show is where my first partition starts. This is also where fdisk will start partitions these days. This is to ensure compatibility with 4k advanced format disks.
If you are not dead set on Grub2, you could try using syslinux. I really like it much better, though if you are booting more than one Linux, you need to either employ chainloading to various partition boot records, or have a shared /boot. Having a windows partition doens't really matter, as you are simply chainloading to that funky reserved partition anyway.
The other option is to use grub-legacy, which can still be found in the AUR. I actually liked the orginal Grub, as it provided a nice feature set, but was still configurable by hand and it actually fit into the MBR. -
Dual boot , windows 7 keep restart after select from grub section
Hello everyone, i am new here.
I want to make a dual boot in my computer.
I am using a same hardisk to install both OS.
1st, I install arch linux , after install working well from grub.
2nd, I install windows 7, after install , it skip the grub section , directly load windows 7.
I boot my archlinux live cd.
Go to grub .
type root (hd0, and press tab to make sure my partition.
setup (hd0).
The grub section was recover and success to login arch linux.
but fail to login windows 7 , then i modify /boot/grub/menu.lst . modify the windows (hd0, 1).
My trouble probem is here, after i select the windows section , my com just like restart computer.
Even i try change to (hd0, 2 or 3 ) also same problem, windows 7 restart computer.I have try to install dual boot for more than 5 time, first i install windows then only come to arch linux, but always fail to boot up windows.
Thank for helping me ^^
This is my fdisk -l
I have 2 hardisk, but i install both Os in the same hardisk.
Device Boot Start End Block ID System
/dev/sdb1 1 24 192742+ 83 Linux
/dev/sdb2 25 37 102400 7 HPFS/NTFS
Partition 2 does not end on cylinder boundry
/dev/sdb3 37 8243 65939456 7 HPFS/NTFS
/dev/sdb4 8247 14593 50982277+ 5 Extended
/dev/sdb5 8247 8368 979933+ 83 Linux
/dev/sdb6 8364 10858 20000893+ 83 Linux
/dev/sdb7 10859 14593 20001356 82 Linux Swap / Solaris
# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz26 root=/dev/sd5 ro
initrd /kernel26.img
# (1) Arch Linux
title Arch Linux fallback
root (hd0,0)
kernel /vmlinuz26 root=/dev/sd5 ro
initrd /kernel26_fallback.img
# (2) windows
title windows 7
rootnoverify (hd0, 1)
makeactive
chainloader +1
Maybe you are looking for
-
Scheduling agreement and material availability
Hi all, I have this problem: For the material AABBCC I have an availability of 60 pieces. in transaction VA32 I have the following scheduling agreement for the material AABBCC. 01.07.2010 q.ty 10 01.08.2010 q.ty 10 01.09.2010
-
can someone please help? i brought a touch 4g and docking station for my wife (dock is a iwantit) now when i connect the touch to it and play music the music video does'nt play it just shows a scene saying "connected to the tv" well its not! its just
-
Microsoft word notebook layout Saving Problems
Hi I'm having problems with my microsoft word where in notebook layout it won't allow me to save when the ending is docx, which is the usual saving ending. It allows me to save publisher and normal blank word documents, however not the notebook layou
-
Ipad can not connect to network
Can not connect to Internet
-
Htmldb_item_popupkey_from_query - returning a value.
Hello, I have created a dynamic parameter page, based on some tables that I have. I was using select_list_from_query to generate a select list from a query stored in my ref_tbl. I switched to htmldb_item_popupkey_from_query because the query was gene