Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Strange grub problem

  1. #1

    Default Strange grub problem

    Hi Folks,

    just did a fresh install of openSUSE 11.4, everything seems to work like a charme with ONE exception:

    The root partition is not found during booting by grub.

    I checked the device map , fstab and menu.lst, compared the contents with /dev/disk/by-id, everything just fine.

    The relevant part of my kernel line in menu.lst reads like that:
    Code:
    root=/dev/disk/by-id/ata-Hitachi_BLABLABLA
    Upon booting, the following error is displayed:
    Code:
    Waiting for device root=/dev/disk/bx-id/ata-Hitachi_BLABLABLA to appear..............
    Note the x in the bx-id String!!!
    There is no x in menu.lst it reads by-id there!

    If I exit graphical grub-menu and edit the according kernel line in textmode, it still says by-id (but would again give bx-id in the error-message)

    To test I deleted the y of by-id on the grub-shell and reinserted it.
    Result:
    Code:
    Waiting for device root=/dev/disk/by,id/ata-Hitachi_BLABLABLA to appear..............
    Now there is a colon instead of the dash.

    I'm puzzeled, what else could I try?

    Any help appreciated,

    xyzolog

  2. #2

    Default Re: Strange grub problem

    Look if the symlinks are there:
    Code:
    find /dev/disk/{by-id,by-uuid}
    Try to replace
    Code:
    root=/dev/disk/by-id/ata-Hitachi_BLABLABLA
    with
    Code:
    root=/dev/disk/by-uuid/12345678-1234-xxxxxxxx
    You can get the UUID of your partition with the command blkid or with
    Code:
    cat /dev/.blkid.tab
    or by using the halinfo script with the option -uV (which displays both disk ids and disk uuids).
    Displaying partitions infos from hal daemon*

    * -uV actually queries udev, not hal (which might not be installed).

    bx-id is probably a typo in the error message.

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

    Default Re: Strange grub problem

    If the disk by-id is the correct name it does need the partition # after it. example below:
    Code:
    root=/dev/disk/by-id/ata-ST3250824A_5ND48PMX-part2
    , be sure that /ect/ftab is also correct.

  4. #4

    Default Re: Strange grub problem

    Hi again,

    Thanks both of you for your input!

    The problem is not the ID itself, it is correct and also the corresponding symlinks are present, the problem is within the string PREPENDING the ID on the kernel command-line.

    Even for UUID, I see the same error:
    "/dev/disk/by-uuid" is written in menu.lst but "/dev/disk/bx-uuid" is passed to the kernel.
    Again the y in by gets replaced with an x.

    BTW: I'm using grub-0.97-174.1.x86_64

  5. #5

    Default Re: Strange grub problem

    Sound's crazy indeed. A locale issue maybe? What locale are you using?
    Code:
    locale
    What about this syntax:
    instead of
    Code:
    root=/dev/disk/by-uuid/xxxxxx
    try:
    Code:
    root=UUID=xxxxx
    xxxxx beeing the uuid of your root partition.
    The later is the notation used by default on Fedora, Ubuntu and other distros.

  6. #6

    Default Re: Strange grub problem

    please try again wrote:
    > Sound's crazy indeed. A locale issue maybe? What locale are you using?


    I'm surprised nobody has suggested reinstalling grub from the DVD or net?

  7. #7

    Default Re: Strange grub problem

    Do you also have a vga kernel option, like vga=0x31a ? If not, could you add one for testing purpose ... or even replace 0x31a with 0y31a and see if it boots in vesa mode?

  8. #8

    Default Re: Strange grub problem

    Hi please_try_again,

    that's my locale:
    Code:
    # locale
    LANG=en_GB.UTF-8
    LC_CTYPE="en_GB.UTF-8"
    LC_NUMERIC="en_GB.UTF-8"
    LC_TIME="en_GB.UTF-8"
    LC_COLLATE="en_GB.UTF-8"
    LC_MONETARY="en_GB.UTF-8"
    LC_MESSAGES="en_GB.UTF-8"
    LC_PAPER="en_GB.UTF-8"
    LC_NAME="en_GB.UTF-8"
    LC_ADDRESS="en_GB.UTF-8"
    LC_TELEPHONE="en_GB.UTF-8"
    LC_MEASUREMENT="en_GB.UTF-8"
    LC_IDENTIFICATION="en_GB.UTF-8"
    LC_ALL=
    The root=uuid=xxxxxx is expanded to "/dev/root" which can not be found.
    So this seems not to work.
    Just tested grub form Factory and from openSUSE 11.2, same result, although I have several other machines running 11.2 with same syntax without problems.

    But his can not be hardware can it?
    Or might the kernel be the culrpit, not grub?

    BTW: root=/dev/sda2 does also work without problems but I want to avoid this kind of notation for obvious reasons (usb-discs, ...)

    somehow lost,

    xyzolog ;-)

  9. #9

    Default Re: Strange grub problem

    Quote Originally Posted by please_try_again View Post
    Do you also have a vga kernel option, like vga=0x31a ? If not, could you add one for testing purpose ... or even replace 0x31a with 0y31a and see if it boots in vesa mode?
    That's a cool idea...

    replaced vga=0x346 with 0y346
    and YES it's booting in VESA.

  10. #10

    Default Re: Strange grub problem

    Quote Originally Posted by xyzolog View Post
    The root=uuid=xxxxxx is expanded to "/dev/root" which can not be found.
    So this seems not to work.
    This should be root=UUID=xxxxxx.

    Quote Originally Posted by xyzolog View Post
    Just tested grub form Factory and from openSUSE 11.2, same result, although I have several other machines running 11.2 with same syntax without problems.
    OK. The syntax is working then, just not on that computer.

    Quote Originally Posted by xyzolog View Post
    But his can not be hardware can it?
    Or might the kernel be the culrpit, not grub?
    I don't know. Are the /dev/disk/by-id and /dev/disk/by-uuid wrong? That's possible. Are the UUIDs missing in superblocks? Possible too. At this point, I guess you should really run halinfo -uV to show us how udev is dealing with your partitions.

    Also take a look at the post I made here: How to fix the hard drive to /dev/sdax ?


    Quote Originally Posted by xyzolog View Post
    BTW: root=/dev/sda2 does also work without problems but I want to avoid this kind of notation for obvious reasons (usb-discs, ...)
    Yes, I agree.

    But I cannot explain that x/y problem.

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