[SOLVED] grub hd0,0 hd0,1 clarification for using single /boot partition
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
grub hd0,0 hd0,1 clarification for using single /boot partition
I don't know the answer and I cannot find it written in stone anywhere, so I thought I would ask.
what does the hd number tags in GRUB refer to? does it refer to the /boot or the partition that should be booted? I have always assumed it refers to where the kernel and initrd is. so when using a single boot partition which is /dev/sda1 it should always be set to hd0,0. is this true?
the question arose again since I am using a single boot for multiple distributions and have a kernel panic with a newly compiled 3.1.6 with noinitrd and a tight minimu selection kernel config.
can someone explain ad write in stone how hd0,0 tags in grub works for single /boot partition and also multi /boot on several partitions and perhaps compare what it looks like?
I presume you are referring to the original grub. If so, yes /dev/sda1 is (hd0,0) - described in the doco.
Single system or multi-boot makes no difference if using the same partition for /boot for all.
If you are getting a kernel panic, you probably shouldn't be blaming the boot-loader - if the kernel has started, grub has done its job.
ok. so regardless of the partition you have the distro on, as long as /boot is /dev/sda1 it is always (hd0,0).
panic was from me forgetting to include SCSI in the kernel. hah. then I had an issue where kernel mounted the system as read only and refused to mount it as read write.
this was due to kernel error due to lack of huge file support. i guess I need that for ext4. should be fine when I reboot now hopefully.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.