Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-07-2009, 02:12 AM   #1
LQ Newbie
Registered: Oct 2008
Posts: 5

Rep: Reputation: 0
Booting problem on HDD addition having ext3 partitions.

I have two PC's installed RHEL4. One of PC is not booting properly. I want to get data backup from the partitions. When I add the problem PC Hard Drive to the system that is booting properly it gives error on booting when i add the second Hard Drive.
I need help to solve this problem.
How to add HDD with existing Linux partitions to another Linux system.
Old 04-07-2009, 02:26 AM   #2
Registered: Jan 2008
Location: Mumbai, india
Posts: 130

Rep: Reputation: 17
Lets say u have 2 systems A & B

A is working fine & HDD in B is having problem.

so first shutdown both systems & remove HDD from B & connect to A.

Start up System A, ideally it should start up normally & on start up it should show the HDD from B in fdisk -l.

then check whether partitions from B HDD are visible in cat /proc/partitons.

if not run partprobe & check in cat /proc/partitons.

once u get then just mount them under required folders & u r work will be done.

post errors if u get any
Old 04-07-2009, 02:38 AM   #3
Registered: Jun 2008
Location: Toronto, Canada
Distribution: SuSE, RHEL, Mageia
Posts: 132

Rep: Reputation: 17
I guess your problem could be caused because disks were renumerated by kernel.
So, your boot disk 0 became the First.

What you have to do there is to change your bootloader configuration:
instead of
kernel (hd0,0)/boot/vmlinuz ...
initrd (hd0,0)/boot/initrd.img
use this:

kernel (hd1,0)/boot/vmlinuz ...
initrd (hd1,0)/boot/initrd.img
or hd2..., depending on the connection.
Old 04-07-2009, 02:48 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Another method would be to boot up to a LiveCd or pendrive distro and backup the data over the network.
Old 04-07-2009, 02:50 AM   #5
LQ Newbie
Registered: Mar 2009
Posts: 27

Rep: Reputation: 16
You could also try to boot from a CD, go into a shell and remove the bootflag from disk B
Old 04-07-2009, 03:43 AM   #6
Senior Member
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,667

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494

If the other pc doesn't boot then the only means to use the backup partition in it is to physically attach it to the good pc. This means, shutdown and switch power off the two pc's, remove the hard disk of non-booting pc and plug it as a slave into the good pc.

Boot, and while the good pc is running mount the the newly attached hard disk then you can browse on it or copy files from it saving the files into the good pc hard disk.

======== "When I add the problem PC Hard Drive to the system that is booting properly it gives error on booting when i add the second Hard Drive.
I need help to solve this problem."========

The error is due to BIOS misconfiguration. So, after plugging the HDD you should go to the BIOS configuration and see if the newly attached HDD is duly recognized, and note down correctly where it is located. Sometimes you need to switch the "jumper" behind the HDD setting it into slave, your hardware manual gives you the clue see it.

If the good pc recognizes the new slave then you can mount it for use. To find out where the new slave is located in the hardware level try issue command # lspci -hvv at the terminal, examine closely the disks reported. To get device name try command # fdsik -l and note the device name of slave, use this name in mounting it. Anyway, redhat runs udev and auto mounting is expected, if not do it manually.

======"How to add HDD with existing Linux partitions to another Linux system."========

Cold plug it to be sure. This means you shutdown and plug OFF both PC's while you remove the HDD from pc one and attach the same to pc two.

My suggestions assume that you're not able to access the bad pc through NFS network.

If network is up you only need to "mount" it from there.

I hope this helps.

Old 04-07-2009, 08:44 AM   #7
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,565
Blog Entries: 34

Rep: Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738

I would add that some hdd are setup as 'single' so you might need to setup the jumper on the host system to 'master'. You would then jumper the second hdd to 'slave' if placing on the same ide channel as the host hdd. Don't forget to restore the jumper configuration to the original position when you remove the repaired hdd. That means both hdd.


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
HDD partition recovery - HDD works but no partitions are accessible? stevod333 Linux - Software 6 10-01-2009 05:24 AM
USB ext3 HDD permissions problem tredegar Linux - Software 8 07-01-2007 07:09 AM
FC6 not booting up due to addition of line to /etc/rc.d/rc.local rajat Linux - Server 1 05-24-2007 02:24 AM
Hdd problem with partitions!!!please help!!! menipos Linux - Hardware 4 05-12-2006 06:40 PM
Problem with Booting after creating ext3 partition on External USB ynyus75 SUSE / openSUSE 1 11-13-2005 02:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration