View previous topic :: View next topic |
Author |
Message |
Vieri l33t
Joined: 18 Dec 2005 Posts: 870
|
Posted: Wed Feb 19, 2014 1:57 pm Post subject: mount /dev/md |
|
|
Hi,
I created a RAID1 array with name=4 and I can see that it created it as /dev/md/4_0.
First question: what does the trailing _0 mean?
Also, I mounted it this way:
Code: | # mount /dev/md/4_0 /mnt/gentoo |
and I'd like to check that it's mounted. So I issued:
Code: | # mount
/dev/md125 on /mnt/gentoo type ext4 (rw) |
Why doesn't it show /dev/md/4_0 instead of /dev/md125?
I know that /dev/md/4_0 is a symlink to md125 but I'd really like a simple/quick way of programmatically checking that /dev/md/4_0 is mounted.
Is there anywhere else I can check for /dev/md/4_0 mount status?
Thanks,
Vieri |
|
Back to top |
|
|
mhogomchungu n00b
Joined: 18 May 2013 Posts: 19
|
Posted: Thu Feb 20, 2014 4:19 am Post subject: Re: mount /dev/md |
|
|
Vieri wrote: |
Code: | # mount
/dev/md125 on /mnt/gentoo type ext4 (rw) |
Why doesn't it show /dev/md/4_0 instead of /dev/md125?
I know that /dev/md/4_0 is a symlink to md125 but I'd really like a simple/quick way of programmatically checking that /dev/md/4_0 is mounted.
Is there anywhere else I can check for /dev/md/4_0 mount status?
Thanks,
Vieri |
I think it is a bug for the mount command to use "/dev/md125" instead of "/dev/md/4_0".
Since it does that,when you see "/dev/md125",scan contents of "/dev/md/" and resolve each entry until you find the one that resolves to "/dev/md125" and in your case,that will be "/dev/md/4_0".
one tool i know of that will report "/dev/md/4_0" is zuluMount[1].
A zuluMount-cli command to print a list of mounted volumes looks like below
Quote: |
[ink@mtz ~]$ zuluMount-cli -E
/dev/sda5
/dev/sdb5
/dev/md/mdraid
[ink@mtz ~]$
|
[1] http://code.google.com/p/zulucrypt/[/code] |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|