xubuntu raid drivers?

Imaulle

[H]ard|Gawd
Joined
Jan 13, 2006
Messages
1,213
just coming from windows 7 and I'm a bit confused. I had a raid array (mirrored) in windows 7 and a truecrypt drive partition on the 2 raided hdd that are mirrrored. How do I get the drive to show up? Do I need to make sure I have all the correct drivers installed? I tried to automount from truecrypt and it would just say incorrect password or no mount found :\ I really really need to recover this truecrypt drive
 
You need to install the ntfs-3g driver for Linux to recognize NTFS partitioned drives.
 
okay I have that installed. now what? I still dont see the disks showing up
 
If you created the array via software( or fakeraid on the MB ), linux will never be able to see it.
 
If you created the array via software( or fakeraid on the MB ), linux will never be able to see it.

Not true if they are simply mirrored. You should be able to mount up a single drive as if it was never in raid in the first place.

So, can you locate the truecrypt volume file?

Are you trying to mount a hidden volume? Can you go back to windows?

You shouldn't really mess with stuff like truecrypt unless you really know what you are doing and actually need it.
 
yeah I didn't use any software to create the raid it was all through my raid controller in bios. I can see the 2 hdd under truecrypt, but I cannot figure out how to mount them I guess?
 
You need to provide more detail. Are you dealing with a fully encrypted disk? Or do you have a TrueCrypt volume file on top of a normal NTFS disk?
 
asdfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
 
Last edited:
I had a normal ntfs disk that was 2 partitions. 1 partition is not encryped and is really small, the other is encryped and pretty large. I don't care about the data on the small one
 
Install dmraid and give me the output of :

sudo dmraid -ay

Since it's a truecypted NTFS partition, you're going to have mount the individual volumes one by one for Linux to recognize the array as a whole.

There's a truecrypt CLI tool I've found to mount the encrypted volume in Linux but I've yet to find them in the repositories.

http://serverfault.com/questions/68011/mount-truecrypt-volume-with-ntfs-on-linux-command-line

That's the basic idea, hopefully this helps but like i've said I can't the actual CLI tool. I'll keep on the lookout though.
 
RAID set "isw_defgabgbdi_Volume0" already active
RAID set "isw_defgabgbdi_Volume0p1" already active
RAID set "isw_defgabgbdi_Volume0p2" already active


0 is my ssd / system and 1/2 are the 2TB drives I take it? edit: wait no I don't think that is correct at all...
 
Try mounting those individual mappers with truecrypt to "/tmp" then give me the output of "ls fdisk -l". If that doesn't work, then try mounting "sdb" and "sdc" to "/tmp" then give me the output.

It seems "volume0" is the volume itself and "p1/p2" are the actual partitions on that volume.
 
Btw, "sdb" and "sdc" are the two 2TB drives that are raided, and "sda" is your boot drive - in case you didn't know.
 
okay got it...

when I go in truecrypt I see /dev/sdb/ and /dev/sdc/ but I cannot mount them or anything. it looks like it only sees the whole drive but those drives have 2 partitions each, and one of those partitions is what I need to mount in truecrypt if I'm not mistaken... right?
 
The array has two partitions right? One W7 and another for personal data? So I believe the array has two partitions, not two partitions for each drive in the array.
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Last edited:
yes the array has 2 partitions, both were created in W7 but were never used to boot from or used as file system or anything
 
yes the array has 2 partitions, both were created in W7 but were never used to boot from or used as file system or anything

Alright, awesome.

ok trying to mount with:

Code:
morgan@Viral:~$ sudo mount -t ntfs-3g /dev/sdb/ /mount/downloads/
[sudo] password for morgan: 
NTFS signature is missing.
Failed to mount '/dev/sdb': Invalid argument
The device '/dev/sdb' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
morgan@Viral:~$


Ok, first off we need to install truecrypt on Linux.

http://www.truecrypt.org/downloads

Go to where it says "Linux", then select "console only 64-bit". The file should appear either in your "/Downloads" directory or your desktop after the download is finished.

For layman purposes, we'll use the GUI to extract the .tar.gz file. So right click on the compressed file and select "extra here". Then extracted setup file should appear right next to the compressed one you've just downloaded.

Then, open up a terminal and cd to wherever the file is in what directory you've found, and type:

./"setupFilename"

make sure to delete the double quotes. It should install the CLI tools needed for truecrypte on Linux. Also, make sure the period(.) is in front of the forward slash when executing the command, this is important since this is a script based install.

We can get to mounting after that.
 
i need the console version and not the GUI I already have installed?
 
I didn't even know a GUI version existed. lol I haven't used the GUi version yet.

You don't necessarily need it, but CLI based administration is faster and more simple. Can you see your drives in the GUI version?
 
under 'Select Device' I see:

Code:
/dev/sda:    111 GB
/dev/sda1    105 GB /
/dev/sda5    6.0 GB

/dev/sdb:    1.8 TB

/dev/sdc:    1.8 TB
 
Try mounting the two drives with the GUI version, then post "sudo fdisk -l". If that doesn't work then we'll use the CLI way.

What we need to do is mount those two drives and then add the array volume to fstab so that Linux will automatically initialize the drive upon boot.
 
Last edited:
I've already tried many times to mount them in truecrypt it says no volume found. I'm pretty sure I need to first mount the disks somehow to the system, then try and mount a partition in truecrypt
 
Code:
morgan@Viral:~/Desktop$ sudo fdisk -l
[sudo] password for morgan: 

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x0009e7a8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   221878271   110938112   83  Linux
/dev/sda2       221880318   234440703     6280193    5  Extended
/dev/sda5       221880320   234440703     6280192   82  Linux swap / Solaris

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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: 0x35f3b262

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048   614402047   307200000    7  HPFS/NTFS/exFAT
/dev/sdb2       614402048  3907018751  1646308352    7  HPFS/NTFS/exFAT

Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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: 0x3353e904

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048   614402047   307200000    7  HPFS/NTFS/exFAT
/dev/sdc2       614402048  3907018751  1646308352    7  HPFS/NTFS/exFAT

Disk /dev/mapper/isw_defgabgbdi_Volume0: 2000.4 GB, 2000395833344 bytes
255 heads, 63 sectors/track, 243200 cylinders, total 3907023112 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: 0x35f3b262

                              Device Boot      Start         End      Blocks   Id  System
/dev/mapper/isw_defgabgbdi_Volume0p1   *        2048   614402047   307200000    7  HPFS/NTFS/exFAT
/dev/mapper/isw_defgabgbdi_Volume0p2       614402048  3907018751  1646308352    7  HPFS/NTFS/exFAT

Disk /dev/mapper/isw_defgabgbdi_Volume0p1: 314.6 GB, 314572800000 bytes
255 heads, 63 sectors/track, 38244 cylinders, total 614400000 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: 0x6e697373

This doesn't look like a partition table
Probably you selected the wrong device.

                                Device Boot      Start         End      Blocks   Id  System
/dev/mapper/isw_defgabgbdi_Volume0p1p1   ?  1936269394  3772285809   918008208   4f  QNX4.x 3rd part
/dev/mapper/isw_defgabgbdi_Volume0p1p2   ?  1917848077  2462285169   272218546+  73  Unknown
/dev/mapper/isw_defgabgbdi_Volume0p1p3   ?  1818575915  2362751050   272087568   2b  Unknown
/dev/mapper/isw_defgabgbdi_Volume0p1p4   ?  2844524554  2844579527       27487   61  SpeedStor

Partition table entries are not in disk order

Disk /dev/mapper/isw_defgabgbdi_Volume0p2: 1685.8 GB, 1685819752448 bytes
255 heads, 63 sectors/track, 204955 cylinders, total 3292616704 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: 0x8a5c969b

Disk /dev/mapper/isw_defgabgbdi_Volume0p2 doesn't contain a valid partition table
morgan@Viral:~/Desktop$
 
The GUI Truecrypt isn't using the ntfs-3g driver when trying to mount your array, that's why it says it isn't seeing any volumes, it can't see the volumes.. That's why we need the CLI to add specific flags to mount the NTFS volumes. Then add them in fstab so it'll be there upon reboot so you don't have to do it again.

try this:

sudo truecrypt --mount-options=system --filesystem=ntfs-3g /dev/(drive name) /tmp

do this for the individual drives.
 
mmm ok it's asking for a drive password, and then a hidden volume password? the only thing I ever remember setting was the hidden volume password
 
add

-p=password

before your source point to embed the truecrypt arrays password. It should ask for your sudo password upon doing that.

So,

sudo truecrypt --mount-options=system -p=password --filesystem=ntfs-3g /dev/(drive name) /tmp

try that.
 
it's not working. I installed Ubuntu and it mounts the smaller partition on its own now... but I still cannot get the hidden volume to mount in truecrypt. what exactly should I be putting for drive name?
 
oh awesome got it! I had to do

Code:
sudo truecrypt --filesystem=ntfs-3g /dev/mapper/isw_defgabgbdi_Volume0p2 /media/downloads/

thank you for your help!!
 
oh awesome got it! I had to do

Code:
sudo truecrypt --filesystem=ntfs-3g /dev/mapper/isw_defgabgbdi_Volume0p2 /media/downloads/

thank you for your help!!

No problem. ;)

I knew trying those mappers I said in post 13 would do the trick. Awesome job.
 
Back
Top