The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Passing the values to the secondary script when it invoked by primary script venu_eie UNIX for Advanced & Expert Users 2 07-03-2008 08:10 AM
Passing the values to the secondary script when it invoked by primary script venu_eie Shell Programming and Scripting 1 07-03-2008 07:16 AM
primary-secondary sync problem mbannout UNIX for Advanced & Expert Users 0 04-15-2008 06:52 AM
How to find All Primary and Secondary Group ID's for a user sanjay92 UNIX for Dummies Questions & Answers 2 03-27-2002 02:35 AM
The hard disk at channel 2, target 1 had a soft error. Ivo UNIX for Dummies Questions & Answers 1 01-23-2002 02:44 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-26-2008
thekarsillo thekarsillo is offline
Registered User
  
 

Join Date: Jun 2007
Location: Ariano beach
Posts: 1
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 (permalink)  
Old 09-29-2008
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,886
I cannot give a Debian-specific answer. The main problem is that modern Linux distributions do something like the following in /etc/fstab:
Code:
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:
Code:
/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".
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0