fusermount not found

Post here if you found a bug or something really not expected in the program
Post Reply
pjstirling
Posts: 7
Joined: Fri Dec 18, 2009 4:10 pm

fusermount not found

Post by pjstirling » Sat Dec 19, 2009 3:59 am

Hi,

I was trying to use fsarchiver to back up the Windows recovery partition on my new eee-box (prior to installing ubuntu), but I'm getting some error messages, and I'm not clear as to whether it succeeds in doing the backup.

Code: Select all

[email protected] /root % fsarchiver -j2 -z9 savefs /mnt/i-drive/eee.fsa /dev/sda1 /dev/sda2 /dev/sda5 
Statistics for filesystem 0
* files successfully processed:....regfiles=34337, directories=2744, symlinks=1, hardlinks=0, specials=0
* files with errors:...............regfiles=0, directories=0, symlinks=0, hardlinks=0, specials=0
Statistics for filesystem 1
* files successfully processed:....regfiles=769, directories=43, symlinks=0, hardlinks=0, specials=0
* files with errors:...............regfiles=0, directories=0, symlinks=0, hardlinks=0, specials=0
Statistics for filesystem 2
* files successfully processed:....regfiles=3, directories=4, symlinks=0, hardlinks=0, specials=0
* files with errors:...............regfiles=0, directories=0, symlinks=0, hardlinks=0, specials=0
common.c#288,exec_command(): program [which] cannot be executed
fs_ntfs.c#278,ntfs_umount(): fusermount not found. please install fuse on your system or check the PATH.
[errno=12, Cannot allocate memory]: create.c#1227,do_create(): cannot umount [/tmp/fsa/20091218-140347-00]
common.c#288,exec_command(): program [which] cannot be executed
fs_ntfs.c#278,ntfs_umount(): fusermount not found. please install fuse on your system or check the PATH.
[errno=12, Cannot allocate memory]: create.c#1227,do_create(): cannot umount [/tmp/fsa/20091218-140348-01]
common.c#288,exec_command(): program [which] cannot be executed
fs_ntfs.c#278,ntfs_umount(): fusermount not found. please install fuse on your system or check the PATH.
[errno=12, Cannot allocate memory]: create.c#1227,do_create(): cannot umount [/tmp/fsa/20091218-140348-02]

Sysresccd-1.3.4 beta6 uses zsh as its shell, and (presumably since 'which' is a zsh builtin) doesn't bundle a separate 'which' binary. How far from the end does this error message come? Is the archive file created safe to for recovery purposes?

I tested the bundled fsarchive-beta (also on the sysresccd) and it gives an error message at the end which is identical but for line numbers, and the files are slightly different sizes (5,901,950,252 vs 5,901,950,306 bytes)

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: fsarchiver 0.6.2

Post by admin » Sat Dec 19, 2009 4:43 am

It means the savefs has been successful, but it cannot unmount the original partition. Because ntfs-3g is based on FUSE, a command of the FUSE package called fusermount is required tu unmount the filesystem properly.

Can you do a "umount /tmp/fsa/*" by hand at the end of the savefs ?

I will have to see if I can reproduce that problem. Anyway, you should be able to restore the archive with no problem other that the unmount that fails at the end.

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: fusermount not found

Post by admin » Sat Dec 19, 2009 5:13 pm

This problem should be fixed in fsarchiver-0.6.3_beta7 (and more recent).
You have all the requirements to compile this new version on SystemRescueCd:

Code: Select all

cd /var/tmp
wget -c http://beta.fsarchiver.org/fsarchiver-0.6.3_beta7.tar.gz
tar xf fsarchiver-0.6.3_beta7.tar.gz
cd fsarchiver-0.6.3_beta7
./configure --prefix=/usr && make && make install
Make sure you use the right version (just run "/usr/sbin/fsarchiver -V")

pjstirling
Posts: 7
Joined: Fri Dec 18, 2009 4:10 pm

Re: fusermount not found

Post by pjstirling » Sat Dec 19, 2009 8:03 pm

Yes, sorry, I forgot to mention in my OP that there were no error messages when I manually unmounted the filesystems.
Last edited by pjstirling on Sat Dec 19, 2009 8:06 pm, edited 1 time in total.

pjstirling
Posts: 7
Joined: Fri Dec 18, 2009 4:10 pm

Re: fusermount not found

Post by pjstirling » Sat Dec 19, 2009 8:05 pm

admin wrote:This problem should be fixed in fsarchiver-0.6.3_beta7 (and more recent).
You have all the requirements to compile this new version on SystemRescueCd:

Code: Select all

cd /var/tmp
wget -c http://beta.fsarchiver.org/fsarchiver-0.6.3_beta7.tar.gz
tar xf fsarchiver-0.6.3_beta7.tar.gz
cd fsarchiver-0.6.3_beta7
./configure --prefix=/usr && make && make install
Make sure you use the right version (just run "/usr/sbin/fsarchiver -V")
Does this mean that I should delete the archive files and redo it, with the new beta?

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: fusermount not found

Post by admin » Sat Dec 19, 2009 8:27 pm

I think your original archive should be ok, but am not 100% sure.

It may be a good idea to recreate it with the new beta for your archive, and also it would be great if we could be sure that this bug is fixed.

I recommend that you try to restore your archive on a temporary partition anyway, to be sure your new archive is ok.

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: fusermount not found

Post by admin » Sun Dec 20, 2009 9:59 am

Instead of recompiling the sources, you can also just download SystemRescueCd-1.3.4-beta9 which contains fsarchiver-0.6.3_beta7.

pjstirling
Posts: 7
Joined: Fri Dec 18, 2009 4:10 pm

Re: fusermount not found

Post by pjstirling » Sun Dec 20, 2009 3:43 pm

Probably just as well as I re-tested:

Code: Select all

[email protected] /mnt/i-drive/eee-partimage-files % /usr/sbin/fsarchiver -j2 -z9 savefs /mnt/i-drive/eee-partimage-files/eee-beta7.fsa /dev/sda1 /dev/sda2 /dev/sda5
Statistics for filesystem 0
* files successfully processed:....regfiles=34608, directories=2761, symlinks=1, hardlinks=0, specials=0
* files with errors:...............regfiles=0, directories=0, symlinks=0, hardlinks=0, specials=0
Statistics for filesystem 1
* files successfully processed:....regfiles=769, directories=43, symlinks=0, hardlinks=0, specials=0
* files with errors:...............regfiles=0, directories=0, symlinks=0, hardlinks=0, specials=0
Statistics for filesystem 2
* files successfully processed:....regfiles=4, directories=4, symlinks=0, hardlinks=0, specials=0
* files with errors:...............regfiles=0, directories=0, symlinks=0, hardlinks=0, specials=0
common.c#339,exec_command(): fork() failed
fs_ntfs.c#284,ntfs_umount(): cannot unmount [/tmp/fsa/20091220-151018-00]
[errno=12, Cannot allocate memory]: create.c#1320,do_create(): cannot umount [/tmp/fsa/20091220-151018-00]
common.c#339,exec_command(): fork() failed
fs_ntfs.c#279,ntfs_umount(): fusermount not found. please install fuse on your system or check the PATH.
[errno=12, Cannot allocate memory]: create.c#1320,do_create(): cannot umount [/tmp/fsa/20091220-151057-01]
common.c#339,exec_command(): fork() failed
fs_ntfs.c#279,ntfs_umount(): fusermount not found. please install fuse on your system or check the PATH.
[errno=12, Cannot allocate memory]: create.c#1320,do_create(): cannot umount [/tmp/fsa/20091220-151058-02]
[email protected] /mnt/i-drive/eee-partimage-files % /usr/sbin/fsarchiver -V
fsarchiver 0.6.3-beta7 (2009-12-19)

[email protected] /mnt/i-drive/eee-partimage-files % umount /tmp/fsa/20091220-1510*
[email protected] /mnt/i-drive/eee-partimage-files % ls -l 
total 17731232
-rwxrwxrwx 1 root root       1690 2009-12-21 06:21 beta7-message.txt
-rwxrwxrwx 1 root root       1668 2009-12-19 15:04 beta-message.txt
-rwxrwxrwx 1 root root 6352866715 2009-12-20 19:55 eee-beta7.fsa
-rwxrwxrwx 1 root root 5901950306 2009-12-19 14:53 eee-beta.fsa
-rwxrwxrwx 1 root root 5901950252 2009-12-18 18:23 eee.fsa
-rwxrwxrwx 1 root root       1612 2009-12-19 07:28 message.txt
So this archive is different from both previous archives, ~7.5% larger. Manual unmounting of the filesystems produced no messages again.

I used the tarball that you linked, rather than getting the new sysreccd beta, but I had to download it on another machine because systemrescuecd-x86-1.3.4-beta6.iso doesn't recognise my wired or wireless networks :/

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: fusermount not found

Post by admin » Sun Dec 20, 2009 3:56 pm

Thanks for coming back with results.
The interesting error is "fork failed"

Can you edit the source code of the beta7 and recompile it.
Just replace

Code: Select all

errprintf("fork() failed\n");
with

Code: Select all

sysprintf("fork() failed\n");
in common.c
It should tell us more about why fork fails.

I suspect you don't have enough memory. The -z9 level is an extreme compression level which requires a huge amount of memory. And you have two compression threads so it requires twice that amount of memory. You should retry with "-z8" which is still very good and require less memory:
http://www.fsarchiver.org/Compression

pjstirling
Posts: 7
Joined: Fri Dec 18, 2009 4:10 pm

Re: fusermount not found

Post by pjstirling » Sun Dec 20, 2009 8:22 pm

I now get

Code: Select all

comp_lzma.c#43,compress_block_lzma(): lzma_easy_encoder(9, LZMA_CHECK_CRC32) failed with res=LZMA_MEM_ERROR (out of memory)
(I killed it before the end)

I assume that this means that the previous archives are broken, and I just wasn't getting error messages?

The machine has 1GB of ram, and I'm not entirely sure how to set up swap space, without having a dedicated partition.

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: fusermount not found

Post by admin » Sun Dec 20, 2009 8:38 pm

When the compression fails on one block, fsarchiver writes the block uncompressed, so the archive should still be valid. The block is also written uncompressed if the compressed block is bigger than the compressed one (which may happen on specific file formats, or very small files).

pjstirling
Posts: 7
Joined: Fri Dec 18, 2009 4:10 pm

Re: fusermount not found

Post by pjstirling » Sun Dec 20, 2009 9:15 pm

Before I killed it (which was a lot earlier than the multiple-hour-wait that the previous runs have taken) I had 50+ lines of this error message :)

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: fusermount not found

Post by admin » Sun Dec 20, 2009 9:24 pm

This message is printed for each block where the compression fails, so it's normal to have that message printed many times.

pjstirling
Posts: 7
Joined: Fri Dec 18, 2009 4:10 pm

Re: fusermount not found

Post by pjstirling » Mon Dec 21, 2009 4:40 pm

I tested with -z8, and it succeeded, with no error message at the end.

I also looked up how to enable swap, while running the livecd.

Included here for anyone having similar issues:

Code: Select all

mkdir /mnt/i-drive # mount needs a directory
ntfs-3g /dev/sdb2 /mnt/i-drive # mount an ntfs fs read-write
dd if=/dev/zero of=/mnt/i-drive/swap.swap bs=1024 count=4194304 # make a 4GB swap file "/mnt/i-drive/swap.swap"
mkswap /mnt/i-drive/swap.swap # swapon requires some headers in the file to avoid accidental data destruction
swapon /mnt/id-rive/swap.swap # enable the file for paging
With this on I also succeeded with the z9 run.

I can also confirm that while hyper-threading isn't a real dual-core on the Atom N270, it is "good enough" for a big (>80%) speedup on compression (I tested -j1 vs -j2 over-night).

Jugin
Posts: 1
Joined: Thu Sep 01, 2011 7:32 am

Re: fusermount not found

Post by Jugin » Thu Sep 01, 2011 7:36 am

hello))
fsarchiver_dialog is a bash frontend of fsarchiver clone partitions program for linux.
In addition to fsarchiver native functions it can save and restore MBR (more precisely, MBR sector for grub code...).
Can be freely redristributed, but no guarantee is provided on eventual malfunctions and derivated damages. Only most common options are referenced for a simple use. I made this for a simple free backup system (also for not linux expert).
Based on sysrescuecd and fsarchiver.
I am a medium linux users, but i am most sensible at problem of cloning; I think that for to do this is needed a simple program to clone for tipically not linux users, but at moment i dont know what use.
bye

Post Reply