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
BOOTCTL(1)                                                            bootctl                                                           BOOTCTL(1)

NAME
bootctl - Control the firmware and boot manager settings SYNOPSIS
bootctl [OPTIONS...] status bootctl [OPTIONS...] list bootctl [OPTIONS...] update bootctl [OPTIONS...] install bootctl [OPTIONS...] remove DESCRIPTION
bootctl checks, updates, installs or removes the boot loader from the current system. bootctl status checks and prints the currently installed versions of the boot loader binaries and all current EFI boot variables. bootctl list displays all configured boot loader entries. bootctl update updates all installed versions of systemd-boot, if the current version is newer than the version installed in the EFI system partition. This also includes the EFI default/fallback loader at /EFI/BOOT/BOOT*.EFI. A systemd-boot entry in the EFI boot variables is created if there is no current entry. The created entry will be added to the end of the boot order list. bootctl install installs systemd-boot into the EFI system partition. A copy of systemd-boot will be stored as the EFI default/fallback loader at /EFI/BOOT/BOOT*.EFI. A systemd-boot entry in the EFI boot variables is created and added to the top of the boot order list. bootctl remove removes all installed versions of systemd-boot from the EFI system partition, and removes systemd-boot from the EFI boot variables. If no command is passed, status is implied. OPTIONS
The following options are understood: -h, --help Print a short help text and exit. --version Print a short version string and exit. --path= Path to the EFI System Partition (ESP). If not specified, /efi, /boot, and /boot/efi are checked in turn. It is recommended to mount the ESP to /boot, if possible. -p, --print-path This option modifies the behaviour of status. Just print the path to the EFI System Partition (ESP) to standard output and exit. --no-variables Do not touch the EFI boot variables. EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise. SEE ALSO
Boot loader specification[1] systemd boot loader interface[2] NOTES
1. Boot loader specification https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec 2. systemd boot loader interface https://www.freedesktop.org/wiki/Software/systemd/BootLoaderInterface systemd 237 BOOTCTL(1)
All times are GMT -4. The time now is 09:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy