bugGNU GRUB - Bugs: bug #41005, grub error: hd1 cannot get C/H/S...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #41005: grub error: hd1 cannot get C/H/S values

Submitter:  Thomas Pasch <aanno>
Submitted:  Thu 26 Dec 2013 03:03:57 PM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  aanno
Open/Closed:  Closed Release:  2.00
Release:  Reproducibility:  Every Time
Planned Release:  None

Jump to the original submission

Fri 18 Mar 2016 09:38:37 AM UTC, comment #9: 

It's biosnum, not biosdisk.

Andrei Borzenkov <arvidjaar>
Group Member
Fri 18 Mar 2016 09:24:22 AM UTC, comment #8: 

Biosdisk variable is just to get chainloader work with nativedisk:
root=ahci0,1
biosdisk=0x80
chainloader +1
boot

Vladimir Serbinenko <phcoder>
Group administrator
Fri 18 Mar 2016 08:34:34 AM UTC, comment #7: 

I have finally found a way to circumvent the problem: If you invoke the bios 'boot menu' (F12) when starting the vostro 3350 and simply select 'hard disk' there, the second disk gets (auto-magically) known to grub. Hence the problem simply disappears if you go through to boot menu!

@Vladimir: I haven't understand your remark about the 'biosdisk' variable. But it seems that you think that installing grub with the 'native' disk module is NOT enough. Could you please be a little more explicit about what to do in addition?


Thomas Pasch <aanno>
Thu 17 Mar 2016 04:10:47 PM UTC, comment #6: 

I have the same problem. The best I think I have done is installing EasyBCD, but I could not make it work.

Andres Espinosa <andrew95434>
Wed 02 Mar 2016 01:44:31 PM UTC, comment #5: 

You need to set biosdisk variable when using native with chainloader. We can't do anything more than this, hence closing the bug

Vladimir Serbinenko <phcoder>
Group administrator
Sun 02 Feb 2014 09:44:51 AM UTC, comment #4: 

I was able to install a grub2 with the 'native' disk module by doing:

sudo grub-install --disk-module=native /dev/sda

(BTW: I'm using a Kubuntu 13.10/saucy 64-bit system.)

And with this, I could see the second disk as ahci1 :o)) In addition, my Ubuntu still is able to boot AND I'm also able to boot another Ubuntu from the 2nd disk.

However, my problem has NOT been solved with this. This is because the main reason I tried was because I want to be able to boot my (original) windows from the 2nd disk (that used to be the primary disk before; see my first post).

And the windows REFUSES to boot with the native grub driver and 'chainloader +1'!

Hence, to boot the windows on the 2nd disk, I'm still forced to use a grub from an usb stick (see my 2nd post for more details)...

Thomas Pasch <aanno>
Sat 25 Jan 2014 05:19:25 PM UTC, comment #3: 

Hhm, on ubuntu 13.10/saucy grub2 does not know the command

nativedisk

or

insmod nativedisk

What must be done to have that in grub?

Thomas Pasch <aanno>
Sat 18 Jan 2014 05:05:12 PM UTC, comment #2: 

"grub error: hd1 cannot get C/H/S values"
is rarely about the geometry, it's just one of first calls to recognize the disk. Most likely BIOS bugs with your second drive.
You can use GRUB native disk drivers by either installing with --disk-module=native or using command nativedisk before accessing the disk. Note: with native dirvers disks get renamed to e.g. ahci0 and ahci1

Vladimir Serbinenko <phcoder>
Group administrator
Sat 28 Dec 2013 01:23:25 AM UTC, comment #1: 

Hhm, this is very, very odd:

  • When I use grub from an usb stick, auto-completion of 'ls' lists hd1 AND I can boot from it.
  • Same for grub4dos.
  • But when I use grub from the first disk hd0, auto-completion of 'ls' DOES NOT list hd1 AND I CANNOT boot from it.


To rule out that my (hd0,msdos1)/boot/grub/grub.cfg is the culprit, I renamed it /boot/grub/grub2.cfg . This way, I must use the grub command line for booting, but this is ok for a test ;o) But the problem does not go away :o(

Thomas Pasch <aanno>
Thu 26 Dec 2013 03:03:57 PM UTC, original submission:  

Well, I don't know if this is really feasible. But anyway: I use a laptop computer (a dell vostro 3350). When I bought it, it was equipped with a (spinning) HDD and a DVD writer.

However, I've replaced the DVD writer with a HDD bay AND moved the original HDD to it. As a new 'primary' disc, I bought a (modern) SSD.

There is nothing wrong with this configuration - except that the BIOS is NOT prepared to cope with a second disk (the bios recognize the disk, but as 'ODD'). The consequence is that I'm not able to boot from the second disk AS GRUB DOES NOT RECOGNIZE it as well. I always get the following error:

grub error: hd1 cannot get C/H/S values

(No problems to boot from hd0, though.) I guess the problem results from the BIOS that expects an ODD on the second SATA port.

It really would be cool if grub was able to circumvent this problem somehow. I mean: I know it is a HDD (and not an ODD), and I could use the disk AFTER booting without any problems (with linux/ubuntu). I even could provide the missing C/H/S values, if there would be an option to do so...

Thomas Pasch <aanno>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by andrew95434 (Posted a comment)
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by aanno (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-02 phcoder StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code