Koozali.org: home of the SME Server

grub autocomplete not working; need to discover hdx assignments

Offline rshiras

  • *
  • 53
  • +0/-0
grub autocomplete not working; need to discover hdx assignments
« on: February 08, 2017, 03:24:28 PM »
SME 8.2...
I need to write grub to the boot sector of hdb, but I'm not positive that hdb is really hd1 in grub.  I look at the following page, but it looks to me like it's assigning sdb to device (hd0)

From:
https://wiki.contribs.org/Raid:Manual_Rebuild#HowTo:_Write_the_GRUB_boot_sector
grub> device (hd0) /dev/sdb

Shouldn't it be "device (hd1) /dev/sdb" instead of using (hd0)?  Isn't hd0 usually sda?  Isn't hd1 usually sdb? 
So to figure out which devices (hdx) map to which drives (sdx), I try using autocomplete in grub:

In grub, I start by typing... root (hd0,
then hit [tab]
The tab completion should then list the partitions available, but it just tabs over instead of listing the choices.

If you know the answer to either of these questions, will you please chime in with your opinion?
1. How do I find out which device to operate on to write grub to the boot sector of sdb (i.e. hd1)?
2. Last but not least, how do I repair autocomplete in grub?

If this question has been answered, please let me know because I did search!  I found possibly related answers on other forums, but I want to make sure I get this right for SME, for the usual reasons.
« Last Edit: February 10, 2017, 05:20:57 PM by rshiras »