LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-04-2010, 04:50 PM   #1
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Rep: Reputation: 21
scsi disk but grub uses hda


hi
i've a scsi hard disk(sda)

Code:
[root@benchabane benchabane]# parted /dev/sda print
Model: ATA Hitachi HTS54161 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      32.3kB  45.7GB  45.7GB  primary  ntfs
 2      45.7GB  46.2GB  524MB   primary  ext4         boot
 3      46.2GB  120GB   73.8GB  primary               lvm

[root@benchabane benchabane]#
Code:
[benchabane@benchabane ~]$ su
Password: 
[root@benchabane benchabane]# fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xfaafb49d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63    89257202    44628570    7  HPFS/NTFS
/dev/sda2   *    89257984    90281983      512000   83  Linux
/dev/sda3        90281984   234440703    72079360   8e  Linux LVM
BUT grub is using hda nomination in the grub.conf

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,1)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_benchabane-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.35.6-45.fc14.i686)
        root (hd0,1)
        kernel /vmlinuz-2.6.35.6-45.fc14.i686 ro root=/dev/mapper/vg_benchabane-lv_root rd_LVM_LV=vg_benchabane/lv_root rd_LVM_LV=vg_benchabane/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=fr rhgb quiet
        initrd /initramfs-2.6.35.6-45.fc14.i686.img
title Morad WindowS
        rootnoverify (hd0,0)
        chainloader +1

I just dont understand why?cause i was trying to add windows to the grub bootloader ,i did it anyway but i don't get this point?
thx in advance
 
Old 12-04-2010, 04:55 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
open terminal
sudo os-prober
sudo update-grub
will detect wins

Last edited by EDDY1; 12-04-2010 at 04:57 PM.
 
Old 12-04-2010, 05:04 PM   #3
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
(hd0) is not /dev/hda. It is the first hard drive detected by your BIOS. In your case, it's a scsi drive.
 
Old 12-04-2010, 05:33 PM   #4
abi0909
Member
 
Registered: Jul 2009
Distribution: Ubuntu, RedHat, VMWare, CentOS, Windows, Android, Mac
Posts: 55

Rep: Reputation: 18
(hd0,0) does not mean to be the HDA disk. It denotes the address of the first harddrive.
 
Old 12-04-2010, 05:35 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,989

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Grub does not use letter to identify drives or partitions. So sda can be (hd0)in Grub, hda can also be (hd0) as indicated above by gd2shoe, it is the first drive detected. The output from commands like fdisk showing sda or hda have little to do with Grub notation. Grub refers to drives with (hd) and count physical drives from zero, partitions from zero in Grub Legacy and partitions from one in Grub2. The only letter you will see in this type of Grub entry will be the (hd...).
 
Old 12-04-2010, 05:36 PM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,989

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Grub does not use letters to identify drives or partitions it uses numbers. So sda can be (hd0)in Grub, hda can also be (hd0) as indicated above by gd2shoe, it is the first drive detected. The output from commands like fdisk showing sda or hda will not necessarily correspond to Grub notation. Grub refers to drives with (hd) and counts physical drives from zero, partitions from zero in Grub Legacy and partitions from one in Grub2. The only letters you will see in this type of Grub entry will be the (hd...).
 
Old 12-05-2010, 05:47 AM   #7
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Original Poster
Rep: Reputation: 21
Yes it make sense to me now.sda1 is for the grub (hd0,0)wich contain in my case the windows boot, and sda2 is (hd0,1) with contain fedora boot.

by the way EDDY1 ,i think os-prober concerns only Debian,it's one of his installer's
features.http://joey.kitenet.net/code/os-prober/

thx a lot you guys.
 
Old 12-05-2010, 02:43 PM   #8
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 728

Rep: Reputation: 143Reputation: 143
Also an interesting note, SATA, SCSI and USB drives are all recognised as sda, sdb etc while other types are hda, hdb etc

Last edited by ericson007; 12-05-2010 at 07:10 PM.
 
Old 12-05-2010, 04:56 PM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
It's in ubuntu also and any packages that use grub2 as long as grub2(grub-pc) is installed.

Last edited by EDDY1; 12-05-2010 at 04:57 PM.
 
Old 12-06-2010, 07:36 AM   #10
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Original Poster
Rep: Reputation: 21
yeah sure EDDY1,grub-pc does do that,but it exists only in DEB format.i'm trying to convert it to RPM using Alien.

thx for the tip
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
update-grub installing on ram disk instead of hda Cichlid Linux - Software 2 05-30-2009 09:45 AM
Now I have a scsi hard disk, two IDE hard disk, i want install linux on scsi hard dis tecpenguin Linux - Server 4 11-10-2007 07:44 AM
sata + hda=ide-scsi julc Linux - Hardware 2 05-23-2005 08:22 AM
hda=ide-scsi in grub.conf xround Linux - General 5 09-17-2004 06:48 AM
Need explanation of hda=ide-scsi and its friends 5150 Linux - Newbie 13 04-08-2004 05:48 AM


All times are GMT -5. The time now is 08:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration