DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-08-16 04:21:20

luusac
Member
Registered: 2008-04-29
Posts: 360

pulling a raid1 hdd to copy data to new raid1 drives via linux

Hi,
I have just got a pair of larger hdds and want to copy the data from the old disks to the new.  Old setup was 250gb raid1, new setup 1tb raid1. I pulled the disks, did a factory reset, installed the new drives, formatted as raid1 via the web interface.  Installed ffp, telnet, ssh and ufs.  Connected one of the pulled drives to a desktop and booted from a ubuntu live cd.  I can see the pulled disk in ubuntu in gnome partition editor and System -> Disks.  But I am having problems mounting it - there is no mention of sda2 (the partition with the data I want to copy) in /etc/fstab /etc/mtab.  fdisk -l shows /dev/sda has 2 paritions - linux swap and linux.  But it also mentions /dev/md0 - which is what the raid1 array is referred to by the dns-323. and it says "Disk /dev/md0 doesn't contain a valid partition table"
So, how can I mount (r/o) the pulled drive?  When I try "mount -r /dev/sda2" I get "mount: can't find /dev/sda2 in /etc/fstab or /etc/mtab"
thanks
lu

Offline

 

#2 2008-08-16 05:40:13

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: pulling a raid1 hdd to copy data to new raid1 drives via linux

Do you happen to have a USB enclosure?  If you do, plug one disk into it and plug it into the USB port on the DNS.  Using fun_plug and the USB disk module, you can mount and transfer the data natively onth DNS.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#3 2008-08-16 10:17:46

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: pulling a raid1 hdd to copy data to new raid1 drives via linux

mkdir /mnt/dnsdisk
mount -r /dev/sdc2 /mnt/dnsdisk

You data is in /mnt/dnsdisk

Offline

 

#4 2008-08-16 20:21:31

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: pulling a raid1 hdd to copy data to new raid1 drives via linux

Hi,
thanks for these.  I don't have a usb enclosure.  I got it working with mount -t ext2 -r /dev/sda2 /home/me/Desktop/old after noticing that when you don't specify a file type you get the complaint along the line of "fs not recognised: linux_raid_member"
lu

Offline

 

#5 2008-08-19 08:18:37

bscott
Member
Registered: 2007-07-13
Posts: 48

Re: pulling a raid1 hdd to copy data to new raid1 drives via linux

luusac wrote:

I got it working with mount -t ext2 -r /dev/sda2 /home/me/Desktop/old after noticing that when you don't specify a file type you get the complaint along the line of "fs not recognised: linux_raid_member"

Also, to be pedantic (and hopefully help future readers of this thread), mount normally takes source (device) and destination (directory/mountpoint) arguments - if you use just one or the other, it assumes you're referring to a situation already configured in /etc/fstab and goes to look for the rest of the info there.  To mount an ad-hoc device, you must use both, as in:

home> mkdir ~/temp
home> mount -t ext2 /dev/sda1 ~/temp


- B

Offline

 

#6 2008-08-19 16:09:14

boupartac
Member
From: Montréal, Québec, Canada
Registered: 2008-07-29
Posts: 38

Re: pulling a raid1 hdd to copy data to new raid1 drives via linux

Cool, very useful to know.

Thanks everyone,

boupartac

Offline

 

#7 2008-08-19 17:53:51

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: pulling a raid1 hdd to copy data to new raid1 drives via linux

bscott wrote:

luusac wrote:

I got it working with mount -t ext2 -r /dev/sda2 /home/me/Desktop/old after noticing that when you don't specify a file type you get the complaint along the line of "fs not recognised: linux_raid_member"

Also, to be pedantic (and hopefully help future readers of this thread), mount normally takes source (device) and destination (directory/mountpoint) arguments - if you use just one or the other, it assumes you're referring to a situation already configured in /etc/fstab and goes to look for the rest of the info there.  To mount an ad-hoc device, you must use both, as in:

home> mkdir ~/temp
home> mount -t ext2 /dev/sda1 ~/temp


- B

Yes, the mount command I gave assumed that there was already a directory called "/home/Desktop/old"

lu

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB