LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-29-2002, 04:48 AM   #1
artemis
Member
 
Registered: Feb 2002
Location: London
Distribution: Fedora 2, Red Hat 8.0
Posts: 46

Rep: Reputation: 15
Unhappy Getting Data off old hard drive


I recently got myself a new Maxtor hard drive to install in my PC. In the process, I decided to disconnect my old hard drive while I installed Red Hat 8.0 in my new drive.

Everything worked as planned and RH 8.0 works smoothly. Now I need to get some old but important data off my old hard drive. I connected it as a slave drive in my PC (it has RH 7.2 on it) but unfortunately when the PC boots up, it keeps getting confused with mount points and seems to try reading from the slave drive as well as my new (master) drive. Then it gets its knickers in a twist and gets stuck at the System Logger startup point..... requiring a restart.

How do I connect my old hard drive as a slave to my new system and get the data off? Help - I'm a newbie to this, I've never done anything like this before. And I thought it would be straightforward!

Artemis
- devotee
 
Old 10-29-2002, 06:21 AM   #2
Azrael
Member
 
Registered: Sep 2002
Location: Germany
Distribution: SuSE 8.0
Posts: 96

Rep: Reputation: 15
Is the old disc jumpered as slave?

May be giving the system the correct partition of the root fs at boot time via the bootloader helps.
 
Old 10-29-2002, 12:42 PM   #3
artemis
Member
 
Registered: Feb 2002
Location: London
Distribution: Fedora 2, Red Hat 8.0
Posts: 46

Original Poster
Rep: Reputation: 15
Yes the old disk is jumpered as a slave.
Quote:

My NEW /etc/fstab reads like thus:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
In the boot-up process, does the OS read the info contained in grub.conf (I am using the GRUB bootloader) before loading and mounting the filesystems? I think it is getting confused because the fstab on the OLD drive is also similar to the above.... and it is trying to mount the old drive too and failing. To prevent this confusion, would editing the fstab entries in the old drive as well as its own grub.conf help ? - I can access the old drive again by re-jumpering it as master and booting from it.

Lost
 
Old 10-29-2002, 12:47 PM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Try changing the entries for / and /boot to the correct partitions. See how your SWAP has a specific and given partition to use, but your / and /boot mountpoints are simply directed to / and /boot...?

Try it as this:
Code:
/dev/hdaX / ext3 defaults 1 1
/dev/hdaX /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
Obviously replacing the Xs for the correct partition numbers.

HTH
 
Old 10-30-2002, 10:08 AM   #5
artemis
Member
 
Registered: Feb 2002
Location: London
Distribution: Fedora 2, Red Hat 8.0
Posts: 46

Original Poster
Rep: Reputation: 15
Hi Grant,
I tried doing what you suggested, replacing the nameless LABEL=\ entries with /dev/hda1 and /dev/hda2 respectively. I also had to change my grub.conf file accordingly to reflect the changes. However, when I booted this up, I got a kernel panic.
I ended up having to boot into rescue mode and changing my fstab and grub.conf files back to the originals before the machine would boot properly.
Any other ideas?
 
Old 11-01-2002, 06:19 PM   #6
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Look at
http://www.linuxquestions.org/questi...threadid=34327
 
Old 11-02-2002, 01:06 PM   #7
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Try changing BOTH drive's jumpers to cable select. Works flawlessly for me
 
  


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
Adding 2nd hard drive with data on it MichaelH23 Linux - Hardware 3 11-23-2005 01:28 AM
Linux/Hard Drive Data. rvijay Linux - Hardware 3 02-09-2005 08:38 AM
Transferring data from a WinXP Hard drive satimis Linux - Hardware 3 08-19-2004 06:34 AM
Transfering data to another hard drive thors_hammer123 Linux - Hardware 2 07-04-2004 04:34 AM
New Hard drive & transfer data wanna lrn linux Linux - Newbie 1 09-21-2002 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration