[m [33m※ 来源:·BBS 水木清华站 http://smth.org·[FROM: 166.111.103.*] [m
--
█ █ ████ █ █ █ ██ █
█ █ █ █ █ █ █ █ █
███ ████ █ █ █ █ █ █
█ █ █ ██ █ █ █ █
█ █ ████ █ █ █ ██
[m [1;36m※ 来源:·BBS 水木清华站 smth.org·[FROM: 219.224.138.221] [m
【 在 Kreavlin (Nirvana) 的大作中提到: 】
: 回环设备.虚拟设备,可以用来挂ISO.
--
吃了那个kernel……
……ing!
[m [1;35m※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.102.*] [m
http://www.linuxlots.com/~fawcett/yard/Yard_doc-14.html
[32mA loopback device allows a normal disk file to be mounted as a filesystem. [37m
To use a loopback device you'll need to do the following:
1. Enable loopback device support in your kernel if you haven't already.
Under Floppy, IDE and other block devices, select either Y or M for
Loopback device support. Recompile your kernel and reboot.
2. You'll need modified versions of mount and losetup. These are available
from:
ftp://ftp.win.tue.nl:/pub/linux/util/
in the file mount-2.5X.tar.gz, where X is the latest version letter.
3. You'll also probably need mke2fs 1.02 or later. Type mke2fs with no
arguments to see the version and option information. If there is no ``-F''
optionlisted, you'll need a newer version. mke2fs is included in the
e2fsprogs package available in:
sunsite.unc.edu:/pub/Linux/system/Filesystems/ext2/
To use the loopback device/file with Yard, simply:
1. In Config.pl, set $device to the name of a temporary disk file to
hold the disk image, eg /tmp/fsfile. The file need not already exist.
Set $fs_size to its desired size.
2. Create the $device file:
create_loopback_file
or do it yourself with:
dd if=/dev/zero of=$device bs=1k count=$fs_size
and substitute your values for $device and $fs_size.
3. If necessary, load the loopback device module (via insmod loop) into
your kernel.
Yard may then be run with no further alterations.
Warning: When using a loopback device, occasionally the ext2 filesystem seems
to get corrupted for no apparent reason. If you start getting errors in the
middle of make_root_fs from sys() complaining that a directory doesn't exist,
this may be what is happening. I don't know why this happens and I can't
reproduce it consistently; however, unmounting, deleting and re-creating the
file seems to get rid of the problem.
【 在 jeffshia (面条菜) 的大作中提到: 】
: 谢谢
: 能否详细的解释一下
: 或者给点这方面的资料!
: ...................
--
天有星兮,星有光
[m [1;32m※ 来源:·BBS 水木清华站 smth.org·[FROM: 61.149.18.*] [m