fuse-ext2 icon indicating copy to clipboard operation
fuse-ext2 copied to clipboard

not running but no error at all

Open patatetom opened this issue 7 years ago • 6 comments

hi,

strange : I've just configured, compiled and installed fuse-ext2 without any error*, and when I run it, nothing happens ! no message, no error and especially no assembly !

the debug option (-d / -o debug) doesn't work either...

a track to see where it might come from ?

(* just some warnings about pjdfstest.c)

patatetom avatar Jul 29 '17 10:07 patatetom

hi,

some precisions :

  • "nothing happens" (the subject of the issue) when used with unprivilegied user : fuse-ext2 must be used with root account
  • release 0.0.9 returns this error :
# fuse-ext2
fuse-ext2 0.0.9 29 - FUSE EXT2FS Driver
...
# fuse-ext2 /dev/dm-1 /media/cdrom/ -o ro
# LANG=C ls /media/cdrom/
ls: cannot open directory '/media/cdrom/': No such file or directory
# ls -ld /media/cdrom/
drwxrwxrwx 7 root root 16384  2 août  22:07 /media/cdrom/
# fuse-ext2
fuse-ext2 0.0.7 29 - FUSE EXT2FS Driver
...
# fuse-ext2 /dev/dm-1 /media/cdrom/ -o ro
# LANG=C ll /media/cdrom/
total 96
-rw------- 1 root   root    8192 Jul 28 13:50 aquota.group
-rw------- 1 root   root    8192 Jul 28 13:50 aquota.user
drwxr-xr-x 6     98 power  16384 Jan  6  2017 home
drwx------ 2 root   root   16384 Aug 31  2014 lost+found
drwxrwxrwt 2 nobody nobody 16384 Sep  8  2014 media

ps : I'm trying to recover files on a disk coming from a netgear readynas duo (eg. raid1 / lvm / ext3 bs=16k)

patatetom avatar Aug 02 '17 20:08 patatetom

Hi,

If it does not contain information that you can not share, can you please share the device image. You can get it with dd or similar.

You can give a try to latest master source code, too.

Cheers.

alperakcan avatar Aug 02 '17 20:08 alperakcan

hi,

unfortunately no, the disc weighs 2Tb and contains personal informations :-( I'm working on it since last night (with version 0.0.8) and everything seems ok...

sorry.

patatetom avatar Aug 03 '17 08:08 patatetom

Hi, @alperakcan I have same issue with the latest fuseext2. It is unable mount partitions created by ubuntu 16.10. fuseext2 from Ubuntu 16.04 fails with error

$ sudo fuseext2 /dev/mapper/loop13p1 tmp_mnt
fuse-umfuse-ext2: version:'0.4', fuse_version:'29' [main (fuse-ext2.c:331)]
fuse-umfuse-ext2: enter [do_probe (do_probe.c:30)]
fuse-umfuse-ext2: Error while trying to open /dev/mapper/loop13p1 (rc=2133571396) [do_probe (do_probe.c:34)]
fuse-umfuse-ext2: Probe failed [main (fuse-ext2.c:347)]
$ fuseext2 /dev/mapper/loop13p1 tmp_mnt 
fuse-umfuse-ext2: version:'0.4', fuse_version:'29' [main (fuse-ext2.c:331)]
fuse-umfuse-ext2: enter [do_probe (do_probe.c:30)]
fuse-umfuse-ext2: Error while trying to open /dev/mapper/loop13p1 (rc=2133571396) [do_probe (do_probe.c:34)]
fuse-umfuse-ext2: Probe failed [main (fuse-ext2.c:347)]

recent versions (master, v0.0.9) fail with no errors.

Here is the bzipped test raw disk image https://drive.google.com/open?id=0B9cynxxQzKCaWUIyVmNrUmpYMEE

ext4fuse https://github.com/gerard/ext4fuse mounts this image successfully

There are no issues with ext2, ext3 partitions.

zealotous avatar Aug 08 '17 09:08 zealotous

hello @zealotous

you are trying to mount a medium image, not a disk partition image. even system mount command will fail if you try to mount disk2.raw. you should give an offset, or better you can grab the partition from disk image. i demonstrated howto mount your image with both mount and fuse-ext2 below:

system tools

$ sudo mount -o loop disk2.raw tmp mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so.

$ sudo fdisk -l disk2.raw Disk disk2.raw: 100 MiB, 104857600 bytes, 204800 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x8efdad49

Device Boot Start End Sectors Size Id Type disk2.raw1 2048 204799 202752 99M 83 Linux

$ sudo mount -o loop,offset=$((2048 * 512)) disk2.raw tmp $ tree tmp tmp ├── hello_ubuntu_16.10_ext4.txt └── lost+found [error opening dir]

1 directory, 1 file $ sudo umount tmp

$ dd if=disk2.raw of=disk2.raw1 bs=512 skip=2048 count=202752 202752+0 records in 202752+0 records out 103809024 bytes (104 MB, 99 MiB) copied, 0.281762 s, 368 MB/s

$ sudo mount disk2.raw1 tmp $ tree tmp tmp ├── hello_ubuntu_16.10_ext4.txt └── lost+found [error opening dir]

1 directory, 1 file $ sudo umount tmp

fuse-ext2

$ sudo ./fuse-ext2/fuse-ext2 disk2.raw tmp fuse-ext2: version:'0.0.9', fuse_version:'27 / 29 / 29' [main (fuse-ext2.c:327)] Mounting /home/distch/Downloads/disk2.raw Read-Only. Use 'force' or 'rw+' options to enable Read-Write mode fuse-ext2: opts.device: /home/distch/Downloads/disk2.raw [main (fuse-ext2.c:342)] fuse-ext2: opts.mnt_point: /home/distch/Downloads/tmp/ [main (fuse-ext2.c:343)] fuse-ext2: opts.volname: [main (fuse-ext2.c:344)] fuse-ext2: opts.options: (null) [main (fuse-ext2.c:345)] fuse-ext2: parsed_options: allow_other,default_permissions,ro,fsname=/home/distch/Downloads/disk2.raw [main (fuse-ext2.c:346)] fuse-ext2: enter [do_probe (do_probe.c:30)] fuse-ext2: Error while trying to open /home/distch/Downloads/disk2.raw (rc=2133571347) [do_probe (do_probe.c:34)] fuse-ext2: Probe failed [main (fuse-ext2.c:355)]

$ sudo ./fuse-ext2/fuse-ext2 disk2.raw1 tmp fuse-ext2: version:'0.0.9', fuse_version:'27 / 29 / 29' [main (fuse-ext2.c:327)] Mounting /home/distch/Downloads/disk2.raw1 Read-Only. Use 'force' or 'rw+' options to enable Read-Write mode fuse-ext2: opts.device: /home/distch/Downloads/disk2.raw1 [main (fuse-ext2.c:342)] fuse-ext2: opts.mnt_point: /home/distch/Downloads/tmp/ [main (fuse-ext2.c:343)] fuse-ext2: opts.volname: [main (fuse-ext2.c:344)] fuse-ext2: opts.options: (null) [main (fuse-ext2.c:345)] fuse-ext2: parsed_options: allow_other,default_permissions,ro,fsname=/home/distch/Downloads/disk2.raw1 [main (fuse-ext2.c:346)] fuse-ext2: enter [do_probe (do_probe.c:30)] fuse-ext2: leave [do_probe (do_probe.c:55)] fuse-ext2: mounting read-only [main (fuse-ext2.c:374)]

$ tree /home/distch/Downloads/tmp/ /home/distch/Downloads/tmp/ ├── hello_ubuntu_16.10_ext4.txt └── lost+found [error opening dir] $ sudo umount tmp

cheers, alper.

alperakcan avatar Aug 09 '17 01:08 alperakcan

@alperakcan, thank you for your answer. I've mounted image with kpartx -a -v disk2.raw.

There is my demonstration how it fails without kpartx.

$ dd if=disk2.raw of=disk2.raw1 bs=512 skip=2048 count=202752
202752+0 records in
202752+0 records out
103809024 bytes (104 MB, 99 MiB) copied, 2.15007 s, 48.3 MB/s
$ sudo mount -o loop -t ext4 disk2.raw1 mnt
$ tree mnt
mnt
├── hello_ubuntu_16.10_ext4.txt
└── lost+found [error opening dir]

1 directory, 1 file
$ sudo umount mnt

$ ./f/fuse-ext2-0.0.9/fuse-ext2/fuse-ext2 disk2.raw1 mnt
fuse-ext2: version:'0.0.9', fuse_version:'27 / 29 / 29' [main (fuse-ext2.c:327)]
fuse-ext2: enter [do_probe (do_probe.c:30)]
fuse-ext2: Error while trying to open ~/tmp/disk2.raw1 (rc=2133571396) [do_probe (do_probe.c:34)]
fuse-ext2: Probe failed [main (fuse-ext2.c:343)]
$ tree mnt
mnt

0 directories, 0 files
$ sudo umount mnt                                            
umount: mnt: not mounted

$ ext4fuse disk2.raw1 mnt
$ tree mnt
mnt
├── hello_ubuntu_16.10_ext4.txt
└── lost+found

1 directory, 1 file
$ sudo umount mnt

Here are versions of packages for Ubuntu 16.04. I see the same problem in Debian 7.7.

$ uname -a
Linux mfe 4.4.0-89-generic #112-Ubuntu SMP Mon Jul 31 19:38:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ pkg-config --modversion ext2fs   
1.42.13
$ pkg-config --modversion fuse         
2.9.4

zealotous avatar Aug 09 '17 09:08 zealotous