LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How to restore boot loader on Mandriva 09 dual boot ... pruned parts 1 (https://www.linuxquestions.org/questions/mandriva-30/how-to-restore-boot-loader-on-mandriva-09-dual-boot-pruned-parts-1-a-687428/)

dolphans1 12-01-2008 04:54 AM

How to restore boot loader on Mandriva 09 dual boot ... pruned parts 1
 
//moderator/note: hijack cleanup. For a clean view of this thread see http://www.linuxquestions.org/questi...e-11.0-695425/. Apologies to the OP for moving *his* posts and related replies, unfortunately it was easier managable this way.

Gins 12-26-2008 01:25 PM

This is an interesting question.

I am going to install Mandriva 2009.

I have a DVD of Mandriva 2009.

I am going to install it on another computer which has the latest Ubuntu. [ Not on this computer]

The default operating system is Ubuntu.

1. I have installed even old 'open SuSE 10.3' and it works fine.

2. I have installed Windows 2008 server on a primary partition and it works fine.

3. I have installed Windows Vista on a primary partition and it works fine.


So Ubuntu, Windows 2008 server and Windows Vista is on 3 separate primary partitions and open SuSE 10.3 is on a logical partiton.

GRUB works fine to recognize all the operating systems.However, it is bit tardy. First comes Ubuntu's GRUB, Afterwards I get the 'open SuSEs' GRUB.


I want to install Mandriva on a logical partition which is 'sdb5'

Where shall I place Mandriva's bootloader?

How shall I install Mandriva's bootloader?

I want Mandriva to be on the system as the fourth operating system.



........................................................
sdb1 for Windows 2008 server {Primary partition}
sdb2 for Windows Vista {Primary partition}
sdb3 for Ubuntu {Primary partition}
sdb5 --- Empty partiton for Linux installations {Logical
sdb6 --- Empty partiton for Linux installations {Logical
sdb7 --- Small partion (8.0GB) {Linux swap
sdb8 for open SuSE 10,3 {Logical
.........................................................
As a matter of fact I wanted to install open SuSE 10.3 on 'sdb5'. I couldn't dictate terms and it forced me to install on 'sdb8'. I don't know why. It may be I don't have sufficient knowledge of those tricky matters.

yancek 12-26-2008 06:04 PM

If you have an entry similar to the one in post #10 above, that is why it goes from the Ubuntu Grub to the Opensuse Grub

This line: configfile /boot/grub/menu.lst, point it to the menu.lst of Opensuse from Ubuntu. To change that you need your entry to point to the kernel in Opensuse. Look at the entries in post #9 with the kernel and initrd options. Find those in your Opensuse 10.3 menu.lst file and copy them to your Ubuntu menu.lst. Or you could post your Opensuse 10.3 menu.lst with the Ubuntu menu.lst (just the parts referring to 10.3) and someone can give you the correct entries.

You can install Mandriva bootloader (Grub) to the sdb5 if that's where you install it. Then you can put the entry from the Mandriva menu.lst file in the Ubuntu menu.lst file. You can also install Grub from Mandriva to the mbr and hope that it detects all other systems?

Gins 12-27-2008 10:13 AM

Thanks yancek for excellent comments.

I installed Mandriva 2009.
I didn't put the bootloader of Mandria 2009 on MBR. I put it on the root folder of Mandriva.
However, I can't put it to the 'menu.lst' file of Ubuntu. So Mandriva is not working or rather it does not appear as it is not on the 'menu.lst' file.

I don't know the stanzas for Mandriva.

I tried in vain the with the following stanzas.
.................................................................................
title Mandriva 2009


root (hd1,4)

configfile /boot/grub/menu.lst


.................................................................................

I successfully installed it on 'sdb5' partition.

I have 'open SuSE' on 'sdb8' partition. It works as it is on the 'menu.lst' file.

Code:


..................................................................................
sdb1 for Windows 2008 server {Primary partition}
sdb2 for Windows Vista {Primary partition}
sdb3 for Ubuntu {Primary partition}
sdb5  for Mandriva 2009 {Logical
sdb6 --- Empty partiton for Linux installations {Logical
sdb7 --- Small partion (8.0GB) {Linux swap
sdb8 for open SuSE 10,3 {Logical
.......................................................................................


The following is the output of the fdisk file.

Code:

root@ni-desktop:/home/ni# fdisk -l



Disk /dev/sda: 250.0 GB, 250059350016 bytes

255 heads, 63 sectors/track, 30401 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x24312430



  Device Boot      Start        End      Blocks  Id  System

/dev/sda1              2      26912  216162607+  5  Extended

/dev/sda2  *      26913      30402    28025856    7  HPFS/NTFS

/dev/sda5              2        8955    71922973+  83  Linux

/dev/sda6            8956      18034    72927036  83  Linux

/dev/sda7          18035      26912    71312503+  83  Linux



Disk /dev/sdb: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0xdd98dd98



  Device Boot      Start        End      Blocks  Id  System

/dev/sdb1  *          1      13057  104880321    7  HPFS/NTFS

/dev/sdb2          13058      22724    77650177+  7  HPFS/NTFS

/dev/sdb3          22725      31836    73192140  83  Linux

/dev/sdb4          31837      59748  224203140    5  Extended

/dev/sdb5          40791      49744    71922973+  83  Linux

/dev/sdb6          49745      58698    71922973+  83  Linux

/dev/sdb7          58699      59748    8434093+  82  Linux swap / Solaris

/dev/sdb8          31837      40790    71922942  83  Linux



Partition table entries are not in disk order

root@ni-desktop:/home/ni#


The following is the Ubuntu's menu.ist file.
Code:

root@ni-desktop:/boot/grub# cat menu.lst

# 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                30



## 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=c5fb4ab5-6767-44e8-b89a-6383b86e2bad ro



## Setup crashdump menu entries

## e.g. crashdump=1

# crashdump=0



## default grub root device

## e.g. groot=(hd0,0)

# groot=(hd1,2)



## 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.04, kernel 2.6.24-16-generic

root                (hd1,2)

kernel                /boot/vmlinuz-2.6.24-16-generic root=UUID=c5fb4ab5-6767-44e8-b89a-6383b86e2bad ro quiet splash

initrd                /boot/initrd.img-2.6.24-16-generic

quiet



title                Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)

root                (hd1,2)

kernel                /boot/vmlinuz-2.6.24-16-generic root=UUID=c5fb4ab5-6767-44e8-b89a-6383b86e2bad ro single

initrd                /boot/initrd.img-2.6.24-16-generic



title                Ubuntu 8.04, memtest86+

root                (hd1,2)

kernel                /boot/memtest86+.bin

quiet






title Mandriva 2009


root (hd1,4)                     

configfile /boot/grub/menu.lst







### END DEBIAN AUTOMAGIC KERNELS LIST



# This is a divider, added to separate the menu items below from the Debian

# ones.

title                Other operating systems:

root





# This entry automatically added by the Debian installer for a non-linux OS

# on /dev/sda2

title                Windows 2008 Server

root                (hd0,1)

savedefault

makeactive

chainloader        +1





title          Windows Vista/Longhorn (loader)

root            (hd0,2)

savedefault

makeactive

chainloader    +1




root@n-desktop:/boot/grub#

The bottom line is the stanzas for attaching Mandriva 2009 which resides on 'sdb5' partition to Ubuntu's meun.lst file.
I appreciate your help again.

yancek 12-27-2008 10:15 PM

title Mandriva 2009
root (hd1,4)
configfile /boot/grub/menu.lst

With Mandriva on sdb5, the above entry is correct and should work. Possible problems, need a space after root - before (hd1,4) and looks like there is. Same after configfile and before /boot..., looks right.

When you boot into Ubuntu and mount Mandriva, go into the /boot/grub/menu.lst file to verify that you have entries for Mandriva and the kernel and initrd entries in menu.lst are showing files that are actually in the /boot directory, i.e. the vmlinuz and initrd files.

The only other thing might be that you should put the entry for Mandriva in your Ubuntu menu.lst below the DEBIAN Magic Kernels line in menu.lst. Seems I read that somewhere but I don't use Ubuntu. I do have version 7.04 of Ubuntu installed and all the other OS's on my machine have entries below that line.

Quote:

However, I can't put it to the 'menu.lst' file of Ubuntu. So Mandriva is not working or rather it does not appear as it is not on the 'menu.lst' file.
I'm not sure what you mean by the above?

Quote:

I have 'open SuSE' on 'sdb8' partition. It works as it is on the 'menu.lst' file.
Don't understand the above quote. The menu.lst you posted for Ubuntu in your last post does not show an entry for Opensuse?? Are you booting from the Ubuntu or Opensuse Grub??


Quote:

The bottom line is the stanzas for attaching Mandriva 2009 which resides on 'sdb5' partition to Ubuntu's meun.lst file.
Am also confused by the above quote as the last line in your posted menu.lst is you vista entry??

Gins 12-28-2008 12:57 PM

Thanks yancek for taking time to reply me.
First I went to work this morning. Afterwards I went to the gym for training and came home about 10 minutes ago. So I was away whole day.


Code:

However, I can't put it to the 'menu.lst' file of Ubuntu. So Mandriva is not working or rather it does not appear as it is not on the 'menu.lst' file.
The above means the problem with Ubuntu's menu.lst file.
If I know the exact stanzas, I can edit the file and Mandriva will definitely work.
-------------------------------------------------------

Code:

I have 'open SuSE' on 'sdb8' partition. It works as it is on the 'menu.lst' file.
The above means my 'open SuSE 10.3 works fine. It is on the 'sdb8' partition. I could go to the Internet too using 'open SuSE 10.3'.


The following is the menu.lst file from Open SuSE 10.3
Code:


SuseLinux103:/boot/boot/grub # cat menu.lst
# Modified by YaST2. Last modification on Sun Dec 21 17:14:18 CET 2008
default 0
timeout 30
gfxmenu (hd1,7)/boot/message

###Don't change this comment - YaST2 identifier: Original name:  Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)###
title Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)
    root (hd1,2)
    configfile /boot/grub/menu.lst
    configfile /boot/grub/menu.lst

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
    root (hd1,7)
    kernel /boot/vmlinuz-2.6.22.5-31-bigsmp root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 vga=0x317 resume=/dev/sdb7 splash=silent showopts
    initrd /boot/initrd-2.6.22.5-31-bigsmp

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
    rootnoverify (hd1,7)
    chainloader (hd0,1)+1

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
    rootnoverify (hd1,7)
    chainloader (hd1,0)+1

###Don't change this comment - YaST2 identifier: Original name: windows 3###
title windows 3
    rootnoverify (hd1,7)
    chainloader (hd1,1)+1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
    rootnoverify (hd1,7)
    chainloader (fd0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.3
    root (hd1,7)
    kernel /boot/vmlinuz-2.6.22.5-31-bigsmp root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd-2.6.22.5-31-bigsmp
SuseLinux103:/boot/boot/grub #



When the computer starts, I get the 'open SuSE 10.3' menu.

The default operating system on 'open SuSE 10.3' menu is Ubuntu.

Afterwards it jumps to Ubuntu menu.

The default operating system on Ubuntu menu is also Ubuntu.

If I don't do anything when the computer starts, I get the Ubuntu to the screen.

You have written how to solve the problem of two menus. It is unnecessary to get both menus.

I will try to fix it later. If I ran into problems, I would beg your help on this too.

I am not an expert in these matters though I have been working with Linux for about 10 years.

I may have made an error in the process of installing 'open SuSE 10.3'.

As I wrote this error causes to get the 'open SuSE 10.3's menu first and the Ubuntu's menu second.
[ We can solve this problem later on.]

For the moment, the most important thing is to get Mandriva 2009 working.

I can get Ubuntu, 'open SuSE 10.3', Windows 2008 Server and Windows Vista on to the screen. I can go to the Internet with any one of the above.

Mandriva is hidden

First I must get Mandriva working.

Your thoughts are very welcome.

Gins 12-28-2008 03:09 PM

Here is the latest 'menu.ist' file from Ubuntu.

I am posting only the important lines.

I got the following error message.

root(hd1,4)
Filesystem type is ext2fs, partiton type 0x83
configfile /boot/grub/menu.lst
Error 2: Bad file or directory type
press any key to continue


Code:

## ## End Default Options ##



title          Ubuntu 8.04, kernel 2.6.24-16-generic

root            (hd1,2)

kernel          /boot/vmlinuz-2.6.24-16-generic root=UUID=c5fb4ab5-6767-44e8-b89a-6383b86e2bad ro quiet splash

initrd          /boot/initrd.img-2.6.24-16-generic

quiet



title          Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)

root            (hd1,2)

kernel          /boot/vmlinuz-2.6.24-16-generic root=UUID=c5fb4ab5-6767-44e8-b89a-6383b86e2bad ro single

initrd          /boot/initrd.img-2.6.24-16-generic



title          Ubuntu 8.04, memtest86+

root            (hd1,2)

kernel          /boot/memtest86+.bin

quiet



title Mandriva 2009

root (hd1,4)

configfile /boot/grub/menu.lst





### END DEBIAN AUTOMAGIC KERNELS LIST



# This is a divider, added to separate the menu items below from the Debian


# This is a divider, added to separate the menu items below from the Debian

# ones.

title          Other operating systems:

root





# This entry automatically added by the Debian installer for a non-linux OS

# on /dev/sda2

title          Windows 2008 Server

root            (hd0,1)

savedefault

makeactive

chainloader    +1





title          Windows Vista/Longhorn (loader)

root            (hd0,2)

savedefault

makeactive

chainloader    +1


yancek 12-28-2008 04:59 PM

Quote:

Grub Error 2 : Bad file or directory type
This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.
Quote:

When the computer starts, I get the 'open SuSE 10.3' menu.
Ok, I misunderstood, I thought your Ubuntu menu.lst was first. So, if I understand correctly, you just want to boot these systems and don't necessarily want to have this entry (configfile /boot/grub/menu.lst) to experiment with??

Actually, using the configfile entry is useful if you are constantly changing operating systems on a specific partition for development or experimentation. You can leave that entry and install any OS without changing the entry as long as the OS is using Grub.

If you initially get the Opensuse menu.lst, then it would make sense to put the entry for Mandriva in the Opensuse menu.lst
Check the /boot/grub directory on Mandriva by mounting in Opensuse. First create the directory for Mandriva: mkdir /mnt/mandriva, then mount it: mount /dev/sdb5 /mnt/mandriva, then change to the directory and see if you actually have the menu.lst file there and it has entries pointing to the kernel and initrd files. Copy the entry in the Mandriva menu.lst file (for Mandriva) into the /boot/grub/menu.lst of Opensuse. Don't use the configfile, use the separate kernel and initrd lines.

I'm sure you can see by looking at your Opensuse menu.lst file below why your machine boots the way it does. The Ubuntu stanza is the only one with the 'configfile' entry! You could change that so it didn't display the menu.lst from Ubuntu by simply placing the kernel and initrd lines in that stanza. Replace this entry in the OPENSUSE menu.lst:

title Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)
root (hd1,2)
configfile /boot/grub/menu.lst
configfile /boot/grub/menu.lst

with the following entry in OPENSUSE menu.lst:

title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd1,2)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=c5fb4ab5-6767-44e8-b89a-6383b86e2bad ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

Quote:

I may have made an error in the process of installing 'open SuSE 10.3'
Not really, I installed Opensuse 10.3 a year ago and it put similar "configfile" entries for the other OS's on the system during the install.

Further questions or problems, just post.

Gins 12-29-2008 04:49 PM

yancek

I work whole day. Afterwards I went to the gym for circuit training.
I just came home. I will eat something and sleep. It is too late here; almost midnight here.

I will attend this tomorrow evening.
I profoundly appreciate your help.
Please keep a good watch on the thread.

yancek 12-29-2008 07:08 PM

I'll keep watching. I'm curious about the bad file or directory error you get from Grub. Mount that partition and see what is actually there.

Gins 12-30-2008 12:43 PM

yancek

I logged on as a superuser in open SuSE 10.3.

I created a directory mandriva as you suggested.

I tried in different ways.

It seems there is no entry about 'sdb5' in the 'fstab file.




Code:

ni@SuseLinux103:~> su root
Password:
SuseLinux103:/home/ni #
SuseLinux103:/home/ni # cd /mnt
SuseLinux103:/mnt # mkdir mandriva
SuseLinux103:/mnt # mount /dev/sdb5
mount: can't find /dev/sdb5 in /etc/fstab or /etc/mtab
SuseLinux103:/mnt # ls
mandriva
SuseLinux103:/mnt #




SuseLinux103:/mnt # cd mandriva
SuseLinux103:/mnt/mandriva # mount /dev/sdb5/
mount: can't find /dev/sdb5/ in /etc/fstab or /etc/mtab
SuseLinux103:/mnt/mandriva #

..................................................................


The following is the 'fstab' file in open SuSE 10.3

Code:

SuseLinux103:/etc # cat fstab
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 /                    ext3      acl,user_xattr        1 1
/dev/disk/by-id/scsi-SATA_SAMSUNG_SP2504CS09QJ1UP109613-part2 /windows/C          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part1 /windows/D          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part2 /windows/E          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part7 swap                swap      defaults              0 0
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0
/dev/fd0            /media/floppy        auto      noauto,user,sync      0 0
SuseLinux103:/etc #


----------------------------------------------------------------
The following is the 'mtab' file in open SuSE 10.3

Code:

SuseLinux103:/etc # cat mtab
/dev/sdb8 / ext3 rw,acl,user_xattr 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
debugfs /sys/kernel/debug debugfs rw 0 0
udev /dev tmpfs rw 0 0
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
/dev/sda2 /windows/C fuseblk rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096 0 0
/dev/sdb1 /windows/D fuseblk rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096 0 0
/dev/sdb2 /windows/E fuseblk rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096 0 0
securityfs /sys/kernel/security securityfs rw 0 0
SuseLinux103:/etc #

---------------------------------------------------------------------

The following is the 'fdisk -l' output from open SuSE 10.3.

Code:

SuseLinux103:/ # fdisk -l

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

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              2      26912  216162607+  5  Extended
/dev/sda2  *      26913      30402    28025856    7  HPFS/NTFS
/dev/sda5              2        8955    71922973+  83  Linux
/dev/sda6            8956      18034    72927036  83  Linux
/dev/sda7          18035      26912    71312503+  83  Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdd98dd98

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          1      13057  104880321    7  HPFS/NTFS
/dev/sdb2          13058      22724    77650177+  7  HPFS/NTFS
/dev/sdb3          22725      31836    73192140  83  Linux
/dev/sdb4          31837      59748  224203140    5  Extended
/dev/sdb5          40791      49744    71922973+  83  Linux
/dev/sdb6          49745      58698    71922973+  83  Linux
/dev/sdb7          58699      59748    8434093+  82  Linux swap / Solaris
/dev/sdb8          31837      40790    71922942  83  Linux

Partition table entries are not in disk order
SuseLinux103:/ #

---------------------------------------------------------------------

The following is the 'open SuSE 10.3s menu.lst file.

Code:

SuseLinux103:/boot/grub # cat menu.lst
# Modified by YaST2. Last modification on Sun Dec 21 17:14:18 CET 2008
default 0
timeout 30
gfxmenu (hd1,7)/boot/message

###Don't change this comment - YaST2 identifier: Original name:  Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)###
title Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)
    root (hd1,2)
    configfile /boot/grub/menu.lst
    configfile /boot/grub/menu.lst

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
    root (hd1,7)
    kernel /boot/vmlinuz-2.6.22.5-31-bigsmp root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 vga=0x317 resume=/dev/sdb7 splash=silent showopts
    initrd /boot/initrd-2.6.22.5-31-bigsmp

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
    rootnoverify (hd1,7)
    chainloader (hd0,1)+1

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
    rootnoverify (hd1,7)
    chainloader (hd1,0)+1

###Don't change this comment - YaST2 identifier: Original name: windows 3###
title windows 3
    rootnoverify (hd1,7)
    chainloader (hd1,1)+1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
    rootnoverify (hd1,7)
    chainloader (fd0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.3
    root (hd1,7)
    kernel /boot/vmlinuz-2.6.22.5-31-bigsmp root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd-2.6.22.5-31-bigsmp
SuseLinux103:/boot/grub #

I have two hard disks on this computer. The Samsung disk has 500GB capacity. The system recognizes it as 'sdb'.

As I mentioned before, sdb1 and sdb2 are for Windows 2008 server and Windows Vista. Both of them are primary partitions.

I have Ubuntu on sdb3 and it is also a primary partition.

The above 3 operating systems are working fine. I have no complains about them.

I installed 'open SuSE 10.3' on sdb8. It is a logical partition.
My open SuSE 10.3 works fine.

I installed 'Mandriva 2009' on sdb5 and it is a liability.
The partition sdb5 is a logical partition.
Your thoughts are welcome.

PS
I hope to install some other Linux distros on Maxtor hard disk later on.
The system recognizes it as sda. I think Samsung and Maxtor belongs to one company. Maxtor has 250GB.

yancek 12-30-2008 01:19 PM

You have the mandriva directory under /mnt as seen below.

Quote:

SuseLinux103:/mnt # ls
mandriva
You did the mount command incorrectly, do this:

mount /dev/sdb5 /mnt/mandriva

Should work, if it doesn't you may need filesystem type and I think it is ext3 so do:

mount -t ext3 /dev/sdb5 /mnt/mandriva

Then change directory:

cd /mnt/mandriva

Then do ls -l, you should see the mandriva files. If you see the mandriva files, go to /boot/grub and find the menu.lst file. Copy the entry for mandriva to the bottom of the Opensuse menu.lst file


If you see the mandrivaa files, put this entry in /etc/fstab of Opensuse:


/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part5 / ext3 acl,user_xattr 0 0

This is for the second drive on which you have Opensuse and Mandriva. The only changes you should need from Opensuse are from "part8" to "part5", and changing the "1 1" at the end of Opensuse to "0 0" for mandriva. The above entry includes those changes.

You don't have an fstab entry for mandriva in Opensuse because you installed mandriva after Opensuse.

I'm not sure if this will solve the "bad file or directory" error? Maybe the files arent there? Is sdb set to boot first?

If you get errors or have problems, post again.

Gins 12-30-2008 01:52 PM

Yes, it worked.

I will attend the rest gradually.



Code:

SuseLinux103:/mnt # ls
mandriva
SuseLinux103:/mnt # cd mandriva
SuseLinux103:/mnt/mandriva # ls
bin  dev  home    lib        media  ooobuildtime.log  proc                root  sys  usr
boot  etc  initrd  lost+found  mnt    opt              .readahead_collect  sbin  tmp  var
SuseLinux103:/mnt/mandriva #


Gins 12-30-2008 02:57 PM

I changed the 'fstab' file in open SuSE 10.3.

I will reboot and see whether I am in business now.

The following is the new file.


Code:

SuseLinux103:/etc # cat fstab



/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 /                    ext3      acl,user_xattr        1 1
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part5 /                    ext3      acl,user_xattr 0

/dev/disk/by-id/scsi-SATA_SAMSUNG_SP2504CS09QJ1UP109613-part2 /windows/C          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part1 /windows/D          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part2 /windows/E          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part7 swap                swap      defaults              0 0
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0
/dev/fd0            /media/floppy        auto      noauto,user,sync      0 0
SuseLinux103:/etc #


Gins 12-30-2008 03:11 PM

yancek

I got the same old error message.
I rebooted twice.
Ubuntu and open SuSE 10.3 comes to the screen.

What would be the next step?


-----------------------------------------
I installed all the programs on the sdb drive.
So bootloader and mbr are on the sdb.

yancek 12-30-2008 06:33 PM

You did the entry for /etc/fstab in Opensuse but slight error:

/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 / ext3 acl,user_xattr 1 1

The entry above is for Opensuse, the entry below is for Mandriva

/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part5 / ext3 acl,user_xattr 0 0

The differences above are in red, need a space between zeroes like: 0 0

You didn't indicate whethere you took the entry from Mandriva's menu.lst and put it in Opensuse menu.lst. Without that entry, it won't work

cd /mnt/mandriva
cat menu.lst

Look for the Mandriva stanza and copy it to the Opensuse menu.lst file. Below is my entry for Mandriva, yours won't be the same but similar

title Mandriva
kernel (hd1,4)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/hdb12 splash=silent acpi=ht vga=788
initrd (hd1,4)/boot/initrd.img

(You may need to re-mount again if you have re-booted and the fstab entry is not right)

I'll check back tomorrow. Good Luck!

Gins 12-31-2008 02:03 PM

Thanks yancek for the latest comments.
I just came home from the gym.

The following is the Mandriva's menu.lst file.


It seems Mandriva gets some strange figures.

You will read (hd0,0) , (hd0,1) , (hd0,2), etc.

Code:

ni@SuseLinux103:/mnt/mandriva> cd boot
ni@SuseLinux103:/mnt/mandriva/boot> cd grub
ni@SuseLinux103:/mnt/mandriva/boot/grub> cat menu.lst
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,4)/boot/gfxmenu
default 0

title linux
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a  resume=UUID=743165c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
initrd (hd0,4)/boot/initrd.img

title linux-nonfb
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=6460a523-8375-40e3-9958-31c179210b3a  resume=UUID=743165c2-5731-4133-9976-0fc7fd90d02c
initrd (hd0,4)/boot/initrd.img

title failsafe
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=6460a523-8375-40e3-9958-31c179210b3a  failsafe
initrd (hd0,4)/boot/initrd.img

title windows
root (hd0,0)
makeactive
chainloader +1

title windows1
root (hd0,1)
makeactive
chainloader +1

title Ubuntu 8.04
root (hd0,2)
configfile /boot/grub/menu.lst

title openSUSE 10.3 (i586)
VERSION = 10.3
root (hd0,7)
configfile /boot/grub/menu.lst
ni@SuseLinux103:/mnt/mandriva/boot/grub>



I did the minor change in fstab file in open SuSE 10.3. You have noticed an error. I made an silly error.

The following is the corrected file.

Code:

SuseLinux103:/etc # cat fstab



/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 /                    ext3      acl,user_xattr        1 1
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part5 /                    ext3      acl,user_xattr 0 0
/dev/disk/by-id/scsi-SATA_SAMSUNG_SP2504CS09QJ1UP109613-part2 /windows/C          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part1 /windows/D          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part2 /windows/E          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part7 swap                swap      defaults              0 0
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0
/dev/fd0            /media/floppy        auto      noauto,user,sync      0 0
SuseLinux103:/etc #

I don't have to post the menu.ist file from open SuSE 10.3.
It is already here. I posted yesterday.

Please tell me the next step.
I hope you will find time to look at this.


Gins 12-31-2008 02:37 PM

I think there are some glitches.

I twice rebooted the system.

The following is the Mandriva's menu.lst file.

1] I got the open SuSE 10.3 the screen.

2] I mounted the Mandriva partition.

3] I changed into Mandriva's grub folder.

4] I used the cat command to read Mandriva's menu.lst file.

