Documentation/filesystems/bfs.txt
2013-11-05 10:58
253 查看
Ifyouhaveanycommentorupdatetothecontent,pleasecontactthe
originaldocumentmaintainerdirectly.However,ifyouhaveaproblem
communicatinginEnglishyoucanalsoasktheChinesemaintainerfor
help.ContacttheChinesemaintainerifthistranslationisoutdated
orifthereisaproblemwiththetranslation.
Chinesemaintainer:沈芳丽<fairyshen@163.com>
---------------------------------------------------------------------
Documentation/filesystems/bfs.txt的中文翻译
如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。
中文版维护者:沈芳丽<fairyshen@163.com>
中文版翻译者:沈芳丽<fairyshen@163.com>
中文版校译者:沈芳丽<fairyshen@163.com>
以下为正文
BFS文件系统用于/台切片的SCOUnixWareOS,通常包含内核映像和引导过程
中所需的其他几个文件。
Inordertoaccess/standpartitionunderLinuxyouobviouslyneedtoknowthe
partitionnumberandthekernelmustsupportUnixWarediskslices
(CONFIG_UNIXWARE_DISKLABELconfigoption).HoweverBFSsupportdoes
notdependonhavingUnixWaredisklabelsupportbecauseonecanalsomount
BFSfilesystemvialoopback:
为了访问/维持Linux下的分区,知道分区号是显然需要的,而且内核必须支持
UnixWare的磁盘片(CONFIG_UNIXWARE_DISKLABEL的配置选项)。然而,
BFS支持不依赖于UnixWare磁盘标签的支持,因为人们还可以通过安装回环BFS
文件系统来实现:
stand.img是一个包含BFS文件系统形象的文件。使用完或者卸载改
文件后,还需释放/dev/loop0设备:
这将自动完成分配弟一个可用的环回设备(如果必要的话,还会负载loop.o的
内核模块)。如果没有自动加载环回驱动程序,那么请确保您已编译模
块并且模探头是运作的。如果/etc/下的mtab文件在你的系统里是一个链
接到/proc/mount的符号,那么umount不会释放/dev/loopN设备。你需要
手动使用losetup(8)的“-D”开关。阅读losetup(8)联机帮助页来了解更多信息。
就在这种情况下,你可以通过检查的幻数来验证你是否做对了:
前4个字节应该是0x1badface。
如果您对该BFS方案有任何补充、疑问或建议,请与作者联系:
originaldocumentmaintainerdirectly.However,ifyouhaveaproblem
communicatinginEnglishyoucanalsoasktheChinesemaintainerfor
help.ContacttheChinesemaintainerifthistranslationisoutdated
orifthereisaproblemwiththetranslation.
Chinesemaintainer:沈芳丽<
---------------------------------------------------------------------
Documentation/filesystems/bfs.txt的中文翻译
如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。
中文版维护者:沈芳丽<
中文版翻译者:沈芳丽<
中文版校译者:沈芳丽<
以下为正文
BFSFILESYSTEMFORLINUX
BFSFILESYSTEMLinux版
========================
TheBFSfilesystemisusedbySCOUnixWareOSforthe/standslice,which
usuallycontainsthekernelimageandafewotherfilesrequiredforthebootprocess.
BFS文件系统用于/台切片的SCOUnixWareOS,通常包含内核映像和引导过程
中所需的其他几个文件。
Inordertoaccess/standpartitionunderLinuxyouobviouslyneedtoknowthe
partitionnumberandthekernelmustsupportUnixWarediskslices
(CONFIG_UNIXWARE_DISKLABELconfigoption).HoweverBFSsupportdoes
notdependonhavingUnixWaredisklabelsupportbecauseonecanalsomount
BFSfilesystemvialoopback:
为了访问/维持Linux下的分区,知道分区号是显然需要的,而且内核必须支持
UnixWare的磁盘片(CONFIG_UNIXWARE_DISKLABEL的配置选项)。然而,
BFS支持不依赖于UnixWare磁盘标签的支持,因为人们还可以通过安装回环BFS
文件系统来实现:
#losetup/dev/loop0stand.img
#mount-tbfs/dev/loop0/mnt/stand
wherestand.imgisafilecontainingtheimageofBFSfilesystem.
Whenyouhavefinishedusingitandumountedyouneedtoalso
deallocate/dev/loop0deviceby:
stand.img是一个包含BFS文件系统形象的文件。使用完或者卸载改
文件后,还需释放/dev/loop0设备:
#losetup-d/dev/loop0
Youcansimplifymountingbyjusttyping:
简化安装只需键入:
#mount-tbfs-oloopstand.img/mnt/stand
thiswillallocatethefirstavailableloopbackdevice(andloadloop.o
kernelmoduleifnecessary)automatically.Iftheloopbackdriveris
notloadedautomatically,makesurethatyouhavecompiledthe
moduleandthatmodprobeisfunctioning.Bewarethatumountwill
notdeallocate/dev/loopNdeviceif/etc/mtabfileonyoursystemisa
symboliclinkto/proc/mounts.Youwillneedtodoitmanuallyusing
"-d"switchoflosetup(8).Readlosetup(8)manpageformoreinfo.
这将自动完成分配弟一个可用的环回设备(如果必要的话,还会负载loop.o的
内核模块)。如果没有自动加载环回驱动程序,那么请确保您已编译模
块并且模探头是运作的。如果/etc/下的mtab文件在你的系统里是一个链
接到/proc/mount的符号,那么umount不会释放/dev/loopN设备。你需要
手动使用losetup(8)的“-D”开关。阅读losetup(8)联机帮助页来了解更多信息。
TocreatetheBFSimageunderUnixWareyouneedtofindoutfirstwhich
slicecontainsit.Thecommandprtvtoc(1M)isyourfriend:
你需要先找出哪些片包含BFS图像才能在UnixWare下创建它。prtvtoc(1M)命
令非常好用:
#prtvtoc/dev/rdsk/c0b0t0d0s0
(assumingyourrootdiskisontarget=0,lun=0,bus=0,controller=0).Thenyou
lookfortheslicewithtag"STAND",whichisusuallyslice10.Withthisinformation
youcanusedd(1)tocreatetheBFSimage:
(假设你根磁盘的target=0,lun=0,bus=0,controller=0)。寻找通常为切片10的标
签“STAND”.有了这些信息,你可以用dd(1)来创建BFS图像。
#umount/stand
#ddif=/dev/rdsk/c0b0t0d0saof=stand.imgbs=512
Justincase,youcanverifythatyouhavedonetherightthingbycheckingthe
magicnumber:
就在这种情况下,你可以通过检查的幻数来验证你是否做对了:
#od-Ad-tx4stand.img|more
Thefirst4bytesshouldbe0x1badface.
前4个字节应该是0x1badface。
Ifyouhaveanypatches,questionsorsuggestionsregardingthisBFS
implementationpleasecontacttheauthor:
如果您对该BFS方案有任何补充、疑问或建议,请与作者联系:
TigranAivazian<tigran@aivazian.fsnet.co.uk>
相关文章推荐
- Documentation / filesystems / ramfs-rootfs-initramfs.txt
- Documentation/filesystems/adfs.txt
- Documentation/filesystems/fiemap.txt 翻译学习 -- 需完善
- Documentation/filesystems/sysfs.txt译文
- Documentation/filesystems/ecryptfs.txt
- Linux/Documentation/filesystems/sysfs-pci.txt
- Documentation/filesystems/xip.txt
- Documentation\filesystems\bfs
- Documentation/filesystems/befs.txt
- Documentation\filesystems\Sysfs-tagging
- Documentation-filesystems/sysfs
- Documentation/filesystems/porting
- Documentation/filesystems/ecryptfs
- Linux内核能够识别的设备,对应源码中Documentation/devices.txt文件(转)
- openfiledialog 打开txt文件 textbox 中文乱码
- Linux/Documentation/io-mapping.txt
- 文件“D:\file.txt”正由另一进程使用,因此该进程无法访问该文件。
- export data to txt file
- Mounting File Systems
- FileReader读取中文txt文件编码丢失问题(乱码)(转)