You are not logged in.
Hi,
I'm using Arch x86-64. I have Windows 7, Ubuntu and Arch installed and I use the Windows bootloader, configured with EasyBCD, to load the bootloaders of Ubuntu and Arch, so I need to install GRUB in /dev/sda8. I didn't install GRUB during the installation process because I could not find a way to choose dev/sda8 instead of /dev/sda.
Now I'm booting Arch from Ubuntu with GRUB2 and I'm trying to install GRUB from Arch in /dev/sda8, but at boot I get the GRUB shell instead of the entries that I configured in menu.lst.
Here are the details of my hard disk partitions:
[root@tux ~]# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=746513,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
/dev/sda9 on / type ext4 (rw,commit=0)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
/dev/sda8 on /boot type ext2 (rw)
/dev/sda10 on /home type ext4 (rw,commit=0)
[root@tux ~]# parted
GNU Parted 3.0
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA Hitachi HTS72503 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 1574MB 1573MB primary ntfs boot, diag
2 1574MB 173GB 171GB primary ntfs
4 173GB 311GB 138GB extended
5 173GB 183GB 9999MB logical ext4
6 183GB 288GB 105GB logical ext4
8 288GB 288GB 157MB logical ext2
9 288GB 304GB 15.7GB logical ext4
10 304GB 310GB 6053MB logical ext4
7 310GB 311GB 983MB logical linux-swap(v1)
3 311GB 320GB 9033MB primary ntfs hidden
[root@tux ~]# fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 identifier: 0x44f9ba1e
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 3074047 1536000 27 Hidden NTFS WinRE
/dev/sda2 3074048 337412095 167169024 7 HPFS/NTFS/exFAT
/dev/sda3 607498240 625141759 8821760 17 Hidden HPFS/NTFS
/dev/sda4 337414142 607498239 135042049 5 Extended
/dev/sda5 337414144 356943871 9764864 83 Linux
/dev/sda6 356945920 562720767 102887424 83 Linux
/dev/sda7 605579264 607498239 959488 82 Linux swap / Solaris
/dev/sda8 562722816 563030015 153600 83 Linux
/dev/sda9 563032064 593752063 15360000 83 Linux
/dev/sda10 593754112 605577215 5911552 83 Linux
Partition table entries are not in disk order
And here is my menu.lst
# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst
# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,1)
# /dev/sda3 (hd0,2)
#
# FRAMEBUFFER RESOLUTION SETTINGS
# +-------------------------------------------------+
# | 640x480 800x600 1024x768 1280x1024
# ----+--------------------------------------------
# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
# +-------------------------------------------------+
# for more details and different resolutions see
# https://wiki.archlinux.org/index.php/GRUB#Framebuffer_resolution
# general configuration:
timeout 10
default 0
color light-blue/black light-cyan/blue
# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
# (0) Arch Linux
title Arch Linux X11
root (hd0,7)
kernel /vmlinuz-linux root=/dev/sda9 ro
initrd /initramfs-linux.img
# (1) Arch Linux
title Arch Linux Multi-user
root (hd0,7)
kernel /vmlinuz-linux root=/dev/sda9 ro 3
initrd /initramfs-linux-fallback.img
# (2) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1
I tried with grub-install
[root@tux ~]# grub-install /dev/sda8
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda
And grub-install --rechek
[root@tux ~]# grub-install --recheck /dev/sda8
Probing devices to guess BIOS drives. This may take a long time.
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/sda
I tried also to install with the GRUB shell following the wiki:
[root@tux ~]# cp -a /usr/lib/grub/i386-pc/* /boot/grub
grub> find /grub/menu.lst
(hd0,7)
grub> root (hd0,7)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,7)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0,7)"... failed (this is not fatal)
Running "embed /grub/e2fs_stage1_5 (hd0,7)"... failed (this is not fatal)
Running "install /grub/stage1 (hd0,7) /grub/stage2 p /grub/menu.lst "... succe
eded
Done.
If I boot and give manually the following commands to the GRUB shell
root (hd0,7)
kernel /vmlinuz-linux root=/dev/sda9 ro
initrd /initramfs-linux.img
boot
I can start correctly Arch.
I could keep loading Arch from Ubuntu or try to install GRUB2 in Arch, but I really don't understand why GRUB it's not working correctly. Any suggestions?
Last edited by lorenz712 (2011-09-13 01:22:21)
Offline