The following is the file.
It is different from the previous one.
I don't know these things.
Have I made an stupid error?


Code:

SuseLinux103:/mnt/mandriva # ls
bin  dev  home    lib        media  ooobuildtime.log  proc                root  sys  usr
boot  etc  initrd  lost+found  mnt    opt              .readahead_collect  sbin  tmp  var
SuseLinux103:/mnt/mandriva # cd /boot
SuseLinux103:/boot # cd grub
SuseLinux103:/boot/grub # cat menu.lst
# Modified by YaST2. Last modification on Sun Dec 21 17:14:18 CET 2008
default 0
timeout 30
gfxmenu (hd1,7)/boot/message

###Don't change this comment - YaST2 identifier: Original name:  Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)###
title Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)
    root (hd1,2)
    configfile /boot/grub/menu.lst
    configfile /boot/grub/menu.lst

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
    root (hd1,7)
    kernel /boot/vmlinuz-2.6.22.5-31-bigsmp root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 vga=0x317 resume=/dev/sdb7 splash=silent showopts
    initrd /boot/initrd-2.6.22.5-31-bigsmp

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
    rootnoverify (hd1,7)
    chainloader (hd0,1)+1

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
    rootnoverify (hd1,7)
    chainloader (hd1,0)+1

###Don't change this comment - YaST2 identifier: Original name: windows 3###
title windows 3
    rootnoverify (hd1,7)
    chainloader (hd1,1)+1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
    rootnoverify (hd1,7)
    chainloader (fd0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.3
    root (hd1,7)
    kernel /boot/vmlinuz-2.6.22.5-31-bigsmp root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd-2.6.22.5-31-bigsmp
SuseLinux103:/boot/grub #


yancek 12-31-2008 03:30 PM

I don't know why your Mandriva menu.lst file shows Mandriva as (hd0,4). This is usually a result of changing the boot order in the BIOS during/between installs. The entry below from the Mandriva menu.lst should be copied to the /boot/grub/menu.lst file in OPENSUSE!!

title linux
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
initrd (hd0,4)/boot/initrd.img

Quote:

4] I used the cat command to read Mandriva's menu.lst file.
No, actually you didn't. You are looking at the Opensuse menu.lst. Look at your last post, part of which is below. That's Opensuse and you can tell because of the "Modified by YaST2" line. Mandriva doesn't use YaST2!

Quote:

SuseLinux103:/boot/grub # cat menu.lst
# Modified by YaST2. Last modification on Sun Dec 21 17:14:18 CET 2008

Also, if you were in the Mandriva menu.lst the prompt would read:

SuseLinux103:/mnt/mandriva/boot/grub # (here is where you enter cat menu.lst.

The menu.lst in your last post is Opensuse, the post prior is Mandriva. So the Mandriva menu.lst HAS NOT changed. Put the entry above for Mandriva in the Opensuse menu.lst file. Before doing this, I would suggest you again mount Mandriva and look in the /boot directory to be sure you have a "vmlinuz" file and an "initrd.img" file. If the entry aabove does not work, change the (hd0,4) entries to (hd0,1).

Gins 12-31-2008 03:53 PM

I did the change you suggested in the open SuSE 10.3's menu.lst file.

The following is the file.

Code:

ni@SuseLinux103:~> su root
Password:
SuseLinux103:/home/ni # cd /boot
SuseLinux103:/boot # cd grub
SuseLinux103:/boot/grub # cat menu.lst
# Modified by YaST2. Last modification on Sun Dec 21 17:14:18 CET 2008
default 0
timeout 30
gfxmenu (hd1,7)/boot/message

###Don't change this comment - YaST2 identifier: Original name:  Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)###
title Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)
    root (hd1,2)
    configfile /boot/grub/menu.lst
    configfile /boot/grub/menu.lst

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
    root (hd1,7)
    kernel /boot/vmlinuz-2.6.22.5-31-bigsmp root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 vga=0x317 resume=/dev/sdb7 splash=silent showopts
    initrd /boot/initrd-2.6.22.5-31-bigsmp

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
    rootnoverify (hd1,7)
    chainloader (hd0,1)+1

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
    rootnoverify (hd1,7)
    chainloader (hd1,0)+1

###Don't change this comment - YaST2 identifier: Original name: windows 3###
title windows 3
    rootnoverify (hd1,7)
    chainloader (hd1,1)+1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
    rootnoverify (hd1,7)
    chainloader (fd0)+1

title linux suggested by yancek
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
initrd (hd0,4)/boot/initrd.img

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.3
    root (hd1,7)
    kernel /boot/vmlinuz-2.6.22.5-31-bigsmp root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd-2.6.22.5-31-bigsmp

SuseLinux103:/boot/grub #

I got the following error message when tried to get 'linux suggested by yancek' on to the screen.

kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
Error:15 file not found
Press any key to ...

What would be the next step?

Gins 12-31-2008 04:16 PM

You suggested the following:

If the entry aabove does not work, change the (hd0,4) entries to (hd0,1).

I tried the above just now.
Code:

title linux suggested by yancek
kernel (hd0,1)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
initrd (hd0,1)/boot/initrd.img


The following is the output:

kernel (hd1,4)
Filesystem type is ext2f ...
configfile /boot/grub/menu.lst
Error2: Bad file or directory
Press any key to ...
--------------------------------------

I would like to hear from you again.

Another idea crossed my mind.
I have Acronis program. By using it I can selectively remove/format the partition which contains Mandriva 2009.; this is sdb5.

Then I can reinstall Mandriva 2009 again taking little bit more time than before.
I can erase all the entries pertaining to Mandriva 2009 in Ubuntu and open SuSE 10.3. I mean the entries in menu.ist files. Before any reinstallation it is imperative to make sure that there are no traces of Mandriva 2009.

I am a bit unsure about removing entries in fstab files of Ubuntu and open SuSE 10.3. I need your help to carefully edit fstab files.
Your thoughts, on this, are welcome.

yancek 12-31-2008 05:27 PM

Quote:

If the entry above does not work, change the (hd0,4) entries to (hd0,1).
Above was my mistake, meant to change to (hd1,4)

I would again suggest you again mount Mandriva and look in its /boot directory to be sure you have a "vmlinuz" file and an "initrd.img" file.
Make sure you are in the Mandriva /boot directory and not Opensuse.

In your last post you indicate you tried the (hd0,1) entry and your output shows the error below, not the "kernel (hd1,4)??

kernel (hd1,4)
Filesystem type is ext2f ...
configfile /boot/grub/menu.lst
Error2: Bad file or directory
Press any key to ...

Do you have an other entry for Mandriva with the configfile /boot/grub/menu.lst? If it's not right, you would get an error message but it would show kernel (hd0,1) not the (hd1,4).

Gins 01-01-2009 11:36 AM

I changed again the menu.lst file again. You said you made a mistake. I always make mistakes.

The following is the menu.lst file in open SuSE 10.3

Code:

# Modified by YaST2. Last modification on Sun Dec 21 17:14:18 CET 2008
default 0
timeout 30
gfxmenu (hd1,7)/boot/message

###Don't change this comment - YaST2 identifier: Original name:  Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/s
db3)###
title Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)
    root (hd1,2)
    configfile /boot/grub/menu.lst
    configfile /boot/grub/menu.lst

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
    root (hd1,7)
    kernel /boot/vmlinuz-2.6.22.5-31-bigsmp root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 vga=
0x317 resume=/dev/sdb7 splash=silent showopts
    initrd /boot/initrd-2.6.22.5-31-bigsmp

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
    rootnoverify (hd1,7)
    chainloader (hd0,1)+1

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
    rootnoverify (hd1,7)
    chainloader (hd1,0)+1

###Don't change this comment - YaST2 identifier: Original name: windows 3###
title windows 3
    rootnoverify (hd1,7)
    chainloader (hd1,1)+1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
    rootnoverify (hd1,7)
    chainloader (fd0)+1

