clser 发表于 2004-8-8 18:15:04

编译时“make install”出错

# make install
make: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK   include/linux/compile.h
dnsdomainname: ?????
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.7/arch/i386/boot/install.sh 2.6.7 arch/i386/boot/bzImage System.map ""
All of your loopback devices are in use.
mkinitrd failed
make: *** Error 1
make: *** Error 2


make mrproper
make menuconfig
make
make modules
make modules_install
make install

lovewilliam 发表于 2004-8-8 18:34:40

相关工具升级了?

cnhnln 发表于 2004-8-8 19:21:48

当前所使用的内核在编译时Loopback device support选项要打开
使你当前所使用的内核,不是你要升级的内核

clser 发表于 2004-8-8 20:14:34

哦,但是我现在的内核就没有加loopback device support,
这什么办呢,能现在编译加进去吗?

cnhnln 发表于 2004-8-8 21:11:45

用官方内核启动后再编译
或者modprobe loop试试,但你应该编译了这个模块才行

clser 发表于 2004-8-9 10:32:13

谢谢,
这个loopback device到底有什么用,
为什么没他不行啊?

cnhnln 发表于 2004-8-9 11:29:48

Loopback device support (BLK_DEV_LOOP)

Saying Y here will allow you to use a regular file as a block
device; you can then create a file system on that block device and
mount it just as you would mount other block devices such as hard
drive partitions, CD-ROM drives or floppy drives. The loop devices
are block special device files with major number 7 and typically
called /dev/loop0, /dev/loop1 etc.

This is useful if you want to check an ISO 9660 file system before
burning the CD, or if you want to use floppy images without first
writing them to floppy. Furthermore, some Linux distributions avoid
the need for a dedicated Linux partition by keeping their complete
root file system inside a DOS FAT file using this loop device
driver.

To use the loop device, you need the losetup utility, found in the
util-linux package, see
<ftp://ftp.kernel.org/pub/linux/utils/util-linux/>.

The loop device driver can also be used to "hide" a file system in
a disk partition, floppy, or regular file, either using encryption
(scrambling the data) or steganography (hiding the data in the low
bits of, say, a sound file). This is also safe if the file resides
on a remote file server.

There are several ways of encrypting disks. Some of these require
kernel patches. The vanilla kernel offers the cryptoloop option
and a Device Mapper target (which is superior, as it supports all
file systems). If you want to use the cryptoloop, say Y to both
LOOP and CRYPTOLOOP, and make sure you have a recent (version 2.12
or later) version of util-linux. Additionally, be aware that
the cryptoloop is not safe for storing journaled filesystems.

Note that this loop device has nothing to do with the loopback
device used for network connections from the machine to itself.

To compile this driver as a module, choose M here: the
module will be called loop.

Most users will answer N here.
生成initrd的时候需要它
页: [1]
查看完整版本: 编译时“make install”出错