QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 821|回复: 6

编译时“make install”出错

[复制链接]
发表于 2004-8-8 18:15:04 | 显示全部楼层 |阅读模式
[root@cls linux-2.6.7]# make install
make[1]: `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[1]: *** [install] Error 1
make: *** [install] Error 2


make mrproper
make menuconfig
make
make modules
make modules_install
make install
发表于 2004-8-8 18:34:40 | 显示全部楼层
相关工具升级了?
回复

使用道具 举报

发表于 2004-8-8 19:21:48 | 显示全部楼层
当前所使用的内核在编译时Loopback device support选项要打开
使你当前所使用的内核,不是你要升级的内核
回复

使用道具 举报

 楼主| 发表于 2004-8-8 20:14:34 | 显示全部楼层
哦,但是我现在的内核就没有加loopback device support,
这什么办呢,能现在编译加进去吗?
回复

使用道具 举报

发表于 2004-8-8 21:11:45 | 显示全部楼层
用官方内核启动后再编译
或者modprobe loop试试,但你应该编译了这个模块才行
回复

使用道具 举报

 楼主| 发表于 2004-8-9 10:32:13 | 显示全部楼层
谢谢,
这个loopback device到底有什么用,
为什么没他不行啊?
回复

使用道具 举报

发表于 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的时候需要它
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-7-5 13:55 , Processed in 0.062094 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表