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-08-2004, 06:42 PM   #1
conn-fused
Member
 
Registered: Jun 2004
Posts: 124

Rep: Reputation: 15
Installing a second HDD (with old data)


Here's a big newbie question for you all:

I've just changed motherboards, and done a new install of Mandrake 9.2 on a new HDD. It all went smoothly (except for some sound issues with the new board which are an entirely different story ).

I want to get some data off the old HDD (which ran Mandrake 9.2 off a different motherboard and which - just to complicate matters - suffered a kernel panic after I switched motherboards and tried to boot using it).

If I plug the old HDD in as a slave (via cable-select), what can I expect? How do I find and mount the old partitions, or will Mandrake do this automatically (and could that cause problems since there is a root and home partition on each drive)?

Comments and past experiences are welcome, and I hope they'll also be of use to others.
 
Old 10-08-2004, 06:57 PM   #2
m00t00
Member
 
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292

Rep: Reputation: 30
If mandrake mounts it automaticly, It wont cause problems, but I doubt it will.
You have to do it your self. This drive, which I gathered from your post as the slave on the first cable, would be /dev/hdb

You need to mount that manually. (as root), do something like this.

mkdir /mnt/oldroot
mkdir /mnt/oldhome
mount /dev/hdbX /mnt/oldroot
mount /dev/hdbY /mnt/oldhome

(Where X and Y are the appropriate partition numbers. With mandrake, its usually 1 and 5)
 
Old 10-08-2004, 07:01 PM   #3
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
If it's on the primary cable, it will be /dev/hdb . If it's on the secondary cable, it will be /dev/hdd .

It shouldn't cause any trouble booting. Once you're up and running, you can see what partitions are on the drive with "fdisk -l /dev/hdb" as root. Use hdd if you need. It will list something like...
Code:
Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          16      128488+  83  Linux
/dev/hda2              17          49      265072+  82  Linux swap
/dev/hda3              50        1337    10345860   83  Linux
/dev/hda4            1338        7296    47865667+  83  Linux
Then, try mounting a partition and seeing what's on it. As root, "mount -t ext3 /dev/hdb1 /mnt/floppy" then "ls /mnt/floppy". If it doesn't list the files you want, unmount it with "umount /dev/hdb1". Note, there isn't an N betwixt the U and the M in umount. If it gives you an error about the filesystem type, try ext2, or reiserfs, or whatever-it-is if you can remember from when you installed. I don't know what Mandrake defaults to, but it's usually ext3 or 2. If the files aren't there, and there's another partition, try mounting that one. You can skip "Linux Swap".
 
  


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
recover data from formatted hdd sebastiano Linux - General 5 03-27-2006 09:40 AM
Need to migrate data from old HDD Jakeh2k1 Linux - Hardware 9 08-28-2005 04:23 PM
hdd data problem b4u Linux - Hardware 1 06-26-2005 11:52 AM
Add a preformatted hdd to FreeBSD + keep data Gsee *BSD 2 09-11-2004 06:14 AM
Do i loose my data when i reparition my HDD exley Linux - Newbie 3 12-28-2003 07:12 PM


All times are GMT -5. The time now is 11:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration