Oh hi Mike, Raid 1 you should be able to mount as it's native filesystem for recovery in read-only mode. EG

mount -t ext2 -o /dev/sdb3 /mnt/recovery

You mentioned LVM. That's going to be your problem for now.
You need to make sure you have the lvm2 tools installed.
Try 'pvscan' it should list the physical volumes (aka partitions in this case).
'vgchange -ay' should 'activate' all the volume groups.
Then if that's done you should now find you've got some logical volumes...
'lvscan' will tell you.

Then it's going to be something like...
mount -o ro -t ext2 /dev/VolumeGroup/LogicalVolume /mnt/recovery

Note that I use the -o ro to mount read-only as you're less likely to fsck up the data.


On Wed, 3 Dec 2008, Michael Lake wrote:

Hi all

I am trying to get data off someones old machine that died and place it onto a new machine for them. The old machine had two Western Digital IDE drives as RAID1. I have inserted one of the drives into a new machine in place of the CDROM drive and connected it's IDE cable up and it shows up as /dev/sdc

/dev/sdc
    sdc1
    sdc2
    sdc3
    sdc5

Both of the drives show the same info above. By trying mount I can see that partition 2 is the swap, 1 is probably a /boot and the data that I wish to retrieve is on either or both of 3 or 5. See "Try to mount the Partitions" below.

I also used mdadm to get some detailed info on sdc5 (see below).

My problem is that I can't work out how to mount sdc3 (have tried -t ext3, -t reiserfs, -t auto) or sdc5. The latter is probably the one I want. I gather the partition table says it 'mdraid' and I need to change that?

I have two drives, and both give the same info. I just need to mount ONE of them and copy the data off it. I don't want to try and setup the original raid.
(PS: the machine I have one of them installed on is using mdraid and LVM)


Try to mount the Partitions
---------------------------
# mount -r /dev/sdc1 /mnt
mount: unknown filesystem type 'mdraid'

# mount -r /dev/sdc2 /mnt
/dev/sdc2 looks like swapspace - not mounted
mount: you must specify the filesystem type

# mount -r /dev/sdc3 /mnt
mount: you must specify the filesystem type

# mount -r /dev/sdc5 /mnt
mount: unknown filesystem type 'mdraid'


Use mdadm to examine these partitions
-------------------------------------

# /sbin/mdadm --examine /dev/sdc2
mdadm: No md superblock detected on /dev/sdc2 <-- as it's swap OK

# /sbin/mdadm --examine /dev/sdc3
mdadm: No md superblock detected on /dev/sdc3

# /sbin/mdadm --examine /dev/sdc5
/dev/sdc5:
         Magic : a92b4efc
       Version : 00.90.00
          UUID : b6035660:c11a8a2e:7026aea2:99d23bfc
 Creation Time : Wed May 14 15:10:36 2003
    Raid Level : raid1
 Used Dev Size : 108486848 (103.46 GiB 111.09 GB)
    Array Size : 108486848 (103.46 GiB 111.09 GB)
  Raid Devices : 2
 Total Devices : 2
Preferred Minor : 1

   Update Time : Tue Aug  5 21:07:20 2008
         State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
 Spare Devices : 0
      Checksum : b9113923 - correct
        Events : 0.8311948

     Number   Major   Minor   RaidDevice State
this     0      33        5        0      active sync

  0     0      33        5        0      active sync
  1     1      34        5        1      active sync
[EMAIL PROTECTED] dev]#





--
---<GRiP>---
Grant Parnell - LPIC-1 certified engineer
EverythingLinux services - the consultant's backup & tech support.
Web: http://www.elx.com.au/support.php
We're also busybits.com.au and linuxhelp.com.au and everythinglinux.com.au.
Phone 02 8756 3522 to book service or discuss your needs
or email us at paidsupport at elx.com.au

ELX or its employees participate in the following:-
OSIA (Open Source Industry Australia) - http://www.osia.net.au
AUUG (Australian Unix Users Group) - http://www.auug.org.au
SLUG (Sydney Linux Users Group) - http://www.slug.org.au
LA (Linux Australia) - http://www.linux.org.au
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to