ubuntuusers.de

What i done

Autor:
Umsteiger666
Datum:
7. September 2008 10:54
Code:
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
ubuntu@ubuntu:~$ sudo apt-get install cryptsetup
[...]

ubuntu@ubuntu:~$ sudo modprobe aes-i586

ubuntu@ubuntu:~$ sudo modprobe dm-crypt 

ubuntu@ubuntu:~$ sudo cryptsetup luksOpen /dev/hda7 name
Enter LUKS passphrase: 
key slot 0 unlocked.
Command successful.

ubuntu@ubuntu:~$ sudo e2fsck -b 8193 /dev/hda7 
e2fsck 1.40.2 (12-Jul-2007)
e2fsck: Device or resource busy beim Versuch, /dev/hda7 zu öffnen
Filesystem mounted or opened exclusively by another program?

ubuntu@ubuntu:~$ sudo umount -a
umount: /tmp: device is busy
umount: /dev: device is busy
umount: /var/run: device is busy
umount: tmpfs: not found
umount: /lib/modules/2.6.22-14-generic/volatile: not mounted

ubuntu@ubuntu:~$ sudo e2fsck -p /dev/hda7
e2fsck: Device or resource busy beim Versuch, /dev/hda7 zu öffnen
Filesystem mounted or opened exclusively by another program?

ubuntu@ubuntu:~$ sudo cryptsetup luksDump /dev/hda7
LUKS header information for /dev/hda7

Version:        1
Cipher name:    aes
Cipher mode:    cbc-essiv:sha256
Hash spec:      sha1
Payload offset: 2056
MK bits:        256
MK digest:      68 cd 1e a8 d4 e5 0e 12 12 93 cf 5e c4 0a fa 4d bc ab 1c a7 
MK salt:        2c 31 f8 c3 2f 44 a0 b1 45 7f a7 b4 af 88 e9 b2 
                af ab b6 47 50 0e 03 eb cc 48 52 bb 2e c0 c0 85 
MK iterations:  10
UUID:           4311bba7-72b9-4ad2-8e58-d7e065423444

Key Slot 0: ENABLED
        Iterations:             192253
        Salt:                   5a 99 d4 90 86 9a 8c 27 55 d4 12 52 d5 6e dd f4 
                                39 3f c2 33 08 85 1d 21 e8 54 7f 41 52 2c b9 f8 
        Key material offset:    8
        AF stripes:             4000
Key Slot 1: DISABLED
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED

ubuntu@ubuntu:~$ sudo apt-get install lvm2
[...]

ubuntu@ubuntu:~$ sudo lvscan -a
  No volume groups found

ubuntu@ubuntu:~$ sudo fdisk /dev/hda
Command (m for help): p

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00079da8

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1       13201   106037001   83  Linux
/dev/hda2   *       13202       19457    50251320    f  W95 Ext'd (LBA)
/dev/hda5           13202       13298      779121   82  Linux swap / Solaris
/dev/hda6           13299       14604    10490413+  83  Linux
/dev/hda7           14605       19457    38981691   83  Linux

Command (m for help): q

ubuntu@ubuntu:~$ sudo fsck /dev/hda
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
fsck.ext2: Device or resource busy beim Versuch, /dev/hda zu öffnen
Filesystem mounted or opened exclusively by another program?

ubuntu@ubuntu:~$ sudo fsck /dev/hda7
fsck 1.40.2 (12-Jul-2007)
fsck: fsck.crypt_LUKS: nicht gefunden
fsck: Fehler 2 bei Ausführung von fsck.crypt_LUKS für /dev/hda7

ubuntu@ubuntu:~$ sudo bash

root@ubuntu:~# pvscan 
  No matching physical volumes found

root@ubuntu:~# lvscan 
  No volume groups found

root@ubuntu:~# fsck /dev/hda7
fsck 1.40.2 (12-Jul-2007)
fsck: fsck.crypt_LUKS: nicht gefunden
fsck: Fehler 2 bei Ausführung von fsck.crypt_LUKS für /dev/hda7

root@ubuntu:~#