LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 04-07-2009, 03:12 AM   #1
learner786
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, 03:26 AM   #2
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
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, 03:38 AM   #3
Vit77
Member
 
Registered: Jun 2008
Location: Toronto, Canada
Distribution: Mandriva, RHEL, Mageia, SuSE
Posts: 130

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
Code:
kernel (hd0,0)/boot/vmlinuz ...
initrd (hd0,0)/boot/initrd.img
use this:

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

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Another method would be to boot up to a LiveCd or pendrive distro and backup the data over the network.
 
Old 04-07-2009, 03:50 AM   #5
Japie
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, 04:43 AM   #6
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,220

Rep: Reputation: 231Reputation: 231Reputation: 231
learner786:

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.

Goodluck.
 
Old 04-07-2009, 09:44 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,377
Blog Entries: 3

Rep: Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477
Hi,

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.
 
  


Reply


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 06:24 AM
USB ext3 HDD permissions problem tredegar Linux - Software 8 07-01-2007 08:09 AM
FC6 not booting up due to addition of line to /etc/rc.d/rc.local rajat Linux - Server 1 05-24-2007 03:24 AM
Hdd problem with partitions!!!please help!!! menipos Linux - Hardware 4 05-12-2006 07:40 PM
Problem with Booting after creating ext3 partition on External USB ynyus75 Suse/Novell 1 11-13-2005 03:23 PM


All times are GMT -5. The time now is 10:00 PM.

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