[Nix-dev] mount - no such file or directory?

Marc Weber marco-oweber at gmx.de
Fri Sep 5 02:51:04 CEST 2008


Hi,

I've still some trouble with mount and I'd like to ask what you would
try.

Installing mount on the host using

nix-env -iA kernelPackages.klibcShrunk -f $ALL_PACKAGES -p ee

results in
static:
        marc at nixos: /pr/tasks/static ]$ ldd ee/bin/mount                                             
                not a dynamic executable

nothing special which is read:

        marc at nixos: /pr/tasks/static ]$ strace -o out -f ee/bin/mount 
        Usage: ee/bin/mount [-r] [-w] [-o options] [-t type] device directory

        marc at nixos: /pr/tasks/static ]$ cat out
        22212 execve("ee/bin/mount", ["ee/bin/mount"], [/* 87 vars */]) = 0
        22212 write(2, "Usage: ee/bin/mount [-r] [-w] [-"..., 70) = 70
        22212 _exit(1)  

Now installing the same on a user mode linux disk image and running it
results in:

The running shell (the one used to run stage-1)
        z870iz15viyrmigf40nbamg4kjr6mf5j-bash-3.2# echo $0
        /nixos/nix/store/z870iz15viyrmigf40nbamg4kjr6mf5j-bash

the strange error:
        z870iz15viyrmigf40nbamg4kjr6mf5j-bash-3.2#
        /nixos/nix/store/ixirlq0f5mm48dyjabwnsw9ywrydznq0-klibc-1.5/bin/mount  
        z870iz15viyrmigf40nbamg4kjr6mf5j-bash:
        /nixos/nix/store/ixirlq0f5mm48dyjabwnsw9ywrydznq0-klibc-1.5/bin/mount:
        No such file or directory

Note that the nix store is within /nixos. (That's because I still have
debian as fallback system on my virtual server.. Thus way they don't
conlfict at all. I'm using chroot at startup to jump into /nixos)

The strange thing: I don't see mount doing anything which might cause
this failure. (see strace log
above) and it still fails within the uml environment.. Any ideas?

When symlinking the store  ln -s /nixos/nix nix it works.

Marc Weber



More information about the nix-dev mailing list