Problems installing fuse on Ubuntu 8.04

Posted on 2009-02-13
Last Modified: 2013-11-15
I'm trying to mount an S3 volume to my Amazon EC2 app instances so I can download
the latest files from my S3 bucket at startup.  It looks like S3FS is the
right tool, but there appears to be an issue with fuse on the kernel
in the app image.  Has anyone else run into this? s3fs compiles fine,
but when I try to run it, I get a "fuse: device not found" error.
The following was done to build s3fs:

apt-get install -y build-essential pkg-config libcurl4-openssl-dev
libxml2-dev libfuse-dev libfuse2
svn checkout s3fs
make -C s3fs
cp s3fs/s3fs /usr/local/bin
export AWS_ACCESS_KEY_ID=...
echo "$AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY" > /etc/passwd-s3fs
chmod 600 /etc/passwd-s3fs
mkdir -p /mnt/$bucket
/usr/local/bin/s3fs $bucket /mnt/$bucket
  fuse: device not found, try 'modprobe fuse' first
modprobe fuse
  FATAL: Module fuse not found.
  FATAL: Error running install command for fuse

Has anyone else encountered this?  If so, do we need to recompile the
kernel???  Hopefully not, as I don't even know where to start.

My Ubuntu kernel version is 2.6.16-xenU

If this means I need to rebuild my kernel, can someone tell me know to do that?  I'm new to that process.  

Question by:kenjaW
    LVL 29

    Expert Comment

    have a look this one

    do locate

    locate fuse.ko

    run depmod -a, then try to modprobe fuse

    Author Comment

    It looks like fuse.ko is not on my system.  Next step was to download fuse and make it.  

    It fails on ./configure saying it needs the location of the kernel source via the --with-kernel directive.  

    Where do I get a copy of the 2.6.16-xenU kernel source???  

    Author Comment

    Managed to find the kernel source.  I downloaded fuse 2.7.4 and compiled it referencing the kernel source.  

    make install

    Everything seems to have executed without errors, but there still is not a fuse.ko file and none of the other errors have gone away.  Am I doing something wrong?
    LVL 29

    Expert Comment



    then locate fuse.ko


    Author Comment

    root@ec2-:~/fuse-2.7.4# updatedb
    root@ec2-:~/fuse-2.7.4# locate fuse.ko

    LVL 29

    Expert Comment

    from where did you install fuse ??

    can you try bellow

    can you not insall fuse by  apt-get install fuse-utils

    or from tar ball


    some how you need to install fuse.ko in your system
    LVL 29

    Accepted Solution

    is 12.30 am , so i will be off now

    bottom line is try to install fuse.ko somehow in your sytem
    then you need to execute lsmod command as i sent my first link to add fuse.ko with the module

    if there is any problem, i will see it tomorrow again

    sorry for this

    Author Comment

    I grabbed it from initially and then built it.  

    I just did a apt-get install fuse-utils.  I'm getting a message about "Unable to load fuse module, but continuing anyway; please reboot to enable fuse"

    Not sure why that is, but rebooting does not seem to help.

    root@ec2-:~# apt-get install fuse-utils
    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done
    The following extra packages will be installed:
    The following NEW packages will be installed:
      fuse-utils libfuse2
    0 upgraded, 2 newly installed, 0 to remove and 95 not upgraded.
    Need to get 144kB of archives.
    After this operation, 430kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Get:1 hardy/main libfuse2 2.7.2-1ubuntu2 [125kB]
    Get:2 hardy/main fuse-utils 2.7.2-1ubuntu2 [19.7kB]
    Fetched 144kB in 0s (153kB/s)    
    Selecting previously deselected package libfuse2.
    (Reading database ... 23039 files and directories currently installed.)
    Unpacking libfuse2 (from .../libfuse2_2.7.2-1ubuntu2_i386.deb) ...
    Selecting previously deselected package fuse-utils.
    Unpacking fuse-utils (from .../fuse-utils_2.7.2-1ubuntu2_i386.deb) ...
    Setting up libfuse2 (2.7.2-1ubuntu2) ...

    Setting up fuse-utils (2.7.2-1ubuntu2) ...
    creating fuse group...
    Adding group `fuse' (GID 113) ...
    No override present.
    Unable to load fuse module, but continuing anyway; please reboot to enable fuse
    update-initramfs: deferring update (trigger activated)

    Processing triggers for libc6 ...
    ldconfig deferred processing now taking place
    Processing triggers for initramfs-tools ...

    After Reboot:

    root@ec2-:~# depmod -a
    root@ec2-:~# modprobe fuse
    FATAL: Module fuse not found.
    FATAL: Error running install command for fuse


    Author Comment

    It looks like the Amazon EC2 image I was using didn't have that file.  

    I finally solved it using:

    mkdir -p /lib/modules/2.6.16-xenU/kernel/fs/fuse
    cd /lib/modules/2.6.16-xenU/kernel/fs/fuse
    rm -f fuse.ko
    curl -O

    Followed by installing S3FS:

    svn checkout s3fs
    make -C s3fs
    cp s3fs/s3fs /usr/local/bin
    export AWS_ACCESS_KEY_ID=<insert_access_key>
    export AWS_SECRET_ACCESS_KEY=<insert_secret_access_key>
    echo "$AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY" > /etc/passwd-s3fs
    chmod 600 /etc/passwd-s3fs
    mkdir -p /mnt/$bucket
    /usr/local/bin/s3fs $bucket /mnt/$bucket

    Thanks for your help!


    Author Closing Comment

    Thanks for your help.  It got me on the right track where I ultimately found the solution.  

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
    If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now