title linux suggested by yancek
kernel (hd1,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165
c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788

I got the following error message.

root(hd1,4)
Filesystem type is ext2fs, partiton type 0x83
configfile /boot/grub/menu.lst
Error 2: Bad file or directory type
press any key to continue

yancek 01-01-2009 12:16 PM

Gins:

You posted again your menu.lst for Opensuse. Is this the complete menu.lst, you don't need to post anything with a hash mark (#) to the left. Looking through this menu.lst, the only entry you have for Mandriva is:

Quote:

title linux suggested by yancek
kernel (hd1,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165
c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
Yet your error message says:

Quote:

root(hd1,4)
Filesystem type is ext2fs, partiton type 0x83
configfile /boot/grub/menu.lst
Error 2: Bad file or directory type
press any key to continue
The error message should have the kernel line in it from the first entry and not the configfile entry. Your Opensuse menu.lst does not have a Mandriva entry with "configfile"?? I don't know where that's coming from??

Let's see if I understand your setup. When you boot initially, you get the Opensuse menu with different options. Your default is to boot to Ubuntu so if you take no action and make no selection, your system will boot to the Ubuntu menu.lst file and you will get your options again. If you make no choice, it boots to Ubuntu as Ubuntu is default in your Ubuntu menu.lst. Is this correct?

Are you seeing the Mandriva entry on your initial Opensuse menu? You have seven entries, do they all show on the initial screen? Are you letting the default boot from Opensuse go to the Ubuntu menu.lst before selecting Mandriva or do you select Mandriva from the Opensuse menu.lst? Do you have an entry in either Opensuse or Ubuntu menu.lst that has a "configfile" line for Mandriva? Don't know where that's coming from?? You have no entry like that in the Opensuse menu.lst you've posted?

Gins 01-01-2009 02:50 PM

Let's see if I understand your setup. When you boot initially, you get the Opensuse menu with different options. Your default is to boot to Ubuntu so if you take no action and make no selection, your system will boot to the Ubuntu menu.lst file and you will get your options again. If you make no choice, it boots to Ubuntu as Ubuntu is default in your Ubuntu menu.lst. Is this correct?
[ The above is absolutely correct.]

-----------------------------

Are you seeing the Mandriva entry on your initial Opensuse menu?

No.
-------------------------------

The following are the items on the initial Opensuse menu.

Ubuntu ...
Open SusE ...
Windows 1
Windows 2
Windows 3
Floppy
Linux suggested by yancek
Failsafe open SuSE ...
--------------------------------
So there are 8 entries on the initial Opensuse menu.
If I selected the item 'Linux suggested by yancek', I would get the following message which you have already written here.

Code:

title linux suggested by yancek
kernel (hd1,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165
c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788

---------------------------------

The second menu has the following:

Ubuntu ...
Ubuntu ...
Ubuntu ...
Mandriva 2009
Other operating systems:
Windows ...
Windows ...
--------------------------------
If I selected 'Mandriva 2009, I would get the following error message:

Code:

root(hd1,4)
Filesystem type is ext2fs, partiton type 0x83
configfile /boot/grub/menu.lst
Error 2: Bad file or directory type
press any key to continue

[ I have installed Windows Vista and Window 2008 Server; that is the reason to get two Windows on the menu.]

I suggested removing Mandriva 2009 and reinstall again. Did you read it?
If you think it is a good idea, I need help to remove the entries in fstab files.

yancek 01-01-2009 04:10 PM

Quote:

Are you seeing the Mandriva entry on your initial Opensuse menu?

No.
That's a YES, you do see the Mandriva entry in Opensuse you just have it labelled "Linux suggested by yancek"

When you select this entry, what happens? Do you see the message below on the screen? Any error message with it?

Quote:

title linux suggested by yancek
kernel (hd1,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165
c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
I believe you should have a line entry below the kernel line with an "initrd" entry. Can you mount your Mandriva and go to the /boot directory and see if there is an "initrd" file there, also a "vmlinuz" file? These files should be in the /boot directory, not the /grub directory.

There is really not much point in booting from Opensuse and then from Ubuntu again. I would suggest you add the Ubuntu entry I suggested in post #17. You can leave the current Ubuntu entries, just put a hash mark (3) to the left of the title line so it is not read. You can always change it back if you want.

If you don't have both the vmlinuz and initrd files in your Mandriva /boot directory that may be the problem. Mandriva definitely won't boot if they are not there.

To see how Grub actually views your partitions run these commands. Log in as root, at the prompt type: grub, you should get the grub prompt which is "grub>". At that prompt type each of these command in sequence and post the output:

find /vmlinuz
find /boot/vmlinuz
geometry (hd0)
geometry (hd1)

Gins 01-01-2009 04:22 PM

Thanks yancek

I am leaving home around 5 o' clock tomorrow morning. I must sleep now. It is getting late here.
I must work tomorrow. After work I will go to the gym. I will attend this tomorrow evening.

I profoundly appreciate all your help.
Please keep a good watch as usual on the thread.

By the way, where are you based?
I am in Sweden.
I have written the location as Germany. As you know people use fictious names and false identities for Internet forums.
I use the name Gins for a several Internet related activities.

yancek 01-01-2009 04:43 PM

Quote:

By the way, where are you based?
Southwestern USA, Arizona. I'll check the post tomorrow.

Gins 01-03-2009 04:37 AM

yancek wrote the following:

I believe you should have a line entry below the kernel line with an "initrd" entry. Can you mount your Mandriva and go to the /boot directory and see if there is an "initrd" file there, also a "vmlinuz" file? These files should be in the /boot directory, not the /grub directory.
---------------------------------------------------------------------------------------------------------------------------------------
Yes, I started open SuSE 10.3 and mounted Mandriva 2009.
The following is the contents of its boot directory.

Code:

SuseLinux103:/mnt/mandriva/boot # ls
config-2.6.27-server-0.rc8.2mnb      initrd.img                          vmlinuz-2.6.27-server-0.rc8.2mnb
gfxmenu                              initrd-server.img                    vmlinuz-server
grub                                System.map-2.6.27-server-0.rc8.2mnb
initrd-2.6.27-server-0.rc8.2mnb.img  vmlinuz
SuseLinux103:/mnt/mandriva/boot

So those two files are in place.

------------------------------------------------------------------------------------------
The following are the output of grub.

Code:

SuseLinux103:/mnt/mandriva/boot # cd
SuseLinux103:~ # grub


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
  lists possible command completions.  Anywhere else TAB lists the possible
  completions of a device/filename. ]
grub> find /vmlinuz
find /vmlinuz
 (hd1,2)
grub> /boot/vmlinuz
/boot/vmlinuz

Error 27: Unrecognized command
grub> geometry (hd0)
geometry (hd0)
drive 0x80: C/H/S = 30401/255/63, The number of sectors = 488397168, /dev/sda
  Partition num: 1,  Filesystem type unknown, partition type 0x7
  Partition num: 4,  Filesystem type is ext2fs, partition type 0x83
  Partition num: 5,  Filesystem type is ext2fs, partition type 0x83
  Partition num: 6,  Filesystem type is ext2fs, partition type 0x83
grub> geometry (hd1)
geometry (hd1)
drive 0x81: C/H/S = 60801/255/63, The number of sectors = 976773168, /dev/sdb
  Partition num: 0,  Filesystem type unknown, partition type 0x7
  Partition num: 1,  Filesystem type unknown, partition type 0x7
  Partition num: 2,  Filesystem type is ext2fs, partition type 0x83
  Partition num: 4,  Filesystem type is ext2fs, partition type 0x83
  Partition num: 5,  Filesystem type is ext2fs, partition type 0x83
  Partition num: 6,  Filesystem type unknown, partition type 0x82
  Partition num: 7,  Filesystem type is ext2fs, partition type 0x83
grub>

-------------------------------------------------------------------------------------------------------------
Only the following command was negative.
The message was Error 27.

/boot/vmlinuz

yancek 01-03-2009 10:44 AM

Quote:

Only the following command was negative.
The message was Error 27.

/boot/vmlinuz
You forgot the "find", shoud be at grub prompt, grub>find /boot/vmlinuz

It shows with your ls command in Mandriva so it's not needed to run again.
Below is the entry you posted earlier from Mandriva menu.lst. The kernel line has (hd0,4), from information you have given, it should be (hd1,4). I know you changed that so the only other things I could suggest is to put a line "root (hd1,4) between "title linux" and the "kernel..." entry. Also, make sure the line "initrd (hd0,4)/boot/initrd.img" is in the Opensuse menu.lst entry for Mandriva.

title linux
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
initrd (hd0,4)/boot/initrd.img

Not really sure if this will work or what else to suggest?

Gins 01-03-2009 03:00 PM

SuseLinux103:/home/ni # mount /dev/sdb5 /mnt/mandriva
SuseLinux103:/home/ni #


grub> find /boot/vmlinuz
find /boot/vmlinuz
(hd1,7)
grub>
-----------------------------
I hope the above is fine.

------------------------------------------------------------------

Code:

ni@SuseLinux103:~> su root
Password:
SuseLinux103:/home/ni # cd /mnt/mandriva
SuseLinux103:/mnt/mandriva # cd /boot
SuseLinux103:/boot # cd grub
SuseLinux103:/boot/grub # ls
default        e2fs_stage1_5  iso9660_stage1_5  menu.lst.old      stage1        vstafs_stage1_5
device.map      fat_stage1_5  jfs_stage1_5      minix_stage1_5    stage2        xfs_stage1_5
device.map.old  ffs_stage1_5  menu.lst          reiserfs_stage1_5  ufs2_stage1_5
SuseLinux103:/boot/grub # vi menu.lst
SuseLinux103:/boot/grub #

...................................................

Code:

title linux suggested by yancek
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165
c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
initrd (hd0,4)/boot/initrd.img


As you see, I opened open SuSE 10.3 and attached the 'mandriva'.

I made the minor changed you suggested. I just inserted (hd0,4)


I rebooted the computer and selected the following from the menu.

'title linux suggested by yancek'

The following is the error message:
Code:

kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165
c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
Error 15: File not found
Press any key ...


yancek 01-03-2009 05:37 PM

Your results for the output of the grub geometry commands don't fit with your partitions. You have a vmlinuz file in (hd1,7) and in (hd1,2), your Opensuse and Ubuntu partitions. There Should be another for Mandriva in (hd1,4), why that doesn't show ??? When you mount Mandriva, you can see the files with the "ls" command??

I believe you have already tried having the stanza in Opensuse menu.lst for Mandriva of (hd1,4) and it didn't work. Might try that again?

What do you have on sda, the Linux partitions? I'm not sure what else to try now.

CJS 01-03-2009 05:47 PM

This is just an idea, because I don't want to intrude on your excellent troubleshooting efforts, yancek; but it might help to see the output of meierfra's boot_info_script.txt in order to help pinpoint Gin's booting problem. If you are interested in running the script, Gins, how about downloading the "boot_info_script.txt" to your desktop, and then do the following as root user, but replace <username> with your username:
Code:

bash /home/<username>/Desktop/boot_info_script.txt
That will create a "RESULTS.txt" file in the same directory from where the script is run, namely your desktop; please copy/paste the contents of that file to your next post. That will help clarify your setup and hopefully what your booting problem might be.

yancek 01-03-2009 11:15 PM

Earlier you posted your menu.lst file from Mandriva. All of the entries in Mandriva showed your partitions as (hd0) in Grub, Mandriva (hd0,4), Ubuntu (hd0,2), Opensuse (hd0,7). Your Ubuntu and Opensuse menu.lst files show all these entries as (hd1). Also, as I indicated in my last post, there is a problem with the grub commands which do not see the Mandriva boot files! Since grub does not see the files, there is no way for grub to boot Mandriva.

Did you change the boot order between Opensuse install and Mandriva install?

Try the script CJS suggests in his post.

Gins 01-04-2009 02:10 PM

I did what CJS suggested. It resulted a long .txt file

I tried invain to send it as an attached file. The result is from open SuSE 10.3. I didn't mount Mandriva


SuseLinux103:/home/ni # bash /home/ni/Desktop/boot_info_script.txt
Finished. The results are in the file RESULTS.txt located in /home/ni/Desktop
SuseLinux103:/home/ni #


How do I send/past it here?

It exceeds 25000 characters and impossible to past here.

CJS 01-04-2009 02:14 PM

You could split up the output into two posts if you want. Also, when you copy/paste the results into the message box, be sure to highlight it and click the little pound sign # graphic in the forum message box to put code tags around the text for easier viewing.

Gins 01-04-2009 02:30 PM

CJS
I will split it immediately and post here.

Gins 01-04-2009 02:31 PM

Code:

============================= Boot Info Summary: ==============================

 => Grub is installed in the MBR of /dev/sda and looks on boot drive #2 in
    partition #8 for its boot files.
 => Windows is installed in the MBR of /dev/sdb

sda1: _________________________________________________________________________

    File system:      Extended Partition

sda2: _________________________________________________________________________

    File system:      ntfs
    Boot sector type:  Windows Vista
    Boot sector info:  The info in boot sector on the starting sector of the
                      MFT is wrong. The info in the boot sector on the
                      starting sector of the MFT Mirror is wrong.
    Mounting failed:
mount: /dev/sda2 already mounted or sda2 busy
mount: according to mtab, /dev/sda2 is mounted on /windows/C

sda5: _________________________________________________________________________

    File system:      ext3
    Boot sector type:  No Boot Loader
    Boot sector info:      Operating System: 
    Boot files/dirs: 
sda6: _________________________________________________________________________

    File system:      ext3
    Boot sector type:  No Boot Loader
    Boot sector info:      Operating System: 
    Boot files/dirs: 
sda7: _________________________________________________________________________

    File system:      ext3
    Boot sector type:  No Boot Loader
    Boot sector info:      Operating System: 
    Boot files/dirs: 
sdb1: _________________________________________________________________________

    File system:      ntfs
    Boot sector type:  Windows XP
    Boot sector info:  The info in boot sector on the starting sector of the
                      MFT is wrong. The info in the boot sector on the
                      starting sector of the MFT Mirror is wrong.
    Mounting failed:
mount: /dev/sdb1 already mounted or sdb1 busy
mount: according to mtab, /dev/sdb1 is mounted on /windows/D

sdb2: _________________________________________________________________________

    File system:      ntfs
    Boot sector type:  Windows XP
    Boot sector info:  The info in boot sector on the starting sector of the
                      MFT is wrong. The info in the boot sector on the
                      starting sector of the MFT Mirror is wrong.
    Mounting failed:
mount: /dev/sdb2 already mounted or sdb2 busy
mount: according to mtab, /dev/sdb2 is mounted on /windows/E

sdb3: _________________________________________________________________________

    File system:      ext3
    Boot sector type:  No Boot Loader
    Boot sector info:      Operating System:  Ubuntu 8.04
    Boot files/dirs:  /boot/grub/menu.lst /etc/fstab /boot /boot/grub

sdb4: _________________________________________________________________________

    File system:      Extended Partition

sdb5: _________________________________________________________________________

    File system:      ext3
    Boot sector type:  Grub
    Boot sector info:  Grub is installed to the boot sector of /dev/sdb5 and
                      looks at sector 739659005 of the same hard drive for
                      the stage2 file (a stage2 file is at this location on
                      /dev/sdb) and on partition #1 for menu.lst.
    Operating System: 
    Boot files/dirs:  /boot/grub/menu.lst /etc/fstab /boot /boot/grub

sdb6: _________________________________________________________________________

    File system:      ext3
    Boot sector type:  No Boot Loader
    Boot sector info:      Operating System: 
    Boot files/dirs: 
sdb7: _________________________________________________________________________

    File system:      swap

sdb8: _________________________________________________________________________

    File system:      ext3
    Boot sector type:  No Boot Loader
    Boot sector info:      Operating System:  Welcome to openSUSE 10.3 (i586) - Kernel
    Boot files/dirs:  /boot/grub/menu.lst /etc/fstab /boot /boot/grub

=========================== Drive/Partition Info: =============================


Gins 01-04-2009 02:34 PM

Code:

Drive sda: _____________________________________________________________________

fdisk -lu /dev/sda:

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x24312430

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1          16065  432341279  216162607+  5  Extended
/dev/sda2  *  432343040  488394751    28025856    7  HPFS/NTFS
/dev/sda5          16128  143862074    71922973+  83  Linux
/dev/sda6      143862138  289716209    72927036  83  Linux
/dev/sda7      289716273  432341279    71312503+  83  Linux

sfdisk -V /dev/sda:

Warning: partition 2 extends past end of disk

Drive sdb: _____________________________________________________________________

fdisk -lu /dev/sdb:

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xdd98dd98

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          63  209760704  104880321    7  HPFS/NTFS
/dev/sdb2      209760705  365061059    77650177+  7  HPFS/NTFS
/dev/sdb3      365061060  511445339    73192140  83  Linux
/dev/sdb4      511445340  959851619  224203140    5  Extended
/dev/sdb5      655291413  799137359    71922973+  83  Linux
/dev/sdb6      799137423  942983369    71922973+  83  Linux
/dev/sdb7      942983433  959851619    8434093+  82  Linux swap / Solaris
/dev/sdb8      511445466  655291349    71922942  83  Linux

Partition table entries are not in disk order

sfdisk -V /dev/sdb:

Warning: partition 5 does not start at a cylinder boundary

blkid -c /dev/null: ____________________________________________________________

/dev/sda2: UUID="290058290057E03" TYPE="ntfs"
/dev/sda5: LABEL="Linux5" UUID="7e99b107-7ea3-a85d-99a1-b6b7d63875f0" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda6: LABEL="Linux6" UUID="3cc445e0-9203-4c4d-790b-e968b2b2ff8e" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda7: LABEL="Linux7" UUID="7086cf99-e968-2aa4-18d9-c97778e0daf0" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb1: UUID="CE1D3FDB434D957C" LABEL="Windows 200" TYPE="ntfs"
/dev/sdb2: UUID="7C1596897D349719" LABEL="Windows Vis" TYPE="ntfs"
/dev/sdb3: UUID="c5fb4ab5-6767-44e8-b89a-6383b86e2bad" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb5: LABEL="Linux3" UUID="6460a523-8375-40e3-9958-31c179210b3a" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb6: LABEL="Linux4" UUID="513bed05-4400-974b-8ed3-085c7928928e" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb7: TYPE="swap" UUID="743165c2-5731-4133-9976-0fc7fd90d02c"
/dev/sdb8: UUID="ea708229-6c8b-4f64-a93b-59bee3c3fbcd" SEC_TYPE="ext2" TYPE="ext3"

=============================== "mount" output: ===============================

/dev/sdb8 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda2 on /windows/C type fuseblk (rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sdb1 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sdb2 on /windows/E type fuseblk (rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
securityfs on /sys/kernel/security type securityfs (rw)

=========================== sdb3/boot/grub/menu.lst: ===========================

# 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                30

## 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=c5fb4ab5-6767-44e8-b89a-6383b86e2bad ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,2)

## 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.04, kernel 2.6.24-16-generic
root                (hd1,2)
kernel                /boot/vmlinuz-2.6.24-16-generic root=UUID=c5fb4ab5-6767-44e8-b89a-6383b86e2bad ro quiet splash
initrd                /boot/initrd.img-2.6.24-16-generic
quiet

title                Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root                (hd1,2)
kernel                /boot/vmlinuz-2.6.24-16-generic root=UUID=c5fb4ab5-6767-44e8-b89a-6383b86e2bad ro single
initrd                /boot/initrd.img-2.6.24-16-generic

title                Ubuntu 8.04, memtest86+
root                (hd1,2)
kernel                /boot/memtest86+.bin
quiet

title Mandriva 2009
root    (hd1,4)
configfile /boot/grub/menu.lst


Gins 01-04-2009 02:34 PM

Code:

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title                Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title                Windows 2008 Server
root                (hd0,1)
savedefault
makeactive
chainloader        +1


title          Windows Vista/Longhorn (loader)
root            (hd0,2)
savedefault
makeactive
chainloader    +1









=============================== sdb3/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
# /dev/sdb3
UUID=c5fb4ab5-6767-44e8-b89a-6383b86e2bad /              ext3    relatime,errors=remount-ro 0      1
# /dev/sdb8
UUID=743165c2-5731-4133-9976-0fc7fd90d02c none            swap    sw              0      0
/dev/scd0      /media/cdrom0  udf,iso9660 user,noauto,exec,utf8 0      0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0      0

================================== sdb3/boot: ==================================

total 18284
drwxr-xr-x  3 root root    4096 2008-12-21 00:28 .
drwxr-xr-x 21 root root    4096 2008-12-21 00:28 ..
-rw-r--r--  1 root root  422607 2008-04-10 18:51 abi-2.6.24-16-generic
-rw-r--r--  1 root root  79964 2008-04-10 18:51 config-2.6.24-16-generic
drwxr-xr-x  2 root root    4096 2008-12-28 22:21 grub
-rw-r--r--  1 root root 7889191 2008-12-21 00:28 initrd.img-2.6.24-16-generic
-rw-r--r--  1 root root 7349268 2008-04-22 20:00 initrd.img-2.6.24-16-generic.bak
-rw-r--r--  1 root root  103204 2007-09-28 12:06 memtest86+.bin
-rw-r--r--  1 root root  899892 2008-04-10 18:51 System.map-2.6.24-16-generic
-rw-r--r--  1 root root 1904248 2008-04-10 18:51 vmlinuz-2.6.24-16-generic

=============================== sdb3/boot/grub: ===============================

total 240
drwxr-xr-x 2 root root  4096 2008-12-28 22:21 .
drwxr-xr-x 3 root root  4096 2008-12-21 00:28 ..
-rw-r--r-- 1 root root    197 2008-12-21 00:28 default
-rw-r--r-- 1 root root    30 2008-12-21 00:28 device.map
-rw-r--r-- 1 root root  8056 2008-12-21 00:28 e2fs_stage1_5
-rw-r--r-- 1 root root  7904 2008-12-21 00:28 fat_stage1_5
-rw-r--r-- 1 root root    16 2008-12-21 00:28 installed-version
-rw-r--r-- 1 root root  8608 2008-12-21 00:28 jfs_stage1_5
-rw-r--r-- 1 root root  4755 2008-12-28 22:21 menu.lst
-rw-r--r-- 1 root root  16384 2008-12-26 23:49 .menu.lst.swo
-rw-r--r-- 1 root root  20480 2008-12-20 22:48 .menu.lst.swp
-rw-r--r-- 1 root root  7324 2008-12-21 00:28 minix_stage1_5
-rw-r--r-- 1 root root  9632 2008-12-21 00:28 reiserfs_stage1_5
-rw-r--r-- 1 root root    512 2008-12-21 00:28 stage1
-rw-r--r-- 1 root root 108356 2008-12-21 00:28 stage2
-rw-r--r-- 1 root root  9276 2008-12-21 00:28 xfs_stage1_5

=========================== sdb5/boot/grub/menu.lst: ===========================

timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,4)/boot/gfxmenu
default 0

title linux
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a  resume=UUID=743165c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
initrd (hd0,4)/boot/initrd.img

title linux-nonfb
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=6460a523-8375-40e3-9958-31c179210b3a  resume=UUID=743165c2-5731-4133-9976-0fc7fd90d02c
initrd (hd0,4)/boot/initrd.img

title failsafe
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=6460a523-8375-40e3-9958-31c179210b3a  failsafe
initrd (hd0,4)/boot/initrd.img

title windows
root (hd0,0)
makeactive
chainloader +1

title windows1
root (hd0,1)
makeactive
chainloader +1

title Ubuntu 8.04
root (hd0,2)
configfile /boot/grub/menu.lst

title openSUSE 10.3 (i586)
VERSION = 10.3
root (hd0,7)
configfile /boot/grub/menu.lst

=============================== sdb5/etc/fstab: ===============================

# Entry for /dev/sdb5 :
UUID=6460a523-8375-40e3-9958-31c179210b3a / ext3 relatime 1 1
/dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
/dev/fd0 /media/floppy auto umask=0,users,iocharset=utf8,noauto,exec,flush 0 0
# Entry for /dev/sda2 :
UUID=0290058290057E03 /mnt/win_c ntfs-3g defaults 0 0
# Entry for /dev/sdb1 :
UUID=CE1D3FDB434D957C /mnt/win_c2 ntfs-3g defaults 0 0
# Entry for /dev/sdb2 :
UUID=7C1596897D349719 /mnt/win_d ntfs-3g defaults 0 0
none /proc proc defaults 0 0
# Entry for /dev/sdb7 :
UUID=743165c2-5731-4133-9976-0fc7fd90d02c swap swap defaults 0 0

================================== sdb5/boot: ==================================

total 7180
drwxr-xr-x  3 root root    4096 2008-12-26 22:00 .
drwxr-xr-x 20 root    4    4096 2008-12-26 21:56 ..
-rw-r--r--  1 root root  96667 2008-10-02 12:28 config-2.6.27-server-0.rc8.2mnb
-rw-r--r--  1 root root  483840 2008-12-26 22:05 gfxmenu
drwxr-xr-x  2 root root    4096 2008-12-26 22:00 grub
-rw-------  1 root root 3693116 2008-12-26 21:59 initrd-2.6.27-server-0.rc8.2mnb.img
lrwxrwxrwx  1 root root      35 2008-12-26 21:59 initrd.img -> initrd-2.6.27-server-0.rc8.2mnb.img
lrwxrwxrwx  1 root root      35 2008-12-26 21:50 initrd-server.img -> initrd-2.6.27-server-0.rc8.2mnb.img
-rw-r--r--  1 root root  880280 2008-10-02 12:28 System.map-2.6.27-server-0.rc8.2mnb
lrwxrwxrwx  1 root root      32 2008-12-26 21:58 vmlinuz -> vmlinuz-2.6.27-server-0.rc8.2mnb
-rw-r--r--  1 root root 2156112 2008-10-02 12:28 vmlinuz-2.6.27-server-0.rc8.2mnb
lrwxrwxrwx  1 root root      32 2008-12-26 21:50 vmlinuz-server -> vmlinuz-2.6.27-server-0.rc8.2mnb

=============================== sdb5/boot/grub: ===============================

total 256
drwxr-xr-x 2 root root  4096 2008-12-26 22:00 .
drwxr-xr-x 3 root root  4096 2008-12-26 22:00 ..
-rw-r--r-- 1 root root    45 2008-12-26 22:00 device.map
-rw-r--r-- 1 root root  8896 2008-12-26 22:00 e2fs_stage1_5
-rw-r--r-- 1 root root  8576 2008-12-26 22:00 fat_stage1_5
-rw-r--r-- 1 root root  7712 2008-12-26 22:00 ffs_stage1_5
-rwxr-xr-x 1 root root    117 2008-12-26 22:00 install.sh
-rw-r--r-- 1 root root  9216 2008-12-26 22:00 iso9660_stage1_5
-rw-r--r-- 1 root root  9632 2008-12-26 22:00 jfs_stage1_5
-rw-r--r-- 1 root root    897 2008-12-26 22:00 menu.lst
-rw-r--r-- 1 root root    223 2008-08-06 19:37 menu.lst.example
-rw-r--r-- 1 root root  7936 2008-12-26 22:00 minix_stage1_5
-rw-r--r-- 1 root root  10720 2008-12-26 22:00 reiserfs_stage1_5
-rw-r--r-- 1 root root    512 2008-12-26 22:00 stage1
-rw-r--r-- 1 root root 122186 2008-12-26 22:00 stage2
-rw-r--r-- 1 root root  8000 2008-12-26 22:00 ufs2_stage1_5
-rw-r--r-- 1 root root  7264 2008-12-26 22:00 vstafs_stage1_5
-rw-r--r-- 1 root root  10312 2008-12-26 22:00 xfs_stage1_5

=========================== sdb8/boot/grub/menu.lst: ===========================

# Modified by YaST2. Last modification on Sun Dec 21 17:14:18 CET 2008
default 0
timeout 30
gfxmenu (hd1,7)/boot/message

###Don't change this comment - YaST2 identifier: Original name:  Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)###
title Ubuntu 8.04, kernel 2.6.24-16-generic (/dev/sdb3)
    root (hd1,2)
    configfile /boot/grub/menu.lst
    configfile /boot/grub/menu.lst

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
    root (hd1,7)
    kernel /boot/vmlinuz-2.6.22.5-31-bigsmp root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 vga=0x317 resume=/dev/sdb7 splash=silent showopts
    initrd /boot/initrd-2.6.22.5-31-bigsmp

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
    rootnoverify (hd1,7)
    chainloader (hd0,1)+1

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
    rootnoverify (hd1,7)
    chainloader (hd1,0)+1

###Don't change this comment - YaST2 identifier: Original name: windows 3###
title windows 3
    rootnoverify (hd1,7)
    chainloader (hd1,1)+1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
    rootnoverify (hd1,7)
    chainloader (fd0)+1

title linux suggested by yancek
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a resume=UUID=743165c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
initrd (hd0,4)/boot/initrd.img

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.3
    root (hd1,7)
    kernel /boot/vmlinuz-2.6.22.5-31-bigsmp root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd-2.6.22.5-31-bigsmp


=============================== sdb8/etc/fstab: ===============================




/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part8 /                    ext3      acl,user_xattr        1 1
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part5 /                    ext3      acl,user_xattr 0 0
/dev/disk/by-id/scsi-SATA_SAMSUNG_SP2504CS09QJ1UP109613-part2 /windows/C          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part1 /windows/D          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part2 /windows/E          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_MAXTOR_STM35003_9QM357QE-part7 swap                swap      defaults              0 0
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0
/dev/fd0            /media/floppy        auto      noauto,user,sync      0 0

================================== sdb8/boot: ==================================

total 9684
drwxr-xr-x  3 root root    4096 2008-12-21 17:42 .
drwxr-xr-x 21 root root    4096 2009-01-04 19:59 ..
-rw-------  1 root root    512 2008-12-21 16:32 backup_mbr
lrwxrwxrwx  1 root root      1 2008-12-21 16:21 boot -> .
-rw-r--r--  1 root root  80530 2007-09-24 20:55 config-2.6.22.5-31-bigsmp
drwxr-xr-x  2 root root    4096 2009-01-03 22:01 grub
lrwxrwxrwx  1 root root      25 2008-12-21 16:32 initrd -> initrd-2.6.22.5-31-bigsmp
-rw-r--r--  1 root root 4140013 2008-12-21 16:32 initrd-2.6.22.5-31-bigsmp
-rw-r--r--  1 root root  389632 2008-12-21 17:42 message
-rw-r--r--  1 root root  99234 2007-09-24 21:01 symsets-2.6.22.5-31-bigsmp.tar.gz
-rw-r--r--  1 root root  400687 2007-09-24 21:01 symtypes-2.6.22.5-31-bigsmp.gz
-rw-r--r--  1 root root  116317 2007-09-24 21:00 symvers-2.6.22.5-31-bigsmp.gz
-rw-r--r--  1 root root  843618 2007-09-24 20:45 System.map-2.6.22.5-31-bigsmp
-rwxr-xr-x  1 root root 2165804 2007-09-24 20:55 vmlinux-2.6.22.5-31-bigsmp.gz
lrwxrwxrwx  1 root root      26 2008-12-21 16:25 vmlinuz -> vmlinuz-2.6.22.5-31-bigsmp
-rw-r--r--  1 root root 1611260 2007-09-24 20:45 vmlinuz-2.6.22.5-31-bigsmp

=============================== sdb8/boot/grub: ===============================

total 228
drwxr-xr-x 2 root root  4096 2009-01-03 22:01 .
drwxr-xr-x 3 root root  4096 2008-12-21 17:42 ..
-rw------- 1 root root    10 2008-12-21 16:32 default
-rw------- 1 root root    45 2008-12-21 17:14 device.map
-rw------- 1 root root    45 2008-12-21 16:32 device.map.old
-rw-r--r-- 1 root root  7576 2007-09-21 23:59 e2fs_stage1_5
-rw-r--r-- 1 root root  7424 2007-09-21 23:59 fat_stage1_5
-rw-r--r-- 1 root root  6664 2007-09-21 23:59 ffs_stage1_5
-rw-r--r-- 1 root root  6656 2007-09-21 23:59 iso9660_stage1_5
-rw-r--r-- 1 root root  8128 2007-09-21 23:59 jfs_stage1_5
-rw------- 1 root root  1857 2009-01-03 22:01 menu.lst
-rw------- 1 root root  1597 2008-12-21 16:32 menu.lst.old
-rw-r--r-- 1 root root  6844 2007-09-21 23:59 minix_stage1_5
-rw-r--r-- 1 root root  9160 2007-09-21 23:59 reiserfs_stage1_5
-rw-r--r-- 1 root root    512 2007-09-21 23:59 stage1
-rw-r--r-- 1 root root 103162 2008-12-21 16:32 stage2
-rw-r--r-- 1 root root  7004 2007-09-21 23:59 ufs2_stage1_5
-rw-r--r-- 1 root root  6228 2007-09-21 23:59 vstafs_stage1_5
-rw-r--r-- 1 root root  8820 2007-09-21 23:59 xfs_stage1_5

=========================== Unknown MBRs or Boot Sectors =======================

MFT Sector of /dev/sda2

00000000  46 49 4c 45 30 00 03 00  09 5c 00 02 00 00 00 00  |FILE0....\......|
00000010  01 00 01 00 38 00 01 00  a0 01 00 00 00 04 00 00  |....8...........|
00000020  00 00 00 00 00 00 00 00  06 00 00 00 00 00 00 00  |................|
00000030  04 00 00 00 00 00 00 00  10 00 00 00 60 00 00 00  |............`...|
00000040  00 00 18 00 00 00 00 00  48 00 00 00 18 00 00 00  |........H.......|
00000050  30 95 83 04 fd 62 c9 01  30 95 83 04 fd 62 c9 01  |0....b..0....b..|
*
00000070  06 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000080  00 00 00 00 00 01 00 00  00 00 00 00 00 00 00 00  |................|
00000090  00 00 00 00 00 00 00 00  30 00 00 00 68 00 00 00  |........0...h...|
000000a0  00 00 18 00 00 00 03 00  4a 00 00 00 18 00 01 00  |........J.......|
000000b0  05 00 00 00 00 00 05 00  30 95 83 04 fd 62 c9 01  |........0....b..|
000000c0  30 95 83 04 fd 62 c9 01  30 95 83 04 fd 62 c9 01  |0....b..0....b..|
000000d0  30 95 83 04 fd 62 c9 01  00 40 00 00 00 00 00 00  |0....b...@......|
000000e0  00 40 00 00 00 00 00 00  06 00 00 00 00 00 00 00  |.@..............|
000000f0  04 03 24 00 4d 00 46 00  54 00 00 00 00 00 00 00  |..$.M.F.T.......|
00000100  80 00 00 00 48 00 00 00  01 00 40 00 00 00 01 00  |....H.....@.....|
00000110  00 00 00 00 00 00 00 00  1f 00 00 00 00 00 00 00  |................|
00000120  40 00 00 00 00 00 00 00  00 00 02 00 00 00 00 00  |@...............|
00000130  00 00 02 00 00 00 00 00  00 00 02 00 00 00 00 00  |................|
00000140  31 20 00 00 0c 00 ff ff  b0 00 00 00 50 00 00 00  |1 ..........P...|
00000150  01 00 40 00 00 00 05 00  00 00 00 00 00 00 00 00  |..@.............|
00000160  01 00 00 00 00 00 00 00  40 00 00 00 00 00 00 00  |........@.......|
00000170  00 20 00 00 00 00 00 00  08 10 00 00 00 00 00 00  |. ..............|
00000180  08 10 00 00 00 00 00 00  31 01 ff ff 0b 31 01 83  |........1....1..|
00000190  74 29 00 01 60 fa ff ff  ff ff ff ff 00 00 00 00  |t)..`...........|
000001a0  00 00 01 00 00 00 00 00  31 10 00 00 0c 00 ff ff  |........1.......|
000001b0  b0 00 00 00 48 00 00 00  01 00 40 00 00 00 05 00  |....H.....@.....|
000001c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001d0  40 00 00 00 00 00 00 00  00 10 00 00 00 00 00 00  |@...............|
000001e0  08 00 00 00 00 00 00 00  08 00 00 00 00 00 00 00  |................|
000001f0  31 01 ff ff 0b 00 00 00  ff ff ff ff 00 00 04 00  |1...............|
00000200
MFT Sector of /dev/sdb1

00000000  46 49 4c 45 2a 00 03 00  6c db 09 09 00 00 00 00  |FILE*...l.......|
00000010  01 00 01 00 30 00 01 00  a0 01 00 00 00 04 00 00  |....0...........|
00000020  00 00 00 00 00 00 00 00  06 00 55 00 00 00 00 00  |..........U.....|
00000030  10 00 00 00 60 00 00 00  00 00 18 00 00 00 01 00  |....`...........|
00000040  48 00 00 00 18 00 00 00  00 be 8e 01 e3 62 c9 01  |H............b..|
00000050  00 be 8e 01 e3 62 c9 01  00 be 8e 01 e3 62 c9 01  |.....b.......b..|
00000060  00 be 8e 01 e3 62 c9 01  06 00 00 00 00 00 00 00  |.....b..........|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 01 00 00  |................|
00000080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000090  30 00 00 00 68 00 00 00  00 00 18 00 00 00 02 00  |0...h...........|
000000a0  4a 00 00 00 18 00 01 00  05 00 00 00 00 00 05 00  |J...............|
000000b0  00 be 8e 01 e3 62 c9 01  00 be 8e 01 e3 62 c9 01  |.....b.......b..|
*
000000d0  00 40 00 00 00 00 00 00  00 40 00 00 00 00 00 00  |.@.......@......|
000000e0  06 00 00 00 00 00 00 00  04 03 24 00 4d 00 46 00  |..........$.M.F.|
000000f0  54 00 00 00 00 00 00 00  80 00 00 00 50 00 00 00  |T...........P...|
00000100  01 00 40 00 00 00 04 00  00 00 00 00 00 00 00 00  |..@.............|
00000110  1f 39 00 00 00 00 00 00  40 00 00 00 00 00 00 00  |.9......@.......|
00000120  00 00 92 03 00 00 00 00  00 00 92 03 00 00 00 00  |................|
00000130  00 00 92 03 00 00 00 00  11 04 02 32 1c 39 5e 0b  |...........2.9^.|
00000140  01 00 ad 01 60 fa ff ff  b0 00 00 00 50 00 00 00  |....`.......P...|
00000150  01 00 40 00 00 00 05 00  00 00 00 00 00 00 00 00  |..@.............|
00000160  02 00 00 00 00 00 00 00  40 00 00 00 00 00 00 00  |........@.......|
00000170  00 30 00 00 00 00 00 00  08 20 00 00 00 00 00 00  |.0....... ......|
00000180  08 20 00 00 00 00 00 00  11 01 01 21 01 38 4e 31  |. .........!.8N1|
00000190  01 64 9e 17 00 fa ff ff  ff ff ff ff 00 00 00 00  |.d..............|
000001a0  11 04 02 31 0c 5e 0b 01  00 fd 8c 01 60 fa ff ff  |...1.^......`...|
000001b0  b0 00 00 00 48 00 00 00  01 00 40 00 00 00 05 00  |....H.....@.....|
000001c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001d0  40 00 00 00 00 00 00 00  00 10 00 00 00 00 00 00  |@...............|
000001e0  08 00 00 00 00 00 00 00  08 00 00 00 00 00 00 00  |................|
000001f0  11 01 01 00 00 00 00 00  ff ff ff ff 00 00 55 00  |..............U.|
00000200
MFT Sector of /dev/sdb2

00000000  46 49 4c 45 2a 00 03 00  34 f6 77 08 00 00 00 00  |FILE*...4.w.....|
00000010  01 00 01 00 30 00 01 00  a0 01 00 00 00 04 00 00  |....0...........|
00000020  00 00 00 00 00 00 00 00  06 00 2a 00 00 00 00 00  |..........*.....|
00000030  10 00 00 00 60 00 00 00  00 00 18 00 00 00 01 00  |....`...........|
00000040  48 00 00 00 18 00 00 00  80 54 27 02 e3 62 c9 01  |H........T'..b..|
00000050  80 54 27 02 e3 62 c9 01  80 54 27 02 e3 62 c9 01  |.T'..b...T'..b..|
00000060  80 54 27 02 e3 62 c9 01  06 00 00 00 00 00 00 00  |.T'..b..........|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 01 00 00  |................|
00000080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000090  30 00 00 00 68 00 00 00  00 00 18 00 00 00 02 00  |0...h...........|
000000a0  4a 00 00 00 18 00 01 00  05 00 00 00 00 00 05 00  |J...............|
000000b0  80 54 27 02 e3 62 c9 01  80 54 27 02 e3 62 c9 01  |.T'..b...T'..b..|
*
000000d0  00 40 00 00 00 00 00 00  00 40 00 00 00 00 00 00  |.@.......@......|
000000e0  06 00 00 00 00 00 00 00  04 03 24 00 4d 00 46 00  |..........$.M.F.|
000000f0  54 00 00 00 00 00 00 00  80 00 00 00 50 00 00 00  |T...........P...|
00000100  01 00 40 00 00 00 04 00  00 00 00 00 00 00 00 00  |..@.............|
00000110  6f 23 00 00 00 00 00 00  40 00 00 00 00 00 00 00  |o#......@.......|
00000120  00 00 37 02 00 00 00 00  00 00 37 02 00 00 00 00  |..7.......7.....|
00000130  00 00 37 02 00 00 00 00  11 04 02 32 6c 23 9e 0a  |..7........2l#..|
00000140  01 00 01 00 00 20 6f 8c  b0 00 00 00 50 00 00 00  |..... o.....P...|
00000150  01 00 40 00 00 00 05 00  00 00 00 00 00 00 00 00  |..@.............|
00000160  02 00 00 00 00 00 00 00  40 00 00 00 00 00 00 00  |........@.......|
00000170  00 30 00 00 00 00 00 00  08 20 00 00 00 00 00 00  |.0....... ......|
00000180  08 20 00 00 00 00 00 00  11 01 01 31 01 8f 02 01  |. .........1....|
00000190  31 01 5a 93 11 00 44 83  ff ff ff ff 00 00 00 00  |1.Z...D.........|
000001a0  11 04 02 31 0c 9e 0a 01  00 fd 8c 01 60 fa ff ff  |...1........`...|
000001b0  b0 00 00 00 48 00 00 00  01 00 40 00 00 00 05 00  |....H.....@.....|
000001c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001d0  40 00 00 00 00 00 00 00  00 10 00 00 00 00 00 00  |@...............|
000001e0  08 00 00 00 00 00 00 00  08 00 00 00 00 00 00 00  |................|
000001f0  11 01 01 00 00 00 00 00  ff ff ff ff 00 00 2a 00  |..............*.|
00000200

=============================== StdErr Messages: ===============================

hexdump: stdin: Illegal seek.
hexdump: stdin: Illegal seek.
hexdump: stdin: Illegal seek.
hexdump: stdin: Illegal seek.
hexdump: stdin: Illegal seek.
hexdump: stdin: Illegal seek.
hexdump: stdin: Illegal seek.
cat: sdb5/etc/issue: No such file or directory


CJS 01-04-2009 03:10 PM

OK, according to the results of the script, it is clear you are booting your sda drive on start up, so it is (hd0), and since the sdb drive is your only other drive, that means it must be (hd1) on start up. Therefore, your Mandriva Grub entries should use (hd1,4), but currently your Mandriva menu.lst uses (hd0,4) in all the entries. Also, since your Mandriva install uses gfxmenu, you might want to boot it using the chainloader technique so you can get the eye candy that you would expect with gfxmenu. How about trying the following as root user:
Code:

mkdir /tmp/sdb5
mount /dev/sdb5 /tmp/sdb5
cp /tmp/sdb5/usr/lib/grub/*/stage2 /tmp/sdb5/boot/grub
gedit /tmp/sdb5/boot/grub/menu.lst

Change "gedit" to "kate" if you are using KDE instead of Gnome; also the cp command above is to copy a fresh Grub stage2 file to your Mandriva /boot/grub directory, because your Mandriva's current stage2 file incorrectly points to the first partition for the menu.lst. In the menu.lst that pops up with gedit/kate, modify all your Mandriva entries to use (hd1,4) instead of (hd0,4), similar to:
Code:

title linux
kernel (hd1,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=6460a523-8375-40e3-9958-31c179210b3a  resume=UUID=743165c2-5731-4133-9976-0fc7fd90d02c splash=silent vga=788
initrd (hd1,4)/boot/initrd.img

You might also want to change the "title" line to Mandriva, rather than just "linux" as the menu.lst currently uses. Then in your OpenSUSE menu.lst, change the Mandriva entry to:
Code:

title Mandriva Grub menu
root (hd1,4)
chainloader +1

And then I think you should be able to boot Mandriva OK. How about giving it a shot and let us know how it goes.

Gins 01-04-2009 03:46 PM

CJS

Before executing the commands you suggested, I would like to know a few things.

I didn't install anything on sda drive.

I installed everything on sdb drive.

I installed Windows Vista and Windows 2008 server on sdb1 and sdb2:

I installed Ubuntu on sdb3.

Above 3 operating systems comes on to the screen. I don't have any problems.

Even open SuSE 10.3 comes to the screen.

I installed it on sdb8.

I installed Mandriva on sdb5.

My sdb4 is an extended partition.

I didn't install anything on sda drive, as yet.

Am I wrong?

You browsed the file and gathered information.
-----------------------------------------------------------------------------------------------------------
I hope to install open SuSE 11.1 and Slackware 12.0 on sda when time permits.

I have downloaded them.

CJS 01-04-2009 03:56 PM

Quote:

Originally Posted by Gins (Post 3397078)
CJS

Before executing the commands you suggested, I would like to know a few things.

I didn't install anything on sda drive.

I installed everything on sdb drive.

I installed Windows Vista and Windows 2008 server on sdb1 and sdb2:

I installed Ubuntu on sdb3.

Above 3 operating systems comes on to the screen. I don't have any problems.

Actually when you installed your distros on the sdb drive, most distros by default install Grub to the MBR (Master Boot Record) of /dev/sda, which they assume to be the drive you boot from. So you do have Grub currently installed to the MBR of your sda Vista drive, and it points to OpenSUSE on your sdb drive for its boot files (menu.lst and stage2). Also, the reason you can boot Ubuntu and OpenSUSE OK is because their entries in the menu.lst use (hd1,2) and (hd1,7) respectively; that would mean that Mandriva, being on the same drive, must use (hd1,4) rather than (hd0,4), because (hd0) is your Windows drive and (hd1) is your Linux drive. Grub on start up sees the order of drives the same as the BIOS boot order, so whichever drive you boot from is (hd0), and the other drives will then be (hd1), (hd2), etc.

Gins 01-04-2009 04:10 PM

CJS

Code:

ni@SuseLinux103:~> su root
Password:
SuseLinux103:/home/ni # mkdir /tmp/sdb5
SuseLinux103:/home/ni # mount /dev/sdb5 /tmp/sdb5
SuseLinux103:/home/ni #

The following didn't work.
Have you made an error?
SuseLinux103:/home/ni # cp /tmp/sdb5/usr/lib/grub/*/stage2 /tmp/sdb5/boot/grub
cp: cannot stat `/tmp/sdb5/usr/lib/grub/*/stage2': No such file or directory
SuseLinux103:/home/ni #


CJS 01-04-2009 05:02 PM

The /usr/lib/grub/*/* directory is typically where Grub keeps its original stage files in the distros I've used, but I haven't used Mandriva, so I could be wrong for Mandriva. Since you can't copy over the stage2 file, try this instead (while you still have sdb5 mounted on /tmp/sdb5), and please post the output:
Code:

mount --bind /dev /tmp/sdb5/dev
mount --bind /proc /tmp/sdb5/proc
chroot /tmp/sdb5
grub
grub> root (hd1,4)
grub> setup (hd1,4)
grub> quit
exit

And we can work from there.

yancek 01-04-2009 08:28 PM

I would agree with CJS about grub stage1 being on sda as the default install is to the mbr of the first drive. I expect this happened with the Opensuse install as that is the menu which comes up first.

I'll be interested to see if your suggestions work.

Post 16 shows root (hd1,4)configfile entry from Ubuntu menu.lst giving "bad file or directory" error
Post 20 shows NO Mandriva entry in Opensuse menu.lst.
Post 26 shows the Mandriva menu.lst and all the entries for the different OS's show the sdb drive as (hd0)??
Post 29 shows what should be a correct entry for Mandriva in the Opensuse menu.lst but the stanza has (hd0) instead of (hd1)
Post 35 shows a correct entry for Mandriva in theOpensuse menu.lst but no initrd lines (cut off in the post?)

Interesting that Mandriva grub sees itself on (hd0) while the other systems see (hd1)?

Gins 01-05-2009 11:12 AM

First I mounted sdb5.

The following procedure worked fine.

Code:

mount --bind /dev /tmp/sdb5/dev
mount --bind /proc /tmp/sdb5/proc
chroot /tmp/sdb5
grub
grub> root (hd1,4)
grub> setup (hd1,4)
grub> quit
exit

---------------------------------------------------

The following is the part of the output:
Code:


GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
  lists possible command completions.  Anywhere else TAB lists the possible
  completions of a device/filename. ]

grub> root (hd1,4)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd1,4)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd1,4)"... failed (this is not fatal)
 Running "embed /boot/grub/e2fs_stage1_5 (hd1,4)"... failed (this is not fatal)
 Running "install /boot/grub/stage1 (hd1,4) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.

grub>

grub> quit
[root@SuseLinux103 /]# grub
Probing devices to guess BIOS drives. This may take a long time.
[root@SuseLinux103 /]#

Please suggest the next step.



PS
CJS wrote the following:
Code:

Actually when you installed your distros on the sdb drive, most distros by default install Grub to the MBR (Master Boot Record) of /dev/sda, which they assume to be the drive you boot from.
I don't know those peculiar things. I guess those things border bugs.

It was not my intention to install open SuSE 10.3 on sdb8.
The installation procedure dictated terms and installed on sdb8.
I just obliged because I wanted an old open SuSE version.

On the other hand I am no expert in these matters. If you know everything, it may be possible to select the partition.

Mandriva is different. It gives you all the choices to select partitions, programs etc.

I would like to say it has the most user friendly installation procedure.

You might wonder why I need an old version of open SuSE.

I bought about 200 CDs and 50 DVDs about 4 years ago. I didn't use them because in most cases, like the other people, I use or rather burn programs onto DVDs.

When you install a latest version of linux distro, you get the latest version kb3 burning program.

My old CDs and DVDs are not compatible with the latest version of k3b burning program.
When burning a CD or a DVD, I get an error message. The funny error message comes at the end of the DVD/CD burning.

I installed the old version of open SuSE which is 10.3 to test.

All my old CDs and DVDs are working fine in open SuSE 10.3. So it is obvious that nothing wrong with the my CDs and DVDs.

CJS 01-05-2009 11:18 AM

OK, looks like Grub was installed successfully to your Mandriva partition boot sector, so how about following the commands from post #58 in order to modify your Mandriva menu.lst, but omit the "cp" command. Also be sure to add the Mandriva entry at the bottom of that post to your OpenSUSE menu.lst, then reboot, and let us know exactly what happens when you try and boot Mandriva. We can go from there.

Gins 01-05-2009 11:30 AM

CJS

The following is from post 58.
Code:

mkdir /tmp/sdb5
mount /dev/sdb5 /tmp/sdb5
cp /tmp/sdb5/usr/lib/grub/*/stage2 /tmp/sdb5/boot/grub
gedit /tmp/sdb5/boot/grub/menu.lst

Could you please write the exact commands you want me to try?

CJS 01-05-2009 11:35 AM

OK, how about trying:
Code:

mkdir /tmp/sdb5
mount /dev/sdb5 /tmp/sdb5
gedit /tmp/sdb5/boot/grub/menu.lst

And replace "gedit" with "kate" in the above commands if you are using KDE instead of Gnome. Then modify all your Mandriva entries in the menu.lst as shown in post #58; once you are done with that, open your OpenSUSE menu.lst and add the Mandriva entry to it given at the bottom of post #58. Let me know how that goes or if you run into problems.


All times are GMT -5. The time now is 03:44 PM.