SW RAID particio felcsatolasa

Fórumok

Sziasztok,
Adott egy vinyo, amin debian squeeze(32bit) alatt lett csinalva sw raid1 (mdadm) mindegyik particion. Errol most at akarom menteni az adatokat ugy, hogy berakom az uj gepbe, ami egy debian wheezy (64bit).

# mount /dev/sdb1 /mnt/temp/
mount: unknown filesystem type 'linux_raid_member'

# mount /dev/sdb1 /mnt/temp/ -t ext4
mount: wrong fs type, bad option, bad superblock on /dev/sdb1, ...

# fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007a0b8

Device Boot Start End Blocks Id System
/dev/sdb1 63 1975994 987966 fd Linux raid autodetect
/dev/sdb2 1975995 21527099 9775552+ fd Linux raid autodetect
/dev/sdb3 21527100 41078204 9775552+ fd Linux raid autodetect
/dev/sdb4 41078266 976768064 467844899+ 5 Extended
/dev/sdb5 41078268 236412539 97667136 fd Linux raid autodetect
/dev/sdb6 236412603 238388534 987966 fd Linux raid autodetect
/dev/sdb7 238388598 246212189 3911796 82 Linux swap / Solaris
/dev/sdb8 246212253 976768064 365277906 fd Linux raid autodetect

Emlekeim szerint igy regen fel lehetett csatolni. A regi gep tovabbra is bootol es mukodik vele...

Hozzászólások

Uh, szegény disk, ennyi partíció...
Amit én csinálnék:

dd if=/dev/sdb1 of=/valahol/valami
losetup /dev/loop0 /valahol/valami
mdadm --examine /dev/loop0
Ha biztató akkor JAVÍTVA: mdadm --assemble /dev/md99 /dev/loop0

És akkor az md99-et, vagy ha esetleg arra is került partíció akkor az md99p0-t fel lehet pattintani.
Egyébként lehet hogy a losetup nem is kell, de ártani gondolom nem árt.

cat /proc/mdstat

És az ott látható csonka md-t csatold fel.