the partition is ext4 (i was mean to put that in my first post). after doing my searching makes the process a little more difficult.
As i am a student it is not possible for me to buy another hdd. I am considering deleting some other files that are not as important to free up enough space to create an image.
Yes i had flicked over the first page that posted and will have another read in more detail, thanks. I had checked out the extundelete utility before posting however everyone has said that they have not tested it. I ran into the following problem when running make:
make -s all-recursive
Making all in src
extundelete.cc: In function ‘int load_super_block(struct_ext2_filsys*)’:
extundelete.cc:944:47: error: invalid use of incomplete type ‘struct opaque_ext2_group_desc’
/usr/include/ext2fs/ext2fs.h:211:8: error: forward declaration of ‘struct opaque_ext2_group_desc’
extundelete.cc:944:47: error: no match for ‘operator=’ in ‘*(group_descriptor_table + ((unsigned int)(n * 32u))) = * fs->struct_ext2_filsys::group_desc’
/usr/include/ext2fs/ext2_fs.h:137:1: note: candidate is: ext2_group_desc& ext2_group_desc:
perator=(const ext2_group_desc&)
make[2]: *** [extundelete-extundelete.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I can try to figure out some problems, but this looked to big for me to debug and so i decided to give up on this utility (unless it is easy fix?).