You are on page 1of 4

How to mount software RAID1 member using mdadm https://blog.sleeplessbeastie.eu/2012/05/08/how-...

How to mount
software RAID1
member using
mdadm
by Milosz Galazka on May 8,
2012 and tagged with Debian,
Command-line, System
management, Recovery,
Software RAID

Just a moment ago I connected


my old hard drive and realized
sleeplessbeastie's notes that it was a RAID member.

Personal notes about Linux, $ sudo fdisk -l /dev/sdd


applications and programming. Disk /dev/sdd: 250.1 GB, 250058268160 byt
255 heads, 63 sectors/track, 30401 cylind
Home Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes
Archives I/O size (minimum/optimal): 512 bytes / 5
Disk identifier: 0x90909090
Search
Tags Device Boot Start End
/dev/sdd1 * 2048 2099199
About
/dev/sdd2 2099200 6293503
/dev/sdd3 6293504 69208063
Milosz Galazka /dev/sdd4 69208064 488394751 2
milosz (at) sleeplessbeastie (dot) eu
I couldn't mount it out of the
Updated on 2019-09-20
box:
© 2019. All rights reserved.

$ sudo mkdir /mnt/old_hdd

1 of 4 9/20/19, 7:12 PM
How to mount software RAID1 member using mdadm https://blog.sleeplessbeastie.eu/2012/05/08/how-...

$ sudo mount /dev/sdd4 /mnt/old_hdd


mount: unknown filesystem type 'linux_rai

Fortunately I used RAID1 array:

$ sudo mdadm --examine /dev/sdd4


/dev/sdd4:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 957e7cb5:bfd41f70:9cb84
Name : milosz-desktop:2
Creation Time : Sat Aug 20 18:48:26 201
Raid Level : raid1
Raid Devices : 2

Avail Dev Size : 419184640 (199.88 GiB 2


Array Size : 419184496 (199.88 GiB 2
Used Dev Size : 419184496 (199.88 GiB 2
Data Offset : 2048 sectors
Super Offset : 8 sectors
sleeplessbeastie's notes State : clean
Device UUID : db8a694f:750a0ded:22a6d
Personal notes about Linux,
applications and programming. Update Time : Tue May 8 20:50:32 201
Checksum : 75dbc3b6 - correct
Home Events : 191

Archives
Device Role : Active device 1
Search
Array State : .A ('A' == active, '.' =
Tags
About I needed to create md virtual
device using mdadm:
Milosz Galazka
milosz (at) sleeplessbeastie (dot) eu $ sudo mdadm -A -R /dev/md9 /dev/sdd4
mdadm: /dev/md9 has been started with 1 d
Updated on 2019-09-20
© 2019. All rights reserved. So it could be mounted
without hassle:

2 of 4 9/20/19, 7:12 PM
How to mount software RAID1 member using mdadm https://blog.sleeplessbeastie.eu/2012/05/08/how-...

$ sudo mount /dev/md9 /mnt/old_hdd/


$ mount | grep ^/dev/md9
/dev/md9 on /mnt/old_hdd type ext4 (rw)

After data was moved I


unmounted �le system and
removed md virtual device.

$ sudo umount /mnt/old_hdd


$ sudo mdadm -S /dev/md9
mdadm: stopped /dev/md9

Post navigation
← Ubuntu - Boot to RAM -
Couple of notes May 2, 2012
sleeplessbeastie's notes
How to get disk UUID May 10,
Personal notes about Linux, 2012 →
applications and programming.

Home
Archives Related Posts
Search How to modify system
Tags identi�cation message 18 Sep
About 2019

How to perform suite change


Milosz Galazka 12 Aug 2019
milosz (at) sleeplessbeastie (dot) eu How to count TCP connections
07 Aug 2019
Updated on 2019-09-20
How to generate sequence of
© 2019. All rights reserved.
numbers 05 Aug 2019

3 of 4 9/20/19, 7:12 PM
How to mount software RAID1 member using mdadm https://blog.sleeplessbeastie.eu/2012/05/08/how-...

How to determine how long


speci�ed remote server or
device was of�ine 29 Jul 2019

sleeplessbeastie's notes
Personal notes about Linux,
applications and programming.

Home
Archives
Search
Tags
About

Milosz Galazka
milosz (at) sleeplessbeastie (dot) eu

Updated on 2019-09-20
© 2019. All rights reserved.

4 of 4 9/20/19, 7:12 PM

You might also like