My root filesystem is ext4 too, yet, but I tried to somehow convince<br>
giis-ext4 to undeleted files from another device, mounted to /mnt/d1.<br><br>okay,mounting another ext4 device should be fine with giis-ext4. <br><br>No, I did not do that.<br>So that's reason for previous error message on "open_db".<br>
<br>giis-ext4 will be running as a cronjob, scanning<br>
the "protected directories" and keeping a log of changes in there, to be<br>
able to recover them later on?<br><br>giis-ext4 will run from cronjob from every "auto update time"<br>and scanning protected directories and keeps track of files meta-data (inode) but not actual file contents.(data blocks)<br>
If something deleted and assuming the deleted files contents are not overwritten,yet. It recovers them using files meta-data.<br>So the disadvantage is , giis-ext4 won't recover files deleted before it's installation.<br>
<br><br>Program received signal SIGSEGV, Segmentation fault.<br>
strlen () at ../sysdeps/x86_64/strlen.S:31<br><br>I haven't seen this error with Fedora/Ubuntu , I'll debug more about this and hopefully find a solution and post it here.<br><br>Thanks.<br><br>-- <br>----<br>Cheers,<br>
Lakshmipathi.G<br><a href="http://www.giis.co.in">www.giis.co.in</a><br><br><div class="gmail_quote">On Sun, Feb 14, 2010 at 2:50 AM, Christian Kujau <span dir="ltr"><<a href="mailto:lists@nerdbynature.de">lists@nerdbynature.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Sat, 13 Feb 2010 at 20:16, lakshmi pathi wrote:<br>
> 1.Is your root file system (/dev/xvda1) is ext4?<br>
<br>
</div>My root filesystem is ext4 too, yet, but I tried to somehow convince<br>
giis-ext4 to undeleted files from another device, mounted to /mnt/d1.<br>
<div class="im"><br>
> 2.Have you added the directory /mnt/d1 using "giis-ext4 --install" option?<br>
<br>
</div>No, I did not do that. I have the the INSTALL file mentioning the "-i"<br>
switch but I did not know what it meant with "which directories to<br>
protect". I take it that giis-ext4 will be running as a cronjob, scanning<br>
the "protected directories" and keeping a log of changes in there, to be<br>
able to recover them later on?<br>
<div class="im"><br>
> Because you need to configure it to protect important directories, in this<br>
> case add /mnt/d1 before running "giis-ext4 -g".<br>
<br>
</div>I've tried that now. However, I cannot add /mnt/d1 (which is a ext4<br>
mountpoint) to the list, as giis-ext4 will segfault then. When I add some<br>
directory from the root filesystem, --install will run successfully.<br>
<br>
Christian.<br>
<br>
<br>
Script started on Sat Feb 13 21:59:34 2010<br>
# df -h .<br>
Filesystem            Size  Used Avail Use% Mounted on<br>
/dev/mapper/vg0-lv0   485M   35M  425M   8% /mnt/d1<br>
<br>
# gdb /usr/local/src/giis-ext4/bin/giis-ext4<br>
GNU gdb (GDB) 7.0.1-debian<br>
Reading symbols from /usr/local/src/giis-ext4/bin/giis-ext4...(no debugging symbols found)...done.<br>
(gdb) run -i<br>
Starting program: /usr/local/src/giis-ext4/bin/giis-ext4 -i<br>
[Thread debugging using libthread_db enabled]<br>
<br>
 Device Found : /dev/xvda1<br>
<div class="im"> giis : Taking snapshot of current File system<br>
</div>[New Thread 0x7ffff6fae910 (LWP 6592)]<br>
<br>
[Thread 0x7ffff6fae910 (LWP 6592) exited]<br>
<div class="im"> giis-ext4:Installation begins..<br>
 giis-ext4: header table created<br>
 giis-ext4: file table created<br>
 What's the maximum directory depth?5<br>
<br>
</div><div class="im"> Enter the dirname name,that you would like to protect(Max. 7 directories)<br>
 Enter dirname:/mnt/d1<br>
<br>
</div><div class="im"> Press 1 to add/protect another directory else Press 0 to complete: 0<br>
<br>
 Check for newly files every 'auto update time' minutes.<br>
Enter auto update time: 10<br>
<br>
</div> Parsing directory  : /mnt/d1<br>
<br>
Program received signal SIGSEGV, Segmentation fault.<br>
strlen () at ../sysdeps/x86_64/strlen.S:31<br>
31      ../sysdeps/x86_64/strlen.S: No such file or directory.<br>
        in ../sysdeps/x86_64/strlen.S<br>
Current language:  auto<br>
The current source language is "auto; currently asm".<br>
(gdb) bt<br>
#0  strlen () at ../sysdeps/x86_64/strlen.S:31<br>
#1  0x0000000000402134 in giis_ext4_sqlite_insert_record ()<br>
#2  0x0000000000401c05 in giis_ext4_parse_dir ()<br>
#3  0x0000000000401ad2 in giis_ext4_parse_dir ()<br>
#4  0x0000000000403ae6 in giis_ext4_update_dirs ()<br>
#5  0x0000000000401707 in main ()<br>
(gdb) bt full<br>
#0  strlen () at ../sysdeps/x86_64/strlen.S:31<br>
No locals.<br>
#1  0x0000000000402134 in giis_ext4_sqlite_insert_record ()<br>
No symbol table info available.<br>
#2  0x0000000000401c05 in giis_ext4_parse_dir ()<br>
No symbol table info available.<br>
#3  0x0000000000401ad2 in giis_ext4_parse_dir ()<br>
No symbol table info available.<br>
#4  0x0000000000403ae6 in giis_ext4_update_dirs ()<br>
No symbol table info available.<br>
#5  0x0000000000401707 in main ()<br>
No symbol table info available.<br>
(gdb) quit<br>
A debugging session is active.<br>
<br>
        Inferior 1 [process 6589] will be killed.<br>
<br>
Quit anyway? (y or n) y<br>
# exit<br>
<br>
Script done on Sat Feb 13 22:01:05 2010<br>
<font color="#888888">--<br>
BOFH excuse #283:<br>
<br>
Lawn mower blade in your fan need sharpening<br>
</font></blockquote></div><br><br clear="all"><br><br>