shift hard disk from primary IDE channel to secondary IDE channal

Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory shift hard disk from primary IDE channel to secondary IDE channal
# 1  
Old 09-26-2008
shift hard disk from primary IDE channel to secondary IDE channal

Wellcomes All,
some times ago I 've installed a Debian ditribution on an Hard Disk who was set as Primary Master. Few days ago, I 've decided to install another Hard Disk with a different Operating System. When I did that, I turned off the old hard disk, and I mouted the new one on the Primary IDE Channel.
Now the problem is that I can't boot the OS which is set on the Secondary Master, and every times I want to execute the boot form the hard disk who is on the Secondary Channel I have to switch it on the Primary .
So, I want to install a boot manager, but the problem is that the File System will be change name.... My ask is: what I have to do, and what files I have to modify, overwrite on the old OS (Debian) in order to work correctly?
Many thanks in advance.
# 2  
Old 09-29-2008
I cannot give a Debian-specific answer. The main problem is that modern Linux distributions do something like the following in /etc/fstab:
LABEL=BOOT            /boot  ext2  auto,defaults defaults 0 0 
LABEL=ROOT            /        ext2  auto,defaults defaults 0 0

The "Label" stuff is what's giving you the problem. What happens is that every partition gets a filesystem-specific "tag" such as "BOOT" or "ROOT". The mount process finds the "first" partition that matches this tag.

To fix this, hard-code the device IDs. So in the /etc directory on the / mountpoint on your SECOND drive, do something like this:
/dev/hdb1          /boot       <other stuff>
/dev/hdb2          /             <other stuff>

But you're not done yet. If your boot-loader is "grub", you also have to go into the SECONDARY Boot partition and change the grub configuration there to make sure if tries to load the kernel and "initrd" image off /dev/hdb* instead of "BOOT" or "ROOT", etc.

You're still not done. In the grub configuration on the PRIMARY drive, in the Boot partition, you have to install a "chain loader" into the Grub configuration. Google for "Grub" and "chain loader".
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

DNS Primary and Secondary

hi there, i using salaris 10 as my DNS server. i have 2 dns server primary and secondary. if primary dns server i edit/update, the other secondary dns server must be sync too. How can i configure if dns server (primary) can sync the secondary? (1 Reply)
Discussion started by: tappetmus
1 Replies

2. SCO

declare disk driver for IDE hard disk

hi I've a fresh installation of SCO 5.0.7 on the IDE hard disk. For SCSI hard disk I can declare, for example blc disk driver using: # mkdev hd 0 SCSI-0 0 blc 0but it works for IDE hard disk? (3 Replies)
Discussion started by: ccc
3 Replies

3. Linux

Secondary linux dist WITHIN primary one

Hi New here so forgive my ignorance and inability to express myself in an informative manner ;) I have a Fedora distribution installed on my development computer. The system we build is meant to run on a slackware dist which is all fine and well. But due to our flow of deployment I would have... (2 Replies)
Discussion started by: inquam
2 Replies

4. UNIX Desktop Questions & Answers

Maximize IDE Hard Disk

Hi there! I am installing Unixware 7.1 to a new server. We usually use SCSI hard for this but since this will be used only for testing, I decided to use an 80GB IDE hard disk. I was able to successfully load the unix but found out that the 80GB hard disk was not maximized. The total hard disk... (1 Reply)
Discussion started by: limpinmd
1 Replies

5. Filesystems, Disks and Memory

Wrong BIOS IDE Settings on a SATA disk (AHCI)?

Hello, I wanted to share an experience I had today which was quite a learning experience and perhaps useful for others who may run into the issue at some point in the future. Basically, the scenario involves a OS which was installed on a machine which hardware-wise, had a SATA Drive. The... (0 Replies)
Discussion started by:
0 Replies

6. Solaris

problem after adding new ide disk

Hi experts, i have added a new disk to my ultra 10 system, after that i am unable to boot the system, its not booting from disk neither from cd. please help! Regards (16 Replies)
Discussion started by: kumarmani
16 Replies

7. UNIX for Advanced & Expert Users

primary-secondary sync problem

hi guys, i am new to this DNS business and i'm having a problem. the setup is bind 9.2.3 is installed on a sun solaris 8 server and is the primary DNS. men and mice suite is installed on another sun solaris 8 and that is our secondary DNS server. problem is recently the secondary DNS stopped... (0 Replies)
Discussion started by: mbannout
0 Replies

8. AIX

IDE DISK ERR2 and LVM SA STALEPP errors in errpt

Hi, I'm getting the errors below in the errpt report for a IBM Blade server. I'm guessing there's a problem with one of the disks but don't know how I can confirm this. Can anyone offer any suggestions? Regards Gareth (4 Replies)
Discussion started by: m223464
4 Replies

9. UNIX for Dummies Questions & Answers

The difference between SCSI & IDE Hard disks.

Hello agian ! What is the difference between SCSI and IDE hard disks ? I have Intel PC and when i check i have Generic IDE TYPE DISK0 is IDE hard disk is ok for Solrais ? or should i buy the SCSI hard disk ? Thanks Abid Malik (3 Replies)
Discussion started by: abidmalik
3 Replies

10. UNIX for Dummies Questions & Answers

The hard disk at channel 2, target 1 had a soft error.

Hi there! I received the following error message The hard disk at channel 2, target 1 had a soft error. The output of a system check reveiled the following (see entry <2,1> ): SWXCR xcr0 error counters: RAID Array 200 Controller Family Information Utility V1.03... (1 Reply)
Discussion started by: Ivo
1 Replies
Login or Register to Ask a Question

Featured Tech Videos