Author Topic: Here´s a guide for mounting raid partitions  (Read 2510 times)

Offline Revhead

  • Jr. Member
  • **
  • Posts: 39
Here´s a guide for mounting raid partitions
« on: May 21, 2010, 05:36:40 PM »
Thought others might find this useful (I know I did).
I have two 80Gb disks joined in a raid array and divided into 6 NTFS partitions. Using this info I was able to automount them and read and write to them from my PCLinuxOS 2010.1 installation which I dual boot with XP.
My system uses the Silicon Image raid controller Sil3112.
Because there are 6 partitions I had to create 6 mount points which I numbered to correspond with the way PCLOS sees them, to avoid confusion.
I then added the six entries to my /etc/rc.local file using Kwrite (you have to be logged in as ROOT to do this).
In my case the additional lines read:

dmraid -ay
mount -t ntfs-3g /dev/mapper/sil_aeagdcdfagdjp1 /media/my_windows_raid1
mount -t ntfs-3g /dev/mapper/sil_aeagdcdfagdjp5 /media/my_windows_raid5
mount -t ntfs-3g /dev/mapper/sil_aeagdcdfagdjp6 /media/my_windows_raid6
mount -t ntfs-3g /dev/mapper/sil_aeagdcdfagdjp7 /media/my_windows_raid7
mount -t ntfs-3g /dev/mapper/sil_aeagdcdfagdjp8 /media/my_windows_raid8
mount -t ntfs-3g /dev/mapper/sil_aeagdcdfagdjp9 /media/my_windows_raid9

You can then browse the partitions from Dolphin, add them to my places and edit the names to reflect their Windows names.
Hope this helps someone.
Here´s the link to the original article which is reproduced below . . .

http://www.bitburners.com/articles/pclinuxos-2008-minime-tips-and-tricks/4186/


And I quote . . .

Mounting a software RAID Windows NTFS partition using dmraid and ntfs-3g

Most motherboards these days support RAID arrays, also known as fake RAIDs (as they are not true hardware RAIDs) or BIOS RAIDs. Usually after installing Linux, PCLinuxOS or some other distribution, you end up seeing the two (or more) physical disks of your RAID setup, instead of the merged RAID volume. Luckily there is a driver available for accessing fake RAID disks within Linux – open the package management Synaptic and install dmraid. Next step is to open the Konsole again and do the following.

    su
    dmraid -ay

This command activates all BIOS raid arrays of your system and outputs the unique identifiers of the RAID arrays (a bunch of letters). They should now appear under /dev/mapper. Continue on the Konsole and list the contents of the /dev/mapper folder.

    ls /dev/mapper
    control  pdc_begabfcgj  pdc_begabfcgj1

In my case this is a 2 disc RAID 1 configuration, where the discs have identical mirrored content. The one you want to mount in Linux is the one ending with the number 1. Make a directory for the mountpoint.

    mkdir /media/my_windows_raid  (this can be whatever you desire)

Now you can mount the RAID volume manually.

    mount -t ntfs-3g /dev/mapper/pdc_begabfcgj1 /media/my_windows_raid

Obviously you replace the dev/mapper string with your own, and use your desired mountpoint. The PCLinuxOS however does not load dmraid on system boot or mount your RAID automatically, but there is a simple workaround to achieve that. Edit the /etc/rc.local file, which contains commands that are executed on system boot in root user mode.

    kwrite /etc/rc.local

Add the following lines:

    dmraid -ay
    mount -t ntfs-3g /dev/mapper/pdc_begabfcgj1 /media/my_windows_raid

Optinally you can just use mount -a and add the mount parameters to the /etc/fstab file. Here is what my fstab mount looks like with all the parameters.

    kwrite /etc/fstab

Add the line:

    /dev/mapper/pdc_begabfcgj1 /media/my_windows_raid ntfs-3g defaults,user,exec,auto,locale=en_US.UTF-8 0 0
« Last Edit: May 23, 2010, 03:20:28 AM by Revhead »
Cheers,
Revhead
PCLinuxOS 2010.1
Toshiba Satellite U300 T7100 notebook

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Guide for mounting raid partitions
« Reply #1 on: May 21, 2010, 05:41:36 PM »
That's an excellent writeup! One thing, though, I think you want to correct this:
"In my case this is a 2 disc RAID 0 configuration, where the discs have identical mirrored content."

If it's mirrored, it's RAID 1.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Revhead

  • Jr. Member
  • **
  • Posts: 39
Re: Guide for mounting raid partitions
« Reply #2 on: May 21, 2010, 05:45:23 PM »
That's an excellent writeup! One thing, though, I think you want to correct this:
"In my case this is a 2 disc RAID 0 configuration, where the discs have identical mirrored content."

If it's mirrored, it's RAID 1.


Yeah, sorry. That´s a straight quote from the original article.
Cheers,
Revhead
PCLinuxOS 2010.1
Toshiba Satellite U300 T7100 notebook

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Guide for mounting raid partitions
« Reply #3 on: May 21, 2010, 05:49:50 PM »
Yeah, sorry. That´s a straight quote from the original article.

No problem. I thought you might want to correct it if someone nominates your tutorial to go in a how-to section.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Revhead

  • Jr. Member
  • **
  • Posts: 39
Re: Guide for mounting raid partitions
« Reply #4 on: May 21, 2010, 05:52:37 PM »
Yeah, sorry. That´s a straight quote from the original article.

No problem. I thought you might want to correct it if someone nominates your tutorial to go in a how-to section.


Fixed. Made the fact I was quoting clearer too. I´m just a beginner and a talented plagariser, but it worked for me so it can´t be too hard to follow.
Cheers,
Revhead
PCLinuxOS 2010.1
Toshiba Satellite U300 T7100 notebook