Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
I have just tried to install Fedora 9 [first] and openSUSE 10.3 [then], but for some reason that I still don't know, while openSUSE was booting fine from GRUB, the ...
  1. #1
    Just Joined!
    Join Date
    Aug 2008
    Posts
    10

    [SOLVED] boot fedora 9 with openSUSE 10.3 GRUB

    I have just tried to install Fedora 9 [first] and openSUSE 10.3 [then], but for some reason that I still don't know, while openSUSE was booting fine from GRUB, the GRUB gave me an error about Fedora boot [GRUB Error 2: Bad file or directory].

    Plz help................

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    I assume from your post that you can boot opensuse 10.3 so, open a terminal as root and run the command "fdisk -l" and post output here. Also post output of /boot/grub/menu.lst file. Indicate which partition has opensuse and which fedora.

  3. #3
    Just Joined!
    Join Date
    Aug 2008
    Posts
    10
    Code:
    Disk /dev/sda: 40.0 GB, 40060403712 bytes
    255 heads, 63 sectors/track, 4870 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00057da8
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        1305    10482381    7  HPFS/NTFS
    /dev/sda2            3461        4870    11325825    7  HPFS/NTFS
    /dev/sda3            1306        1958     5245222+  83  Linux
    /dev/sda4            1959        3460    12064815    5  Extended
    /dev/sda5            1959        2154     1574338+  82  Linux swap / Solaris
    /dev/sda6            2155        3460    10490413+  83  Linux
    sda3 is my fedora root and sda6 the openSUSE root partition...........
    I first installed fedora with GRUB in MBR and then SUSE with again GRUB in MBR...
    so i guess the fedora GRUB has been overwritten....
    is there anything i can do without re-installing fedora with GRUB in /boot...
    coz i've read many articles saying one GRUB which has to be used should be in MBR and the other in /boot....

    My menu.lst looks like this....

    Code:
    # Modified by YaST2. Last modification on Sat Aug 16 07:36:37 IST 2008
    default 2
    timeout 10
    gfxmenu (hd0,5)/boot/message
    
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title openSUSE 10.3
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_SV4002H-part6 vga=0x317 resume=/dev/sda5 splash=silent showopts
        initrd /boot/initrd-2.6.22.5-31-default
    
    ###Don't change this comment - YaST2 identifier: Original name:  Fedora (2.6.25-0.234.rc9.git1.fc9.i686) (/dev/sda3)###
    title Fedora (2.6.25-0.234.rc9.git1.fc9.i686) (/dev/sda3)
        root (hd0,2)
        configfile /boot/grub/menu.lst
        configfile /boot/grub/menu.lst
    
    ###Don't change this comment - YaST2 identifier: Original name: windows 1###
    title windows 1
        rootnoverify (hd0,5)
        chainloader (hd0,0)+1
    
    ###Don't change this comment - YaST2 identifier: Original name: windows 2###
    title windows 2
        rootnoverify (hd0,5)
        chainloader (hd0,1)+1
    
    ###Don't change this comment - YaST2 identifier: Original name: floppy###
    title Floppy
        rootnoverify (hd0,5)
        chainloader (fd0)+1
    
    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- openSUSE 10.3
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_SV4002H-part6 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-default
    I also have backup of fedora's grub.conf file if of any use...........
    i tried doing this using fedora's grub.conf to no use....

    Code:
    # Modified by YaST2. Last modification on Sat Aug 16 09:45:14 IST 2008
    default 2
    timeout 10
    gfxmenu (hd0,5)/boot/message
    
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title openSUSE 10.3
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_SV4002H-part6 vga=0x317 resume=/dev/sda5 splash=silent showopts
        initrd /boot/initrd-2.6.22.5-31-default
    
    ###Don't change this comment - YaST2 identifier: Original name:  Fedora (2.6.25-0.234.rc9.git1.fc9.i686) (/dev/sda3)###
    title Fedora 8.93
        root (hd0,2)
        kernel /boot/vmlinuz-2.6.25-0.234.rc9.git1.fc9.i686 ro root=UUID=32d6b689-c754-4741-a8f4-40af08f41e9b rhgb quiet
        initrd /boot/initrd-2.6.25-0.234.rc9.git1.fc9.i686.img
    
    ###Don't change this comment - YaST2 identifier: Original name: windows 1###
    title Windows XP
        rootnoverify (hd0,5)
        chainloader (hd0,0)+1
    
    ###Don't change this comment - YaST2 identifier: Original name: floppy###
    title Floppy
        rootnoverify (hd0,5)
        chainloader (fd0)+1
    
    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- openSUSE 10.3
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_SV4002H-part6 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-default

  4. #4
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    I'm not sure which menu.lst file you're using as they both look like opensuse menu.lst? I assume it's the first one based on the error message. You need to change your entry from:

    title Fedora (2.6.25-0.234.rc9.git1.fc9.i686) (/dev/sda3)
    root (hd0,2)
    configfile /boot/grub/menu.lst
    configfile /boot/grub/menu.lst

    to: title Fedora (2.6.25-0.234.rc9.git1.fc9.i686) (/dev/sda3)
    root (hd0,2)
    configfile /boot/grub/grub.conf

    There is a menu.lst file in Fedora but it is just a link to grub.conf which is why you get bad file or directory message, Error 2.

  5. #5
    Just Joined!
    Join Date
    Dec 2007
    Posts
    86
    Replace your old menu.lst by a fresh default menu.lst.

  6. #6
    Just Joined!
    Join Date
    Aug 2008
    Posts
    10
    Still not getting it right...........Gives the same error...........
    What if i Boot Fedora disk and repair the system???
    Will it again overwrite SUSE's GRUB and cause the same problem for booting SUSE???

  7. #7
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    If you are able to see the Fedora files from Opensuse, check to see that these files are in the /boot directory:

    vmlinuz-2.6.25-0.234.rc9.git1.fc9.i686
    boot/initrd-2.6.25-0.234.rc9.git1.fc9.i686.img

    If you can't view Fedora files run these commands in Opensuse as root:

    mkdir /mnt/fedora (hit enter key)
    mount -t ext3 /dev/sda3 /mnt/fedora (hit enter key)
    cd /mnt/fedora (hit enter key)
    ls -l (hit enter key)
    If you get a listing of files here then do the following:
    cd /boot/grub/
    ls -l
    Look for a grub.conf file and see if there are correct entries. One of the menu.lst files you posted earlier had an entry pointing to the (hd0,2) menu.lst file in Fedora which is just a link, so it needs to be grub.conf. You have two menu.lst files for Opensuse? Which one are you using? The second one listed in your previous post has a later date so I assume that is it. Check to see if you have the vmlinuz and initrd files as suggested above.

    If you re-install and repair mbr with fedora disk it will overwrite the Opensuse mbr and you will need to manually edit the grub.conf. You should not have two menu.lst files in Opensuse, one should be a backup?

  8. #8
    Just Joined!
    Join Date
    Nov 2007
    Location
    Bangalore, India
    Posts
    27
    Code:
    ###Don't change this comment - YaST2 identifier: Original name:  Fedora (2.6.25-0.234.rc9.git1.fc9.i686) (/dev/sda3)###
    title Fedora (2.6.25-0.234.rc9.git1.fc9.i686) (/dev/sda3)
        root (hd0,2)
        configfile /boot/grub/menu.lst
        configfile /boot/grub/menu.lst
    Change the above entry in your openSUSE menu.lst as:

    title Fedora
    root (hd0, 2)
    kernel /boot/vmlinuz-2.6.25-0.234.rc9.git1.fc9.i686 root=/dev/sda3 ro
    initrd /boot/initrd-2.6.25-0.234.rc9.git1.fc9.i686.img

    btw, is the version number "2.6.25-0.234.rc9.git1.fc9.i686" correct? checkout in the boot directory of the fedora as explained above and edit the menu.lst of openSUSE.

  9. #9
    Just Joined!
    Join Date
    Aug 2008
    Posts
    10
    To, svzard

    Yes the version no. is correct.

    and i tried doing wat you explained above but didn't work.......
    gives d same error......

  10. #10
    Just Joined!
    Join Date
    Aug 2008
    Posts
    10
    To yancek,

    both the files you referred are present....

    Code:
    total 5664
    -rw-r--r-- 1 root root  892167 Apr 16 04:13 System.map-2.6.25-0.234.rc9.git1.fc9.i686
    -rw-r--r-- 1 root root   86371 Apr 16 04:13 config-2.6.25-0.234.rc9.git1.fc9.i686
    drwxr-xr-x 3 root root    4096 Aug 14 01:45 efi
    drwxr-xr-x 2 root root    4096 Aug 14 02:14 grub
    -rw------- 1 root root 2699636 Aug 14 01:51 initrd-2.6.25-0.234.rc9.git1.fc9.i686.img
    -rwxr-xr-x 1 root root 2086976 Apr 16 04:13 vmlinuz-2.6.25-0.234.rc9.git1.fc9.i686


    Code:
    total 328
    -rw-r--r-- 1 root root     63 Aug 14 02:14 device.map
    -rw-r--r-- 1 root root  11768 Aug 14 02:14 e2fs_stage1_5
    -rw-r--r-- 1 root root  11528 Aug 14 02:14 fat_stage1_5
    -rw-r--r-- 1 root root  10776 Aug 14 02:14 ffs_stage1_5
    -rw------- 1 root root    737 Aug 14 02:14 grub.conf
    -rw-r--r-- 1 root root  10768 Aug 14 02:14 iso9660_stage1_5
    -rw-r--r-- 1 root root  12440 Aug 14 02:14 jfs_stage1_5
    lrwxrwxrwx 1 root root     11 Aug 14 02:14 menu.lst -> ./grub.conf
    -rw-r--r-- 1 root root  10984 Aug 14 02:14 minix_stage1_5
    -rw-r--r-- 1 root root  13376 Aug 14 02:14 reiserfs_stage1_5
    -rw-r--r-- 1 root root  66003 Apr 12 01:32 splash.xpm.gz
    -rw-r--r-- 1 root root    512 Aug 14 02:14 stage1
    -rw-r--r-- 1 root root 110532 Aug 14 02:14 stage2
    -rw-r--r-- 1 root root  11040 Aug 14 02:14 ufs2_stage1_5
    -rw-r--r-- 1 root root  10376 Aug 14 02:14 vstafs_stage1_5
    -rw-r--r-- 1 root root  13016 Aug 14 02:14 xfs_stage1_5
    menu.lst is a link to grub.conf

    and i've tried using both the menu.lst files to no use....

    Code:
    ###Don't change this comment - YaST2 identifier: Original name:  Fedora (2.6.25-0.234.rc9.git1.fc9.i686) (/dev/sda3)###
    title Fedora (2.6.25-0.234.rc9.git1.fc9.i686) (/dev/sda3)
        root (hd0,2)
        configfile /boot/grub/menu.lst
        configfile /boot/grub/menu.lst
    this was the original menu.lst which didnot work and

    Code:
    ###Don't change this comment - YaST2 identifier: Original name:  Fedora (2.6.25-0.234.rc9.git1.fc9.i686) (/dev/sda3)###
    title Fedora 8.93
        root (hd0,2)
        kernel /boot/vmlinuz-2.6.25-0.234.rc9.git1.fc9.i686 ro root=UUID=32d6b689-c754-4741-a8f4-40af08f41e9b rhgb quiet
        initrd /boot/initrd-2.6.25-0.234.rc9.git1.fc9.i686.img
    this one i copied from the grub.conf

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...