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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-29-2002, 04:48 AM
|
#1
|
Member
Registered: Feb 2002
Location: London
Distribution: Fedora 2, Red Hat 8.0
Posts: 46
Rep:
|
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
|
|
|
10-29-2002, 06:21 AM
|
#2
|
Member
Registered: Sep 2002
Location: Germany
Distribution: SuSE 8.0
Posts: 96
Rep:
|
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.
|
|
|
10-29-2002, 12:42 PM
|
#3
|
Member
Registered: Feb 2002
Location: London
Distribution: Fedora 2, Red Hat 8.0
Posts: 46
Original Poster
Rep:
|
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 
|
|
|
10-29-2002, 12:47 PM
|
#4
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
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
|
|
|
10-30-2002, 10:08 AM
|
#5
|
Member
Registered: Feb 2002
Location: London
Distribution: Fedora 2, Red Hat 8.0
Posts: 46
Original Poster
Rep:
|
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?
|
|
|
11-01-2002, 06:19 PM
|
#6
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
|
|
|
11-02-2002, 01:06 PM
|
#7
|
Member
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492
Rep:
|
Try changing BOTH drive's jumpers to cable select. Works flawlessly for me
|
|
|
All times are GMT -5. The time now is 04:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|