Hi everyone,
Being unable to solve my problem I registered here hoping someone could help me.
I have the following setup:
Two 1gb drives in raid 1
/dev/md0
- /dev/sdb
- /dev/sdc
I have an crypt-luks fs raw on /dev/md0.
Unlocking it is no problem:
Quote:
cryptsetup -v luksOpen /dev/md0 backups
Enter passphrase for /dev/md0:
Key slot 0 unlocked.
Command successful.
|
fdisk -l /dev/mapper/backups
Quote:
Disk /dev/mapper/backups: 1000.2 GB, 1000201601024 bytes
1 heads, 1 sectors/track, 1953518752 cylinders, total 1953518752 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: 0x0008f28d
Device Boot Start End Blocks Id System
/dev/mapper/backups1 * 2048 1953517567 976757760 83 Linux
|
However /dev/mapper/backups1 is not showing up:
ls -lsa /dev/mapper/
Quote:
total 0
0 drwxr-xr-x 2 root root 120 Jun 22 15:10 .
0 drwxr-xr-x 21 root root 4140 Jun 22 15:10 ..
0 lrwxrwxrwx 1 root root 7 Jun 22 15:12 backups -> ../dm-2
0 crw------- 1 root root 10, 236 Jun 22 15:03 control
0 lrwxrwxrwx 1 root root 7 Jun 22 15:03 luks-7ebf056b-8bde-4580-b1e4-8c8a0b781f82 -> ../dm-0
0 lrwxrwxrwx 1 root root 7 Jun 22 15:03 vg_rzdev1-lv_root -> ../dm-1
|
It appears to be a link to /dev/dm-2, same issues:
fdisk -l /dev/dm-2
Quote:
Disk /dev/dm-2: 1000.2 GB, 1000201601024 bytes
1 heads, 1 sectors/track, 1953518752 cylinders, total 1953518752 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: 0x0008f28d
Device Boot Start End Blocks Id System
/dev/dm-2p1 * 2048 1953517567 976757760 83 Linux
|
Same issue, no /dev/dm-2p1:
ls -lsa /dev/dm*
Quote:
0 brw-rw---- 1 root disk 253, 0 Jun 22 15:03 /dev/dm-0
0 brw-rw---- 1 root disk 253, 1 Jun 22 15:03 /dev/dm-1
0 brw-rw---- 1 root disk 253, 2 Jun 22 15:12 /dev/dm-2
|
Testdisk shows the partition and my files:
Quote:
TestDisk 6.12, Data Recovery Utility, May 2011
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
* Linux 2048 1953517567 1953515520 [backups]
Directory /
>drwxrwxrwx 0 0 4096 21-Jun-2011 12:38 .
drwxrwxrwx 0 0 4096 21-Jun-2011 12:38 ..
drwx------ 0 0 16384 21-Jun-2011 12:36 lost+found
drwxrwxr-x 500 500 4096 21-Jun-2011 18:56 Untitled Folder
drwxrwxr-x 500 500 4096 21-Jun-2011 12:39 Backups
drwxrwxr-x 500 500 4096 21-Jun-2011 18:56 Old
|
So I can access my data through testdisk, but why wont the partition show up under /dev ? I can't mount it. Any Idea's?