LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-26-2012, 06:52 AM   #1
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
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?


thanks and have a great one.
 
Old 02-26-2012, 03:55 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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.
 
Old 02-28-2012, 03:07 PM   #3
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830

Original Poster
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
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.

thanks!
 
  


Reply

Tags
boot, grub, kernel panic, partitioning



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When setting up grub, it cant find hd0,3 computerfreak97 Linux From Scratch 1 12-30-2010 05:27 AM
grub problem cannot load hd0 listener Linux - Hardware 3 10-12-2010 08:24 PM
GRUB won't load windows partition - root (hd0,0), Filesystem type unknown partition.. cillm527 Linux - Software 4 04-27-2008 06:44 AM
Grub: how to recover Boot Record for (hd0,0)? fishwombat Linux - General 1 04-27-2004 09:43 AM
Grub can't find files on (hd0,0) nathology Linux - Software 6 10-24-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration