Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: GRUB Error 17 when extra hard drive not attached

  1. #1

    Default GRUB Error 17 when extra hard drive not attached

    I recently installed openSUSE 11.4 on another hard disk of my 11.3 machine. I have another drive in my computer that is used solely for extra storage. Before installing 11.4 I could boot my computer with or without the drive installed, but now if I try to boot without it I get Error 17 from GRUB. I don't understand this as there is nothing on that drive that should be needed by boot and I can find nothing in the GRUB configuration that references the drive.

    I am getting ready to clear the whole system for a fresh install anyways, but it would be nice to know for future knowledge what is causing it.

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,270

    Default Re: GRUB Error 17 when extra hard drive not attached

    Please show the output of
    Code:
    su -c 'fdisk -l'
    then we see what you have and do not have to talk about vague things like "another disk".

    Also the output of
    Code:
    su -c 'cat /boot/grub/menu.lst'
    might support what you say about you saying "I can find nothing in the GRUB configuration that references the drive"".

    In short: we need facts, not stories.
    Henk van Velden

  3. #3

    Default Re: GRUB Error 17 when extra hard drive not attached

    A possible explanation is that when you installed openSUSE, your external disk was the first BIOS drive (hd0) and your internal drive the second one (hd1). So Grub was installed and set to boot from hd1. When you remove the external disk, hd1 becomes hd0 and the bootloader doesn't find its boot drive anymore. Open the file /boot/grub/menu.lst and replace any occurence of hd1 with hd0 in this file, then change the boot order in the BIOS and give you internal drive the higher priority. No need to reinstall the system.

  4. #4

    Default Re: GRUB Error 17 when extra hard drive not attached

    I think that is actually the problem. menu.lst lists the boot drive as (hd2,0) and when I remove that one drive it changes the boot device order like you said. I assumed that (hdx, y) would correlate with /dev/sda, b, c, etc, but the dev listing is not in the same order as they are in the BIOS.

  5. #5
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: GRUB Error 17 when extra hard drive not attached

    When you pull a drive and then plug it in again
    You'll need to set the boot order in BIOS again because everything moves
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  6. #6

    Default Re: GRUB Error 17 when extra hard drive not attached

    I didn't have a chance to reply earlier, but I tried changing the boot order in BIOS and the (hdx, y) in grub and it didn't work. I don't understand this, the drive only has a backup of my home folder on it.

    Here are the outputs of the commands asked for above:

    fdisk -l

    Disk /dev/sda: 750.2 GB, 750156374016 bytes
    255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x84eeb34c

    Device Boot Start End Blocks Id System
    /dev/sda1 2048 307202047 153600000 83 Linux
    /dev/sda2 307204096 512004095 102400000 83 Linux

    Disk /dev/sdb: 200.0 GB, 200049647616 bytes
    255 heads, 63 sectors/track, 24321 cylinders, total 390721968 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000a6227

    Device Boot Start End Blocks Id System
    /dev/sdb1 2048 390721535 195359744 83 Linux

    Disk /dev/sdc: 640.1 GB, 640135028736 bytes
    255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xfdfaf88e

    Device Boot Start End Blocks Id System
    /dev/sdc1 * 63 83907494 41953716 83 Linux
    /dev/sdc2 83907495 713061089 314576797+ 83 Linux
    /dev/sdc3 713061090 1132486109 209712510 83 Linux
    /dev/sdc4 1132486110 1145065004 6289447+ 82 Linux swap / Solaris

    Disk /dev/sdd: 2097 MB, 2097152000 bytes
    66 heads, 63 sectors/track, 985 cylinders, total 4096000 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000

    Device Boot Start End Blocks Id System
    /dev/sdd1 * 123 4095615 2047746+ 6 FAT16

    The device in question is the 750GB one.

    cat /boot/grub/menu.lst
    # Modified by YaST2. Last modification on Mon May 9 03:35:18 EDT 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 (hd2,0)/boot/message

    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title Desktop -- openSUSE 11.4 - 2.6.37.1-1.2
    root (hd2,0)
    kernel /boot/vmlinuz-2.6.37.1-1.2-desktop root=/dev/disk/by-id/ata-ST3200822AS_3LJ3SKZM-part1 resume=/dev/disk/by-id/ata-WDC_WD6402AAEX-00Z3A0_WD-WCATR0122404-part4 splash=silent quiet showopts vga=0x314
    initrd /boot/initrd-2.6.37.1-1.2-desktop

    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- openSUSE 11.4 - 2.6.37.1-1.2
    root (hd2,0)
    kernel /boot/vmlinuz-2.6.37.1-1.2-desktop root=/dev/disk/by-id/ata-ST3200822AS_3LJ3SKZM-part1 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x314
    initrd /boot/initrd-2.6.37.1-1.2-desktop

  7. #7
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: GRUB Error 17 when extra hard drive not attached

    This your suse device correct?
    Code:
    Disk /dev/sdc: 640.1 GB, 640135028736 bytes
    255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xfdfaf88e
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1   *          63    83907494    41953716   83  Linux
    /dev/sdc2        83907495   713061089   314576797+  83  Linux
    /dev/sdc3       713061090  1132486109   209712510   83  Linux
    /dev/sdc4      1132486110  1145065004     6289447+  82  Linux swap / Solaris



    But which HD was first in the BIOS with SUSE as sdc when you installed?
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  8. #8

    Default Re: GRUB Error 17 when extra hard drive not attached

    11.4 is installed on the 200GB disk. When I installed 11.4 the 640GB one was first as it was the system disk for 11.3. It was the only disk installed when I installed 11.2 (which I later upgraded to 11.3), and I was able to add and remove any drive I wanted until I installed 11.4.

  9. #9
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: GRUB Error 17 when extra hard drive not attached

    But you see this from the menu.lst

    -WDC_WD6402AAEX-00Z3A0

    I read that to be WD640
    or am I wrong
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  10. #10

    Default Re: GRUB Error 17 when extra hard drive not attached

    No you are right, and I saw that, and I am not sure why that resume from WD640 is there, but in any case the is no mention of of the 750GB Hitachi in the menu.lst and that is the drive that I want to remove.

Page 1 of 2 12 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
  •