LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2015, 03:48 AM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 451

Rep: Reputation: 29
have i got this right?


does linux see the first partition on the first hard drive as either
hda1,1 or sda1,1 and does grub see it as 0,0?
 
Old 01-23-2015, 04:13 AM   #2
{O_o}
Member
 
Registered: Mar 2004
Distribution: Slackware 14
Posts: 70

Rep: Reputation: 16
you're right, sda1 (or hda1, ime usually sda) for linux and (hd0,0) for grub i think

Last edited by {O_o}; 01-23-2015 at 04:42 AM.
 
Old 01-23-2015, 04:55 AM   #3
vincix
Member
 
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 514

Rep: Reputation: 48
Quote:
Originally Posted by sigint-ninja View Post
does linux see the first partition on the first hard drive as either
hda1,1 or sda1,1 and does grub see it as 0,0?
It is essential to know what version of grub you're talking about. Tell us what distro you're using.

In Grub v1 - the first partition of the first hdd is (hd0,0)

In Grub v2 this is different. The first partition of the first hdd is (hd0,1).

Last edited by vincix; 01-23-2015 at 05:00 AM.
 
Old 01-23-2015, 06:17 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
It also depends on what order the controllers are scanned...

And in the case of disks, which disk spins up first.

USUALLY the disk the boot volume is on will be sda. but that might not be 0,0. It could be 0,0/1/2/3...(higher if GPT).
 
Old 01-23-2015, 01:55 PM   #5
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 451

Original Poster
Rep: Reputation: 29
thanks for all the input

im using centos 6.5
i think its grub one as in my /etc/grub.conf i see a lot of 0,0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off




All times are GMT -5. The time now is 08:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration