how to mount RAID partician

Hello All,

I need to mount below harddisk.I try with mount /dev/sdb /mnt/external2 But unable to mount.Error in "device is busy".How to mount /dev/sdb fully.Any other option.please advice

Disk /dev/sdb: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         131     1052226   fd  Linux raid autodetect
/dev/sdb2             132        8608    68091502+  fd  Linux raid autodetect
/dev/sdb3            8609       17085    68091502+  fd  Linux raid autodetect
/dev/sdb4           17086       30394   106904542+   5  Extended
/dev/sdb5           17086       25562    68091471   fd  Linux raid autodetect
/dev/sdb6           25563       26476     7341673+  fd  Linux raid autodetect
/dev/sdb7           26477       27390     7341673+  fd  Linux raid autodetect
/dev/sdb8           27391       28304     7341673+  fd  Linux raid autodetect
/dev/sdb9           28305       29087     6289416   fd  Linux raid autodetect
/dev/sdb10          29088       29609     4192933+  fd  Linux raid autodetect
/dev/sdb11          29610       30131     4192933+  fd  Linux raid autodetect
/dev/sdb12          30132       30132        8001   8e  Linux LVM
/dev/sdb13          30133       30263     1052226   fd  Linux raid autodetect
/dev/sdb14          30264       30394     1052226   fd  Linux raid autodetect

/dev/sdb is the entire disk, you can't mount an entire disk unless the entire disk is just one partition.

What kind of RAID is it? Is it a software raid? You may not be able to mount it until you activate it with mdadm, in which case it'll become a new device, /dev/md*.

Maybe it's activated itself already. That would explain why it thinks it's busy -- it's been "eaten" by the software RAID driver. Try ls -l /dev/md* to see if you have any software RAID devices available. And df -h for good measure to see what devices you already have mounted where.

1 Like

Dear Corona688,

As you told we tried for each..
it shows error like..

~]# mount /dev/sdb5 /mnt/Mirror/sdbAll
mount: /dev/sdb5 already mounted or /mnt/Mirror/sdbAll busy

but

~]# umount /dev/sdb5
umount: /dev/sdb5: not mounted

~]# mdadm --detail /dev/md0
mdadm: md device /dev/md0 does not appear to be active.
~]# cat /proc/mdstat
Personalities : [raid1] [raid0]
md11 : active raid1 sdb2[0]
      68091392 blocks [2/1] [U_]

md10 : active raid1 sdb3[0]
      68091392 blocks [2/1] [U_]

md8 : active raid1 sdb5[0]
      68091392 blocks [2/1] [U_]

md6 : active raid1 sdb6[0]
      7341568 blocks [2/1] [U_]
...
... for all.
unused devices: <none>

 ~]# mount   <<--- sdb not yet mounted.
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda13 on /home type ext3 (rw)
/dev/sda11 on /opt type ext3 (rw)
/dev/sda10 on /tmp type ext3 (rw)
/dev/sda9 on /usr type ext3 (rw)
/dev/sda12 on /usr/local type ext3 (rw)
/dev/sda8 on /var type ext3 (rw)
/dev/sda14 on /var/files type ext3 (rw)
/dev/sda6 on /var/myfolder type ext3 (rw)
/dev/sda5 on /var/data1 type ext3 (rw)
/dev/sda3 on /var/intofolder type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdc on /mnt/external type ext3 (rw)

i got this info by viewing : linuxquestions.org - questions - linux-software-2/why-cant-i-mount-this-md0-raid-mdadm-and-software-raid-345232/ Why can't I mount this md0 raid? (mdadm and software raid)

My only Need is :: To get all data in "sdb" to be accessible
No problem if it comes in one directory or different directory.

That's not quite what I told you. :wink:

I think this is a software RAID. You'll have to use the md* devices.

There you go. The software RAID is active, and that is why you can't use the raw /dev/sdb* devices. The MD driver has taken them over and provided md* devices in their place. sdb6 is available as md6, sdb5 is available as md8, etc, etc. Either it was setup this way from the start, or the system autodetected the RAID partitions and turned them into md devices for you.

You still can't use it all as one giant thing -- it never was one giant thing. But you should be able to mount these md1,md2,... devices individually.

Half the RAID seems to be missing, but since this was a mirror, it fortunately still works.

Since you didn't post the entire, unaltered output of mdstat I can't tell you where to mount which in what order.