LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-26-2003, 10:40 AM   #1
aotweb
LQ Newbie
 
Registered: Feb 2003
Location: Ireland
Posts: 4

Rep: Reputation: 0
Question 2nd hard drive issue


Hi I hope someone out there can help me - I am new to linux and am using Mandrake Linux 9.1. I have a hard drive from a machine of mine which died and had Mandrake Linux 8.2 and I want to retreive the info from it. I have tried installing it as a Primary IDE Slave hard drive on my Mandrake linux 9.1 machine but it will not let me mount it and keeps asking me do I want to erase the information stored on it - I certainly do not want to do that. I just have some files in a folder on it and want to get them off, after that I dont care what happens the disk - any ideas anyone??
 
Old 06-26-2003, 11:04 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you still have MDK 9.1 installation cds? You'll need the 1st one. Connect the 8.1 disk as primary slave, boot from the cd, enter 'rescue' mode.

Now you need to mount two partitions: the one you'd like to copy the data from and the one to copy them to. Let's say you have one partition on /dev/hdb (primary slave) and the partition you'd like to copy to is /dev/hda5.

The commands are:
mkdir /mnt/master
mkdir /mnt/slave
mount -t ext3 /dev/hda5 /mnt/master
mount -t ext3 /dev/hdb1 /mnt/slave

Note that you may need to change partiton types and numbers (to see current partitioning scheme of dev/hda, use 'fdisk /dev/hda', then press 'p' to list partitions and 'q' to quit).

Now you have source in /mnt/slave and destination in /mnt/master. The only thing now is to copy the data (if you're not familiar with the 'cp' command, read its manual before you start).
 
Old 06-30-2003, 10:33 AM   #3
aotweb
LQ Newbie
 
Registered: Feb 2003
Location: Ireland
Posts: 4

Original Poster
Rep: Reputation: 0
Hi, thanks for your reply - however when I follow the steps I get the error -
wrong fs type, bad option, bad superblock on /dev/hdb, or too many mounted filesystems

Any help with this would be greatly appreciated
Also, When i do fdisk /dev/hdb I get the error "Unable to read /dev/hdb"
 
Old 06-30-2003, 11:50 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,983

Rep: Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678
Are the jumpers configured correctly for a slave drive?
 
  


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
2nd hard Drive grabro Linux - Hardware 1 02-05-2005 06:49 AM
2nd Hard Drive snutz411 Linux - Hardware 3 03-24-2004 01:52 PM
2nd hard drive naflan Debian 4 02-22-2004 03:55 PM
2nd Hard Drive Tad Linux - Hardware 6 05-22-2003 01:47 PM
2nd hard drive jarrodatt Linux - Hardware 1 11-12-2002 03:31 AM

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

All times are GMT -5. The time now is 08:16 AM.

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