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 05-03-2012, 12:54 AM   #1
mike99
LQ Newbie
 
Registered: Jun 2005
Posts: 19

Rep: Reputation: 0
Cannot cohabit hda & sda specified partitions on the same hard drive


I'm thinking this has something to do with GRUB. But, i cannot cohabit hda & sda partitions on the same hard drive. I am hoping it is just a line entry to modify in GRUB. I think the Linux kernel in the distro being installed determines if it is called a hda or a sda. Thanx 4the help!
 
Old 05-03-2012, 01:03 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
I don't understand what you mean by cohabit.

Do you mean that grub when booting has a different idea which is the first hard drive?
If so, look at the device.map file which maps grub names to kernel names.
 
1 members found this post helpful.
Old 05-03-2012, 01:04 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403
Hi,
Quote:
Originally Posted by mike99 View Post
I'm thinking this has something to do with GRUB. But, i cannot cohabit hda & sda partitions on the same hard drive. I am hoping it is just a line entry to modify in GRUB. I think the Linux kernel in the distro being installed determines if it is called a hda or a sda. Thanx 4the help!
This is indeed regulated by the kernel. hdX can still be used, but sdX is the de-facto standard on modern linux distro's.

Once the kernel is activated it decides the naming convention based on kernel settings. It is either hdX or sdX. If you have a dual-boot system one kernel can be set up to use the hdX naming convention, the other to use the sdX convention.

You do not mention what your actual problem is. Care to elaborate?
- What is your set-up,
- Do you dual boot,
- When do you run into this problem.

Hope this helps.
 
Old 05-03-2012, 01:31 AM   #4
mike99
LQ Newbie
 
Registered: Jun 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Well, i would like to install 3 distros on the same hard drive. "Older" distributions that have hdX do not play well with "modern" distributions.
And visa-versa. Which ever dist. is installed last is usually the GRUB i install that comes with that distribution. If the previously installed dist.s
have a drive/partition designation that is the same, then the new GRUB install asks if i want those others added to GRUB. If one of those is not the same
drive/partition designation, it does not add it and if i try to change the names in the GRUB/menu.list i get a kernel panic when it tries to boot
that partition. Does that make sense?
 
Old 05-03-2012, 04:08 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403
Hi,
Quote:
Originally Posted by mike99 View Post
Well, i would like to install 3 distros on the same hard drive. "Older" distributions that have hdX do not play well with "modern" distributions. And visa-versa.
Quote:
Which ever dist. is installed last is usually the GRUB i install that comes with that distribution.
That is true when you use all the defaults during the installation. You can however tell the installer to skip the grub installation, if one does that you do need to add the new entry to the already existing grub setup.

Quote:
If the previously installed dist.s have a drive/partition designation that is the same, then the new GRUB install asks if i want those others added to GRUB. If one of those is not the same drive/partition designation, it does not add it and if i try to change the names in the GRUB/menu.list i get a kernel panic when it tries to boot that partition.
What are you changing? If you are missing an entry you should add it, you shouldn't have to change the already present entries.

Although I'm not 100% sure thie following will work (never tried it myself) you could try the following:

Assumptions:
- The installed grub is from a system that uses the sdX convention,
- You have a missing entry for a system that uses the hdX convention.

Add the missing entry and use the sdX convention in the grub.cfg for all the entries.

The thought behind this is that once you select an entry from the bootloader (grub), control is handed over by grub to the entry you have chosen, the kernel (et al) kicks in and decides which convention is used.

If you are going to play with the above suggestion do make sure you have backups (and possibly a life CD)!!

Hope this helps.
 
1 members found this post helpful.
Old 05-03-2012, 01:06 PM   #6
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
I always thought that disks (in linux) were named according to their type. SCSI / SATA / usb = sdx and IDE = hdx
Not a mere "convention" but a specific, descriptive naming policy.
 
