Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37

Thread: 11.3 - can't find grub without disc/boot from hard disc

  1. #1

    Default 11.3 - can't find grub without disc/boot from hard disc

    I have just installed 11.3 x64. The installation went fine and worked for the first few hours. I ran the online update tool, and now it cannot find grub unless the installation disc is inserted and I select the "boot from hard disc" option. Hopefully someone knows how to correct this problem. Thanks in advance.

    I have read about the problem of the root partition being back, but not sure that's it.

    sda1 - swap
    sda2 - /
    sda3 - /home

    There used to be a repair tool in the installation disks. I could not find that in this media. Is that still available?

  2. #2

    Default Re: 11.3 - can't find grub without disc/boot from hard disc

    a question ?
    where did you install grub ?????
    it is suposed to be in the FIRST linux partition
    On a suse only install that would be sda1

    now it "can" be put on "/" but that is sda2
    so sda2 MUST be an ext3 format ed partition ( lvm and ext4 will nor work with grub )

    if you did put /boot on the / partition then there will be a boot configure file
    /boot/grub/menu.lst

    on that file will be a listing of just where things are

    can you post that along with the output of this command
    Code:
    su -
    fdisk -l



  3. #3
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: 11.3 - can't find grub without disc/boot from hard disc

    There is a script file by please_try_again that can locate your grub boot loader. Message #59 has the most recent version to use:

    Looking for Grub and Windows bootloader in all partitions.

    Download, make executable and run the script file program. Copy and past the results of findgrub for us to see here in the forum:

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  4. #4

    Default Re: 11.3 - can't find grub without disc/boot from hard disc

    I just accepted the installation defaults. Thanks for the help.

    Here is the menu.lst

    Code:
    # Modified by YaST2. Last modification on Sat Jan  1 11:34:56 EST 2011
    # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
    # Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader
    
    default 0
    timeout 8
    gfxmenu (hd1,1)/boot/message
    
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title Desktop -- openSUSE 11.3 - 2.6.34.7-0.5
        root (hd1,1)
        kernel /boot/vmlinuz-2.6.34.7-0.5-desktop root=/dev/disk/by-id/ata-Hitachi_HDS721616PLA380_PVF904Z23A71RN-part2 resume=/dev/disk/by-id/ata-Hitachi_HDS721616PLA380_PVF904Z23A71RN-part1 splash=silent quiet showopts vga=0x348
        initrd /boot/initrd-2.6.34.7-0.5-desktop
    
    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- openSUSE 11.3 - 2.6.34.7-0.5
        root (hd1,1)
        kernel /boot/vmlinuz-2.6.34.7-0.5-desktop root=/dev/disk/by-id/ata-Hitachi_HDS721616PLA380_PVF904Z23A71RN-part2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x348
        initrd /boot/initrd-2.6.34.7-0.5-desktop
    
    ###Don't change this comment - YaST2 identifier: Original name: windows###
    title Windows
        rootnoverify (hd0,0)
        chainloader +1
    
    ###Don't change this comment - YaST2 identifier: Original name: floppy###
    title Floppy
        rootnoverify (fd0)
        chainloader +1
    Here is the fdisk -l

    Code:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000378f2
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1         262     2104483+  82  Linux swap / Solaris
    /dev/sda2             263        4179    31463302+  83  Linux
    /dev/sda3            4180       10707    52436160   83  Linux
    /dev/sda4           10708       19457    70284375    f  W95 Ext'd (LBA)
    /dev/sda5           10708       15276    36700461   83  Linux
    /dev/sda6           15277       19457    33583851    c  W95 FAT32 (LBA)
    
    Disk /dev/sdb: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000d9e73
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1        2550    20482843+  83  Linux
    /dev/sdb2            2551        9729    57665317+  83  Linux
    
    Disk /dev/sdc: 15.4 GB, 15377080320 bytes
    255 heads, 63 sectors/track, 1869 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00037716
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1   *           1        1868    15004678+   c  W95 FAT32 (LBA)
    
    Disk /dev/sdd: 2029 MB, 2029518848 bytes
    129 heads, 32 sectors/track, 960 cylinders
    Units = cylinders of 4128 * 512 = 2113536 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xc3072e18
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdd1   *           1         961     1981936    6  FAT16

    Once this is resolved I was going to post another question. I add it here in case it affects this issue. This installation moved the drive that was previously sda to sdd. It has windows XP on it. I don't use it much, and haven't tried to open it until this update was clean. But seeing as windows expects to be on the first drive, I don't expect it to work. Is there a way to manually identify a drive to a specific device? (sda & sdb are sata, sdc & sdd are ide devices) Note the windows boot section in grub, hd0,0. But that is now sdd. If grub is still in that old location that may be the issue.
    Last edited by idee; 01-Jan-2011 at 18:16. Reason: update

  5. #5

    Default Re: 11.3 - can't find grub without disc/boot from hard disc

    James,
    Thank you. Here is the output from findgrub 2.1

    Code:
    Find Grub Version 2.1 - Written for openSUSE Forums
    
    
     - reading MBR on disk /dev/sda                    ...
     - skiping partition   /dev/sda1   (swap)         
     - reading bootsector  /dev/sda2   (LINUX)         ...
     - reading bootsector  /dev/sda3   (LINUX)         ...
     - reading bootsector  /dev/sda4   (Extended)      ...
     - reading bootsector  /dev/sda5   (LINUX)         ...
     - searching partition /dev/sda6   (FAT32)         ...
     - reading MBR on disk /dev/sdb                    ...
     - reading bootsector  /dev/sdb1   (LINUX)         ...
     - reading bootsector  /dev/sdb2   (LINUX)         ...
     - reading MBR on disk /dev/sdc                    ... --> Grub found in MBR
     - searching partition /dev/sdc1   (FAT32)         ... --> Windows NT/2K/XP Loader found in /dev/sdc1
    
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    You can add the following entry to /boot/grub/menu.lst :
    
    ###Don't change this comment - YaST2 identifier: Original name: WindowsBootLoader###
    title Windows on /dev/sdc1
        rootnoverify (hd0,0)
        chainloader +1
    
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
     - reading MBR on disk /dev/sdd                    ...
     - searching partition /dev/sdd1   (FAT16)         ...
    So the next question is related. Now what, were should I start?

  6. #6
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: 11.3 - can't find grub without disc/boot from hard disc

    Something does not seem right. We need to know what is in your device.map file as well AND what is the boot order in your BIOS setup? If, as is normal, you boot from hard disk sda first, then your grub menu.lst file is wrong. It looks like you have loaded openSUSE onto sda2, your menu.lst file is loading openSUSE from root(hd1,1) which could not be valid. Your device.map file MUST match the present boot order in your BIOS. Further, when you boot from an openSUSE installation, disk, it can not guess the correct boot order if it is not sda and so YOU must manually set the device.map file boot order to match how you are booting the disk in your BIOS.

    Code:
    cat /boot/grub/device.map
    If you set the sda hard drive to be the first boot disk then all root(hd1,1) must change to root(hd0,1). For what you have to work now, you would need to swap the cables between sda and sdb in the hardware and make the new sda the boot disk and the grub boot loader would need to be loaded on it, which is doubtful. Only the grub boot loader has this particular issue as it is using logical drive designations which must be true at boot time. Don't play with the hard disk boot order before or after installing openSUSE unless you know what this will do to your installation.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  7. #7
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: 11.3 - can't find grub without disc/boot from hard disc

    - reading MBR on disk /dev/sda ...
    - skiping partition /dev/sda1 (swap)
    - reading bootsector /dev/sda2 (LINUX) ...
    - reading bootsector /dev/sda3 (LINUX) ...
    - reading bootsector /dev/sda4 (Extended) ...
    - reading bootsector /dev/sda5 (LINUX) ...
    - searching partition /dev/sda6 (FAT32) ...
    - reading MBR on disk /dev/sdb ...
    - reading bootsector /dev/sdb1 (LINUX) ...
    - reading bootsector /dev/sdb2 (LINUX) ...
    - reading MBR on disk /dev/sdc ... --> Grub found in MBR
    - searching partition /dev/sdc1 (FAT32) ... --> Windows NT/2K/XP Loader found in /dev/sdc1

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    You can add the following entry to /boot/grub/menu.lst :

    ###Don't change this comment - YaST2 identifier: Original name: WindowsBootLoader###
    title Windows on /dev/sdc1
    rootnoverify (hd0,0)
    chainloader +1

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    - reading MBR on disk /dev/sdd ...
    - searching partition /dev/sdd1 (FAT16) ...
    So, you must set the sdc drive as the boot drive in your BIOS, have it first in your device.map file and you are loading openSUSE from sdb? I must say, you might want to rethink this setup.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  8. #8

    Default Re: 11.3 - can't find grub without disc/boot from hard disc

    At this point I am not really sure quite what to do. As I mentioned, this is what was set up via the YaST installation tool. I didn't select any specific device order other than identifying and setting the mount points for the existing partitions (/home, /local, /windows C & D). I did set the root partition to ext4 as the newer option, not knowing it might cause an issue. I am no expert, but one thing I hope I have learned over the years of mistakes is once I get to the place I can't fix it or find the answer myself, to ask questions and wait before messing something big. I am open to any suggestions as to how to get the system to work correctly. Here is the grub device.map

    It is still odd to me how:
    1 - it was working directly after the install until . . . ? and
    2 - that it will find it when booting via the disk, but not without.

    Willing to try what ever is needed.


    Code:
     cat /boot/grub/device.map
    (fd0)	/dev/fd0
    (hd0)	/dev/disk/by-id/ata-IBM-DJNA-351520_G80GLW4M080
    (hd2)	/dev/disk/by-id/ata-ST380815AS_6RW0L125
    (hd1)	/dev/disk/by-id/ata-Hitachi_HDS721616PLA380_PVF904Z23A71RN

  9. #9
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: 11.3 - can't find grub without disc/boot from hard disc

    I can't tell which disk is which since the names are based on the at-id and not /dev/sdX, unless you know which is sda, sdb, sdc and sdd. There is another script that can help and it can be downloaded ready to go by a user called please_try_again. Don't lose hope just yet.

    http://www.unixversal.com/linux/openSUSE/halinfo20.tgz

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  10. #10

    Default Re: 11.3 - can't find grub without disc/boot from hard disc

    You might actually download, make executable and run the following script as well:
    Displaying partitions infos from hal daemon

    Run it with : halinfo -uV and post the output.

    It will show us everything we need to know about your partitions.

    * Sorry for the duplicate advice. James was faster.

Page 1 of 4 123 ... 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
  •