Find the answer to your Linux question:
Results 1 to 10 of 10
Hi all, I'm new to Linux.I developed a tool for Ext3/ext2 File system recovery. I placed it at http://sourceforge.net/projects/giis I hope to get your comments feedback or criticizm Thanks. Lakshmi...
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Angry [SOLVED] File recovery tool - giis

    Hi all,
    I'm new to Linux.I developed a tool for Ext3/ext2 File system recovery.
    I placed it at
    http://sourceforge.net/projects/giis
    I hope to get your comments feedback or criticizm
    Thanks.
    Lakshmi

  2. #2
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    I tried to build it, but it failed against a 2.6.18 Gentoo kernel, here's the exact error message
    Code:
    cc -Wall -o2   -c -o dir.o dir.c
    In file included from /usr/include/linux/ext3_fs.h:20,
                     from giis.h:17,
                     from dir.c:11:
    /usr/include/linux/ext3_fs_i.h:90: error: field 'xattr_sem' has incomplete type
    /usr/include/linux/ext3_fs_i.h:97: error: field 'i_orphan' has incomplete type
    /usr/include/linux/ext3_fs_i.h:129: error: field 'truncate_sem' has incomplete type
    /usr/include/linux/ext3_fs_i.h:130: error: field 'vfs_inode' has incomplete type
    In file included from /usr/include/linux/ext3_fs.h:21,
                     from giis.h:17,
                     from dir.c:11:
    /usr/include/linux/ext3_fs_sb.h:54: error: expected specifier-qualifier-list before 'u32'
    In file included from giis.h:17,
                     from dir.c:11:
    /usr/include/linux/ext3_fs.h:651: error: expected specifier-qualifier-list befo
    e 'u32'
    In file included from giis.h:18,
                     from dir.c:11:
    /usr/include/sys/stat.h:44: error: conflicting types for 'dev_t'
    /usr/include/linux/types.h:25: error: previous declaration of 'dev_t' was here
    /usr/include/sys/stat.h:63: error: conflicting types for 'mode_t'
    /usr/include/linux/types.h:31: error: previous declaration of 'mode_t' was here
    /usr/include/sys/stat.h:68: error: conflicting types for 'nlink_t'
    /usr/include/linux/types.h:34: error: previous declaration of 'nlink_t' was here
    In file included from giis.h:20,
                     from dir.c:11:
    /usr/include/time.h:105: error: conflicting types for 'timer_t'
    /usr/include/linux/types.h:43: error: previous declaration of 'timer_t' was here
    In file included from dir.c:11:
    giis.h:163: warning: built-in function 'round' declared as non-function
    dir.c: In function 'set_content_offset':
    dir.c:21: warning: implicit declaration of function 'lseek64'
    dir.c:18: warning: unused variable 'i'
    dir.c: In function 'read_dir':
    dir.c:31: warning: implicit declaration of function 'read'
    dir.c:32: warning: implicit declaration of function 'perror'
    dir.c:32: warning: implicit declaration of function 'printf'
    dir.c:32: warning: incompatible implicit declaration of built-in function 'printf'
    dir.c: In function 'record_dir':
    dir.c:47: warning: implicit declaration of function 'open'
    dir.c:50: warning: incompatible implicit declaration of built-in function 'printf'
    dir.c:54: warning: implicit declaration of function 'lseek'
    dir.c:60: warning: incompatible implicit declaration of built-in function 'printf'
    dir.c:62: warning: implicit declaration of function 'close'
    dir.c:69: warning: implicit declaration of function 'strcpy'
    dir.c:69: warning: incompatible implicit declaration of built-in function 'strcpy'
    
    dir.c:83: warning: implicit declaration of function 'write'
    dir.c:86: warning: incompatible implicit declaration of built-in function 'printf'
    dir.c:106: warning: implicit declaration of function 'strcmp'
    dir.c:126: warning: incompatible implicit declaration of built-in function 'printf'
    dir.c: In function 'record_file':
    dir.c:154: warning: incompatible implicit declaration of built-in function 'printf'
    dir.c:160: warning: incompatible implicit declaration of built-in function 'strcpy'
    dir.c:168: warning: incompatible implicit declaration of built-in function 'printf'
    dir.c:171: warning: incompatible implicit declaration of built-in function 'printf'
    dir.c:177: warning: incompatible implicit declaration of built-in function 'printf'
    dir.c:231: warning: incompatible implicit declaration of built-in function 'printf'
    dir.c:239: warning: incompatible implicit declaration of built-in function 'prin
    tf'
    dir.c:249: warning: incompatible implicit declaration of built-in function 'printf'
    dir.c:146: warning: unused variable 'prev_pos'
    dir.c:145: warning: unused variable 'val'
    dir.c: In function 'show_dir':
    dir.c:273: warning: unused variable 'filename'
    make: *** [dir.o] Error 1
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Thumbs up

    hi Juan Pablo ,
    Thanks for such a quick feedback.
    could please post the content of /etc/fstab file?
    I hope to solve the problem soon.
    Thanks juan.

  4. #4
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Code:
    # <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>
    
    # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
    /dev/hda1               /boot           ext2            noatime         1 2
    /dev/hda2               /               ext3            noatime         0 1
    /dev/hda7               /home           ext3            noatime,defaults 0 0
    /dev/hda6               none            swap            sw              0 0
    /dev/hda5               /home/jsantos/Musica    ext3    defaults        0 0
    #/dev/cdroms/cdrom0     /mnt/cdrom      iso9660         noauto,ro       0 0
    #/dev/fd0               /mnt/floppy     auto            noauto          0 0
    
    # NOTE: The next line is critical for boot!
    proc                    /proc           proc            defaults        0 0
    
    # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 
    # POSIX shared memory (shm_open, shm_unlink).
    # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
    #  use almost no memory if not populated with files)
    shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
    
    
    /tmp/app/1/image /tmp/app/1 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
    /tmp/app/2/image /tmp/app/2 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
    /tmp/app/3/image /tmp/app/3 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
    /tmp/app/4/image /tmp/app/4 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
    /tmp/app/5/image /tmp/app/5 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
    /tmp/app/6/image /tmp/app/6 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
    /tmp/app/7/image /tmp/app/7 cramfs,iso9660 user,noauto,ro,loop,exec 0 0
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  5. #5
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Talking

    Thanks juan

  6. #6
    Linux Newbie
    Join Date
    Oct 2004
    Posts
    114

    Question

    Is it possible to create similar tools for DOS/Windows platform?

    Using this new tool, user can recover/repair damaged Ext2fs/Ext3fs from DOS/Windows platform.

  7. #7
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Exclamation

    Yes. i think it's possible to creat a Ext3/Ext2 tool for windows.
    In fact i believe ,all existing tool which works for ext2/ext3 in Linux can also be implemented in Windows after making few changes.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  8. #8
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Talking

    Hi juan,
    I guess error that u got is because ext3_fs.h file is missing,
    in your system.but i really how come that file be missing???
    I hope if you can find that file then make sure it's placed at folder /usr/include
    I hope it will work now.
    i uploaded version giis3 of tool at
    http://sourceforge.net/projects/giis/

    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  9. #9
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Yes, my file is currently on /usr/include/linux/ex3_fs.h
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  10. #10
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Question

    Hi juan,
    This sunday,i formatted my harddisk and freshly installed linux fedora core-2.
    I got same kind of problem which u said,
    I displays .h files like -ext3_fs.h ,pwd.h files are not included.
    But these files can be found at /usr/include.
    So i tried to install all Gnome development tools and kernel development tools and system tools and admin tools from add/Remove programs option.
    Then it worked.
    I'm confused,what's really missing?
    Can somebody help me?
    In simple terms,When i install,it says files missing but files can be found in respective directories.
    After i install some development tools -it started to work ...
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •