Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory shift hard disk from primary IDE channel to secondary IDE channal Post 302241541 by otheus on Monday 29th of September 2008 03:20:45 PM
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:
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".
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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: septima.pars
0 Replies

7. 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

8. 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

9. 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

10. 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
createhdf(1)							     Emulators							      createhdf(1)

NAME
createhdf - Create a blank IDE hard disk image in .hdf format SYNOPSIS
createhdf [ -c ] [ -s ] cylinders heads sectors file DESCRIPTION
createhdf creates a blank image of an IDE hard disk in .hdf format for use with Sinclair ZX Spectrum emulators. OPTIONS
-c specifies that the .hdf image should be created in `compact' mode, where only the low byte of every word is stored in the image. This is useful for saving space if the hard disk image is for use with an interface which accesses only the low byte of every word. -s specifies that the .hdf image should not be created as a sparse file. Normally, createhdf will attempt to create the hard disk image as a `sparse file', where the operating system knows that the file consists mostly of zero bytes and fills those in without using any space in the file. This option disables this. (There's nothing `magic' about this: if data is written to the file, it will take up space just like any other data; it's only empty space which is synthesised by the operating system). -v version specifies the version of .hdf image to be created. Valid values are `1.0' for a version 1.0 file and `1.1' for a version 1.1 file. Defaults to creating version 1.1 files. cylinders specifies the number of cylinders in the image. heads specifies the number of heads in the image. sectors specifies the number of sectors in the image. file specifies the file to which the image should be written. BUGS
None known. SEE ALSO
fuse(1), fuse-utils(1), libspectrum(3) The .hdf format specification, at http://www.ramsoft.bbk.org/hdfform.html. The comp.sys.sinclair Spectrum FAQ, at http://www.worldofspectrum.org/faq/index.html. AUTHOR
Philip Kendall (philip-fuse@shadowmagic.org.uk). Version 1.0.0 16th December, 2010 createhdf(1)
All times are GMT -4. The time now is 08:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy