M.Canales.es wrote: > + ext2fs_check_if_mount: No such file or directory while determining > whether ./test.img is mounted.
Hmm. There are a few different places where that message appears in the e2fsprogs source. Most of the tests seem to run e2fsck on an image, though, so it's probably coming from the one place in e2fsck that has this message. This message gets shown when the ext2fs_check_if_mounted() libext2fs function returns an error. In this case, it's returning an ENOENT error. Eventually ext2fs_check_if_mounted calls down into the lib/ext2fs/ismounted.c file, function check_mntent_file, with a first argument of /proc/mounts. (Because the system does have a mntent.h header file, it calls this function.) This function first calls setmntent on /proc/mounts, which basically opens the file and returns a file pointer. This call might produce the error you're seeing if /proc/mounts didn't exist -- but it has to. So the error's probably coming from somewhere else in this function. The rest of the function is a bit hairy though. Probably the best way to figure out what exactly it's complaining about is to set the DEBUG preprocessor define to something other than zero; this should be doable if you cd into lib/ext2fs and run "make tst_ismounted", then loopback-mount any file, and run "./tst_ismounted /path/to/that/file". With /dev not-bind-mounted, the ./tst_ismounted should succeed. With /dev bind-mounted, the program should fail, and hopefully it'll provide more info on the failure mode as well. (On the other sub-thread: I just got your reply. I'm thinking that it probably doesn't matter anymore. The result in the copied tree is a little odd, but as you said, it may not be very clean.)
signature.asc
Description: OpenPGP digital signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page