[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: giis-ext4 undelete



On Sat, 13 Feb 2010 at 20:16, lakshmi pathi wrote:
> 1.Is your root file system (/dev/xvda1) is ext4?

My root filesystem is ext4 too, yet, but I tried to somehow convince 
giis-ext4 to undeleted files from another device, mounted to /mnt/d1.

> 2.Have you added the directory /mnt/d1 using "giis-ext4 --install" option?

No, I did not do that. I have the the INSTALL file mentioning the "-i" 
switch but I did not know what it meant with "which directories to 
protect". I take it that giis-ext4 will be running as a cronjob, scanning 
the "protected directories" and keeping a log of changes in there, to be 
able to recover them later on?

> Because you need to configure it to protect important directories, in this
> case add /mnt/d1 before running "giis-ext4 -g".

I've tried that now. However, I cannot add /mnt/d1 (which is a ext4 
mountpoint) to the list, as giis-ext4 will segfault then. When I add some 
directory from the root filesystem, --install will run successfully.

Christian.


Script started on Sat Feb 13 21:59:34 2010
# df -h .
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg0-lv0   485M   35M  425M   8% /mnt/d1

# gdb /usr/local/src/giis-ext4/bin/giis-ext4
GNU gdb (GDB) 7.0.1-debian
Reading symbols from /usr/local/src/giis-ext4/bin/giis-ext4...(no debugging symbols found)...done.
(gdb) run -i
Starting program: /usr/local/src/giis-ext4/bin/giis-ext4 -i
[Thread debugging using libthread_db enabled]

 Device Found : /dev/xvda1
 giis : Taking snapshot of current File system 
[New Thread 0x7ffff6fae910 (LWP 6592)]

[Thread 0x7ffff6fae910 (LWP 6592) exited]
 giis-ext4:Installation begins..
 giis-ext4: header table created
 giis-ext4: file table created
 What's the maximum directory depth?5

 Enter the dirname name,that you would like to protect(Max. 7 directories)
 Enter dirname:/mnt/d1

 Press 1 to add/protect another directory else Press 0 to complete: 0

 Check for newly files every 'auto update time' minutes.
Enter auto update time: 10

 Parsing directory  : /mnt/d1

Program received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:31
31	../sysdeps/x86_64/strlen.S: No such file or directory.
	in ../sysdeps/x86_64/strlen.S
Current language:  auto
The current source language is "auto; currently asm".
(gdb) bt
#0  strlen () at ../sysdeps/x86_64/strlen.S:31
#1  0x0000000000402134 in giis_ext4_sqlite_insert_record ()
#2  0x0000000000401c05 in giis_ext4_parse_dir ()
#3  0x0000000000401ad2 in giis_ext4_parse_dir ()
#4  0x0000000000403ae6 in giis_ext4_update_dirs ()
#5  0x0000000000401707 in main ()
(gdb) bt full
#0  strlen () at ../sysdeps/x86_64/strlen.S:31
No locals.
#1  0x0000000000402134 in giis_ext4_sqlite_insert_record ()
No symbol table info available.
#2  0x0000000000401c05 in giis_ext4_parse_dir ()
No symbol table info available.
#3  0x0000000000401ad2 in giis_ext4_parse_dir ()
No symbol table info available.
#4  0x0000000000403ae6 in giis_ext4_update_dirs ()
No symbol table info available.
#5  0x0000000000401707 in main ()
No symbol table info available.
(gdb) quit
A debugging session is active.

	Inferior 1 [process 6589] will be killed.

Quit anyway? (y or n) y
# exit

Script done on Sat Feb 13 22:01:05 2010
-- 
BOFH excuse #283:

Lawn mower blade in your fan need sharpening


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]