Posted by: Wildan Maulana | September 13, 2007

cryptsetup isLuks /dev/mmcblk0p2

There no problem with this command, i put the strace result here just only for documentation :

-sh-3.2# cryptsetup isLuks /dev/mmcblk0p2
execve(“/usr/sbin/cryptsetup”, [“cryptsetup”, “isLuks”, “/dev/mmcblk0p2”], [/* 8 vars */]) = 0
mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aab0000
stat(“/etc/ld.so.cache”, {st_mode=S_IFREG|0644, st_size=64, …}) = 0
open(“/etc/ld.so.cache”, O_RDONLY)      = 3
mmap(NULL, 64, PROT_READ, MAP_SHARED, 3, 0) = 0x2aab1000
close(3)                                = 0
open(“/lib/libpopt.so.0”, O_RDONLY)     = -1 ENOENT (No such file or directory)
open(“/lib/libpopt.so.0”, O_RDONLY)     = -1 ENOENT (No such file or directory)
open(“/usr/lib/libpopt.so.0”, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=18052, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aab2000
read(3, “\177ELF\1\2\1\3\30\255\1″…, 4096) = 4096
mmap(NULL, 24576, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aab3000
mmap(0x2aab3000, 16388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aab3000
mmap(0x2aab8000, 824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4) = 0x2aab8000
close(3)                                = 0
munmap(0x2aab2000, 4096)                = 0
open(“/lib/libcryptsetup.so.0”, O_RDONLY) = -1 ENOENT (No such file or directory)
open(“/lib/libcryptsetup.so.0”, O_RDONLY) = -1 ENOENT (No such file or directory)
open(“/usr/lib/libcryptsetup.so.0”, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=38528, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aab2000
read(3, “\177ELF\1\2\1\3\30\255\1″…, 4096) = 4096
mmap(NULL, 45056, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aab9000
mmap(0x2aab9000, 36100, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aab9000
mmap(0x2aac2000, 4700, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x8) = 0x2aac2000
close(3)                                = 0
munmap(0x2aab2000, 4096)                = 0
open(“/lib/libdevmapper.so.1.02”, O_RDONLY) = -1 ENOENT (No such file or directory)
open(“/lib/libdevmapper.so.1.02”, O_RDONLY) = -1 ENOENT (No such file or directory)
open(“/usr/lib/libdevmapper.so.1.02”, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=64250, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aab2000
read(3, “\177ELF\1\2\1\3\30\255\1″…, 4096) = 4096
mmap(NULL, 53248, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aac4000
mmap(0x2aac4000, 41748, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aac4000
mmap(0x2aacf000, 6928, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa) = 0x2aacf000
close(3)                                = 0
munmap(0x2aab2000, 4096)                = 0
open(“/lib/libc.so.0”, O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=209024, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aab2000
read(3, “\177ELF\1\2\1\3\30\255\1″…, 4096) = 4096
mmap(NULL, 233472, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aad1000
mmap(0x2aad1000, 203764, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aad1000
mmap(0x2ab03000, 7024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x31) = 0x2ab03000
mmap(0x2ab05000, 17808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab05000
close(3)                                = 0
munmap(0x2aab2000, 4096)                = 0
open(“/lib/libc.so.0”, O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=209024, …}) = 0
close(3)                                = 0
open(“/lib/libdevmapper.so.1.02”, O_RDONLY) = -1 ENOENT (No such file or directory)
open(“/lib/libdevmapper.so.1.02”, O_RDONLY) = -1 ENOENT (No such file or directory)
open(“/usr/lib/libdevmapper.so.1.02”, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=64250, …}) = 0
close(3)                                = 0
open(“/lib/libc.so.0”, O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=209024, …}) = 0
close(3)                                = 0
open(“/lib/libc.so.0”, O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=209024, …}) = 0
close(3)                                = 0
munmap(0x2aab1000, 64)                  = 0
stat(“/lib/ld-uClibc.so.0”, {st_mode=S_IFREG|0755, st_size=13532, …}) = 0
ioctl(0, TCGETS, {B115200 opost isig icanon echo …}) = 0
ioctl(1, TCGETS, {B115200 opost isig icanon echo …}) = 0
brk(0)                                  = 0x5000
brk(0x6000)                             = 0x6000
open(“/dev/mmcblk0p2”, O_RDONLY|O_SYNC|O_DIRECT|O_LARGEFILE) = 3
ioctl(3, BLKSSZGET, 0x7fd69a08)         = 0
read(3, “LUKS\272\276\1aes”…, 512) = 512
read(3, “\3″…, 512) = 512
close(3)                                = 0
_exit(0)                                = ?
Process 340 detached
-sh-3.2#


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: