Welcome to the new Linux Foundation Forum!

Grub help

Hi All,

At the grub prompt we are giving the root command as root (hd0,0). Can you please help me to understand what exactly root (hd0,0) means and what it will do.

Comments

  • Goineasy9Goineasy9 Posts: 1,116
    "root (hd0,0)" tells GRUB that the kernel is on the first partition of /dev/hda. You can see that GRUB has a funny numbering system, 0-3 for primary partitions and 4+ for logical partitions. (taken from www.faqs.org)

    hd0 = first hard disk (hda or sda). A second hard disk would be hd1.
    second zero after the comma - the partition number (in this case 0 is the first partition). 0 to 3 are equal to partitions 1 to 4.

    It's really that simple.
    First hard disk, second partition (hd0,1)
    second hard disk, third partition (hd1,2)

    Hope that helped.
  • Can you please me to understand the difference between hda and sda.
  • mfillpotmfillpot Posts: 2,180
    Generally IDE/ATA harddrives are listed under hd#, scsi and sata drives are listed under sd#. But I have been seeing some newer distros refer to the hd# drives as sd# drives.
  • I would recommend familiarizing yourself with the Manual for 0.97.

    They also just released 1.97. But the only manual for it is located within the man pages. Check them out by going to the command line and typing in man grub2 or grub2 --help .
Sign In or Register to comment.