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

Thread: OpenSUSE 11.3 intallation - Grub Error 17

  1. #1

    Question OpenSUSE 11.3 intallation - Grub Error 17

    Hi all,

    I am installing OpenSuSE on a flashdisk @ /dev/hdc from another flashdisk @ /dev/hdb (hda can't be used, including MBR. It's encrypted and the user is legally oblidged not to install anything to primary HD).

    I had to figure out few things like using a 100MB /boot partition (ext4) at the beginning of the /dev/hdc and everything went well with the installation untill first restart. System is on /dev/hdc6 (ext4). Sytem must boot from hdc, not from the MBR on hda!

    I had to do fdisk the flashdisk on another system and set hdc1 and hdc6 (probably not required) as bootable. Apparently, OpensSUSE can't do that on it's own.

    Problem is, I can't boot the system - getting a Grub Error 17: Cannot mount selected partition.
    Of course I googled the net, but in all cases I found the problem was in messed up disks in /boot/grub/devices.map. This is not my case, because I'm pretty sure the (hd1,0) is the correct device /dev/hdc1 (yes, it IS correct, I switched order to hda-hdc-hdb due to the fact, that after installation there won't be the 2nd flashisk hdb. Anyway, the disks are identified by ID and don't get messed).

    Where can be the source of problems? Anyone can suggest what to do? Please

    Thanks in advance

  2. #2
    Join Date
    Jun 2009
    Location
    Mangfall, Germany
    Posts
    1,057

    Default Re: OpenSUSE 11.3 intallation - Grub Error 17

    Hi oakld,

    Have a look through the thread cloning hard drives
    It covers how to align the boot sequence with Yast.

    Michael.

  3. #3

    Default Re: OpenSUSE 11.3 intallation - Grub Error 17

    Hi Michael,

    thank you for your suggestion, however I'm not clonning a system. The /dev/hdb contains a proper installation DVD (on a flashdisk), set up and configured (used approx. 10 times for installatoin with no problem). So, /dev/hdb is instllation DVD (a source) and /dev/hdc is where system is getting installed (a target). All installation procedure is standard and done the correct way, except I pre-partitioned the disk on other system and switched order of hd devices in YaST.
    I am reading through the thread and tutorial, to see if I can use any of it's points for hints, but I recon it won't help me...

    Best regards,

    Oak

  4. #4
    Join Date
    Jun 2009
    Location
    Mangfall, Germany
    Posts
    1,057

    Default Re: OpenSUSE 11.3 intallation - Grub Error 17

    Hi Oak,

    Can you post the contents of the following files from your flash disk, /boot/grub/device.map, /etc/grub.conf, /boot/grub/menu.1st, /etc/fstab.

    I'm assuming you have changed your machine bios to boot from the flash disk.

    Michael

  5. #5

    Default Re: OpenSUSE 11.3 intallation - Grub Error 17

    Hi again Michael,

    I gave this exact setting up and I'm trying to go work-around-way, having a new partition layout on the /dev/sdc flashdisk:
    /dev/sdc1 as "/" - ext4
    /dev/sdc2 as "swap" - swap
    /dev/sdc3 as "Windows drive" - FAT

    Note, that I started with keeping/shrinking windows partiotion at /dev/sdc1, than found out BIOS requires to have /boot somewhere within first 4GB of the disk I shifted a small /boot device to /dev/sdc1, keeping root "/" at /dev/sdc6 and swap at /dev/sdc5. I guess this is what could cause the confusion to the system, so I got rid of that.

    I guess a problem can be in /etc/grub.conf where there was something like:
    Code:
    grub setup --stage2=/boot/grub/stage2 --lba-enable (hd1,0) (hd1,0)
    I've googled for 2 hours but haven't found anything explainig the two drive adreses at the end, I'm just assuming one can point to /boot and one to "/" partitions, being same most of the time (if no /boot is used).

    I'll let you know when installation finishes whether this solution helped or the problem persists.

    Best regards,

    Oak

  6. #6
    Join Date
    Jun 2009
    Location
    Mangfall, Germany
    Posts
    1,057

    Default Re: OpenSUSE 11.3 intallation - Grub Error 17

    Hi Oak,

    Did not have the info that you were dual booting. Hence my comment wrt bios is not relevant.

    Happy hunting.

    Michael

  7. #7

    Default Re: OpenSUSE 11.3 intallation - Grub Error 17

    Hi,

    well, technically it's a single boot on /dev/sdc, as there is no reference and interference at all to/with /dev/sda. As I said, the user is legally oblidged not to do anything with internal harddrive of the laptop. This is why external USB flashdisk is the root and boot disk for the linux. Booting is done via boot menu (F12 at boottime) and selection "USB disk device".

    I'll know in 15minutes if the effort will give some fruits :-).

    Best regards,

    Oak

  8. #8

    Default Re: OpenSUSE 11.3 intallation - Grub Error 17

    Hi again,

    still the SAME PROBLEM! I had to again use the fdisk to mark /dev/sdc1 as bootable. At one stage it said that the partition borders does not correspond with cylinderes (I think it's irrelevant to USB flashdisk) and that the filesystem type is not specified! I think that can be the problem, as obviously Error 17 is linked to "Filesystem type unknown, partition type 0x7" message.

    I did the partiotioning with YaST during the installation this time - but got the same result...

    :-(

    Any hints?

    Best regards,

    Oak

  9. #9
    Join Date
    Dec 2008
    Location
    Idaho
    Posts
    204

    Default Re: OpenSUSE 11.3 intallation - Grub Error 17

    "Filesystem type unknown, partition type 0x7" That is a NTFS partition. So if the flash hdd does not have a NTFS partition, some where it is being pointed to the main hdd. Look at /boot/grub/menu.lst being sure it is pointing Suse loading to the correct hdd.

    Are you being dropped to the grub prompt after error ?
    If so , at prompt: type in
    1) root (hd <tab> -- it will list all hdds
    2) root (hdx, <tab> -- it will list all partitions of selected hdd, x=value's returned in step #1

    The above will tell you how grub is seeing the hdd's, and modify menu.lst any where (HD or SD) is being used. Have never use a flash hdd, so take care.

    Your grub.config file is saying , your grub files is on (hd0,1) and install grub on (hd0,1). So a generic boot code is in the MBR (hd0) and the boot flag would be needed on (hd0,1). The problem might be (hd0) is seen by grub as the internal hdd.

    The first (hd0,1) is where /boot/grub/ is found and the second (hd0,1) is where grub will be installed. If command was (hd0,1) (hd0) the grub would be installed in the MBR of hd0.

    Take extreme caution or you will mess up the internal hdd. Would advice to get more then 1 persons advice before doing mush, as errors on are part can be found sometimes due to a typeing error.

  10. #10

    Default Re: OpenSUSE 11.3 intallation - Grub Error 17

    Thanks Michael,

    "Filesystem type unknown, partition type 0x7" That is a NTFS partition.
    I don't know what the FS is on internal HD, but it is not accessed and can't be, as it is hardware-side encrypted. However what is strange, is that /dev/hdc1 starts on cylinder 2 - I don't think it's normal. Fdisks displays several (not critical) warinings, including that the disk capacity is not used completely.

    Are you being dropped to the grub prompt after error ?
    Yes, correct. I can edit the commands executed by grub, however there's nothing to correct, all references appear to be completely correct. I.e. it says "root (hd1,0)", that is correct (as internal (hd0,0) can't be accessed). I also tried (hd2,0) to make sure it is not switched with 2nd [install] flashdisk, but it's not the case. Strange thing is, that when executing command of the grub, if I have 2nd flashdisk attached, it's blinking for a few seconds, while the /dev/hdc flashdisk doesn't.

    So a generic boot code is in the MBR (hd0) and the boot flag would be needed on (hd0,1)
    ...good thinking, but no, this time it isn't. I made sure to uncheck the option to use MBR in YaST during the installation. Only /dev/hdc is used for booting. The problem is, that after it reads those few bytes in stage 1, it should then boot from /boot, but for that it needs to mount the device - and it's failing to mount the device (either correct one or at all).

    The first (hd0,1) is where /boot/grub/ is found and the second (hd0,1) is where grub will be installed.
    In my case, /boot/grub was located in separate disk (hd1,0) "/boot" preivously, now I made just one system (and one swap) disk without separate "/home" and "/boot" disks at the same location (hd1,0).
    I know it's the correct disk, as I can MOUNT the partitions from rescue system (so I was able to mount "/boot" disk as /dev/hdc1 device previously).

    I think that source of the confusion is simple: When installing the system, I have three disks in:
    1) Internal /dev/hda - (hd0)
    2) Installation flash disk /dev/hdb - (hd2) - obviously, to boot the installation, it has to be plugged in before the future system disk
    3) Target system flash disk /dev/hdc - (hd1)
    When making first reboot after installation, I have to obviously unplug the /dev/hdb. The /dev/hdX is assigned by disk ID, so stays correct (and I helped it by switching order to hda-hdc-hdb).

    I am really appreciating your effort! Finally we will find out that the cause is something stupid, simple :-)

    Here is grub command:
    root (hd1,0)
    kernel /boot/vmlinuz-2.6.34-12-desktop root=/dev/disk-by-id/usb-Kingston_DT_101_II_001372xxJUSTNUMBERSxx-0:0-part1 resume=/dev/disk-by-id/usb-Kingston_DT_101_II_001372xxJUSTNUMBERSxx-0:0-part2 splash=silent quiet showopts
    initrd /boot/initrd-2.6.34-12-desktop
    This code is shown when going to edit mode in stage1 of grub booting and obviously is read from /boot/grub/menu.lst.

    Here is content of /etc/grub.conf:
    setup --stage2=/boot/grub/stage2 --force-lba (hd1,0) (hd1,0)
    quit
    Here is content of /boot/grub/device.map:
    (hd2) /dev/disk/by-id/usb-_USB_DISK_2.0_xxxxxxxxxxx
    (hd1) /dev/disk/by-id/usb-Kingston_DT_1O1-II_0013xxxxxxxxxxx
    (hd0) /dev/disk/by-id/ata-ST916xxxxxxxxx
    I am on this 2nd day, so a kick into right direction is well appreciated.

    Best regards,

    Oak

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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