You are not logged in.

#1 2009-10-07 12:53:01

Fatih
Member
From: Ankara-Türkiye
Registered: 2005-12-17
Posts: 67
Website

Grub and harddisk table are not in sync?

Hi to everyone.

I have two disks. Each of them is 250Gb and are available under /dev/sda and /dev/sdb (wich are splitted in partitions)

Now at /dev/sda i have:

/dev/sda1 ----> Win
/dev/sda5 ----> Arch
/dev/sda6 ----> Backup(Fat32)

At /dev/sdb I have on signle NTFS partition.

After installation of arch, i couldn't boot into arch, because the grub entry for Archlinux was faulty.

My currently changed menu.lst file is(part):

*****************************

# (0) Arch Linux
title  Arch Linux
root   (hd1,4)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/8712f140-d13a-464a-abaf-416a1a59828e ro
initrd /boot/kernel26.img

# (2) Windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1

*****************************

As you see here, the root row's are not the same. It seems that they are on two different hardisks, one of them is on hd0, and the other one is one hd1. I have to change Archlinux's root as (hd1,4), otherwise i couldn't boot in it(before it was (hd0,4)). But my Archlinux and Windows installation are on the same Harddisk installed.

My fdisk -l /dev/sda output is:

[root@sabutay fatih]# fdisk -l /dev/sda

Disk /dev/sda: 250.1 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00350035

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       12809   102884352    7  HPFS/NTFS
/dev/sda2           12809       30401   141310656+   5  Extended
/dev/sda5           12809       18035    41980730   83  Linux
/dev/sda6           18036       30401    99329863+   b  W95 FAT32

I really don't understand what is going here ? Why is grub assumping that Archlinux is the second(/dev/sdb) harddisk ?  Where is the error ?

Thanks in advance

Offline

#2 2009-10-08 10:50:59

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Grub and harddisk table are not in sync?

My question is more why you can boot windows with your current menu.lst. I can imagine grub switching hard disks for whatever reason, but in any case windows shouldn't be bootable from a different disk than arch.

You could interrupt grub while booting (hit `c` for command line), and then figure out where grub thinks your partitions are. E.g.

> root (hd0<TAB><TAB>

should list the number of  partitions:

 
grub> root (hd0,
 Possible partitions are:
   Partition num: 1,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 2,  Filesystem type is ext2fs, partition type 0x83

Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

Board footer

Powered by FluxBB