Old 05-03-2012, 01:46 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403
Hi,
Quote:
Originally Posted by smoker View Post
I always thought that disks (in linux) were named according to their type. SCSI / SATA / usb = sdx and IDE = hdx
Not a mere "convention" but a specific, descriptive naming policy.
The naming convention changed a while back (kernel 2.6.20 comes to mind, not 100% sure). These snippets from Device files - Linux Naming conventions
Quote:
hd: (“classic”) IDE driver (previously used for ATA hard disk drive, ATAPI optical disc drives, etc.)
and
SCSI driver, also used by libATA (modern PATA/SATA driver), USB, IEEE 1394, etc.
I do believe you can still go back to the old naming schema by (un)setting the appropriate kernel options.
 
Old 05-03-2012, 01:56 PM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,672

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
I'm not sure why it matters to GRUB which scheme the other installs use. I was under the impression GRUB just searches partitions for kernels and adds entries for them, so why would it matter what another install called the partition?
Have you tried running update-grub after the last install?
 
1 members found this post helpful.
Old 05-03-2012, 02:24 PM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403
Hi,
Quote:
Originally Posted by 273 View Post
I'm not sure why it matters to GRUB which scheme the other installs use. I was under the impression GRUB just searches partitions for kernels and adds entries for them, so why would it matter what another install called the partition?
Have you tried running update-grub after the last install?
Simplified, from a machine running a new 3.2 kernel:
Code:
set root=(hd0,2)
menuentry "GNU/Linux, Linux 3.2.6" { linux   /boot/vmlinuz-3.2.6 root=/dev/sda2 ro
That would have to be hda2 for a machine running a kernel prior to 2.6.20:
Code:
set root=(hd0,2)
menuentry "GNU/Linux, Linux 2.6.19" { linux   /boot/vmlinuz-2.6.19 root=/dev/hda2 ro
My understanding is that a partial link to the system on which grub was installed/configured is present during grubs part of the boot process:
- During the install a specific naming schema is in use (which might or might not be partially written to MBR),
- /boot/grub.cfg is used by grub, which resides on one specific system (the one grub was installed/configured on).
- maybe more....
 
1 members found this post helpful.
Old 05-03-2012, 02:40 PM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,672

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Yes, I see now why it is a problem having them all labelled sd instead of hd.
Could you maybe install GRUB on the partitions of the older systems and chainload them, or whatever it's called.
 
Old 05-04-2012, 12:08 AM   #11
mike99
LQ Newbie
 
Registered: Jun 2005
Posts: 19

Original Poster
Rep: Reputation: 0
O.K. ,Today i installed a 3rd O/S linux partition. After install, it wanted to know if i wanted to install/update GRUB or not. When it got to the update screen it said there is another step that must be done manually. It then thought about it (older machine) and then showed me what to put in the Menu.lst file. It was listed as "hda4" and it worked!!
i think what i was trying before was "NOT" to take an install/update to GRUB and cancel out of there and then go to the file, create the params and save. It never worked.
The other thing i would do is reinstall GRUB from the "New Installation" (not update) and if the previous other installs had different naming conventions then what the new install was, they would not work.
Thanks for all the help! Next I'll try to install Vector Linux. It used to use Lilo, but maybe now i can add it to GRUB without having to put Lilo on a diskette.
 
Old 05-04-2012, 02:10 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403
You're welcome

BTW: Can you put up the [SOLVED] tag.
first post -> Thread Tools -> Mark this thread as solved
 
  


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
Which type of drive do I have...sda or hda ? cbjhawks SUSE / openSUSE 2 02-22-2012 06:42 AM
[SOLVED] Creating custom kickstart for Centos 5 and change hard disk from hda to sda santino83 Red Hat 1 10-01-2011 06:05 AM
how to change hard disk hda to sda in linux yogi10 Linux - Server 6 06-16-2011 05:59 AM
sda drive seen as hda on centos5 cormander Linux - Hardware 2 12-28-2007 02:00 PM
Fedora 7 Network Install is showing SDA partitions when I have Hda rtoney5 Fedora 13 10-29-2007 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:07 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